313 |
int maxconnect; /* Maximum connect time (seconds) */ |
int maxconnect; /* Maximum connect time (seconds) */ |
314 |
|
|
315 |
char user[MAXNAMELEN + 1];/* Username for PAP */ |
char user[MAXNAMELEN + 1];/* Username for PAP */ |
316 |
char passwd[MAXNAMELEN + 1]; /* Password for PAP */ |
char passwd[MAXSECRETLEN + 1]; /* Password for PAP, secret for CHAP */ |
317 |
char our_name[MAXNAMELEN + 1]; /* Our name for authentication purposes */ |
char our_name[MAXNAMELEN + 1]; /* Our name for authentication purposes */ |
318 |
char remote_name[MAXNAMELEN + 1]; /* Peer's name for authentication */ |
char remote_name[MAXNAMELEN + 1]; /* Peer's name for authentication */ |
319 |
}; |
}; |
340 |
/* Initialize the PPP subsystem. */ |
/* Initialize the PPP subsystem. */ |
341 |
void pppInit(void); |
void pppInit(void); |
342 |
|
|
343 |
void pppSetAuth(const char *user, const char *passwd); |
enum pppAuthType { |
344 |
|
PPPAUTHTYPE_NONE, |
345 |
|
PPPAUTHTYPE_PAP, |
346 |
|
PPPAUTHTYPE_CHAP |
347 |
|
}; |
348 |
|
|
349 |
|
void pppSetAuth(enum pppAuthType authType, const char *user, const char *passwd); |
350 |
|
|
351 |
/* |
/* |
352 |
* Open a new PPP connection using the given I/O device. |
* Open a new PPP connection using the given I/O device. |