mirror of
https://github.com/lwip-tcpip/lwip.git
synced 2024-07-16 17:57:25 +00:00
PPPAPI, added const modifier on auth strings
This commit is contained in:
parent
61f0231ce0
commit
91356d2d03
|
@ -102,7 +102,7 @@ pppapi_do_ppp_set_auth(struct pppapi_msg_msg *msg)
|
||||||
* tcpip_thread context.
|
* tcpip_thread context.
|
||||||
*/
|
*/
|
||||||
void
|
void
|
||||||
pppapi_set_auth(ppp_pcb *pcb, u8_t authtype, char *user, char *passwd)
|
pppapi_set_auth(ppp_pcb *pcb, u8_t authtype, const char *user, const char *passwd)
|
||||||
{
|
{
|
||||||
struct pppapi_msg msg;
|
struct pppapi_msg msg;
|
||||||
msg.function = pppapi_do_ppp_set_auth;
|
msg.function = pppapi_do_ppp_set_auth;
|
||||||
|
|
|
@ -48,8 +48,8 @@ struct pppapi_msg_msg {
|
||||||
union {
|
union {
|
||||||
struct {
|
struct {
|
||||||
u8_t authtype;
|
u8_t authtype;
|
||||||
char *user;
|
const char *user;
|
||||||
char *passwd;
|
const char *passwd;
|
||||||
} setauth;
|
} setauth;
|
||||||
#if PPP_NOTIFY_PHASE
|
#if PPP_NOTIFY_PHASE
|
||||||
struct {
|
struct {
|
||||||
|
@ -113,7 +113,7 @@ struct pppapi_msg {
|
||||||
/* API for application */
|
/* API for application */
|
||||||
ppp_pcb *pppapi_new(void);
|
ppp_pcb *pppapi_new(void);
|
||||||
void pppapi_set_default(ppp_pcb *pcb);
|
void pppapi_set_default(ppp_pcb *pcb);
|
||||||
void pppapi_set_auth(ppp_pcb *pcb, u8_t authtype, char *user, char *passwd);
|
void pppapi_set_auth(ppp_pcb *pcb, u8_t authtype, const char *user, const char *passwd);
|
||||||
#if PPP_NOTIFY_PHASE
|
#if PPP_NOTIFY_PHASE
|
||||||
void pppapi_set_notify_phase_callback(ppp_pcb *pcb, ppp_notify_phase_cb_fn notify_phase_cb);
|
void pppapi_set_notify_phase_callback(ppp_pcb *pcb, ppp_notify_phase_cb_fn notify_phase_cb);
|
||||||
#endif /* PPP_NOTIFY_PHASE */
|
#endif /* PPP_NOTIFY_PHASE */
|
||||||
|
|
Loading…
Reference in New Issue
Block a user