Import pppd-2.4.4
This commit is contained in:
parent
f5439cd0a6
commit
1edf903634
34
dist/pppd/PLUGINS
vendored
34
dist/pppd/PLUGINS
vendored
@ -147,8 +147,10 @@ purposes. This hook is deprecated and will be replaced by a notifier.
|
||||
|
||||
int (*chap_check_hook)(void);
|
||||
int (*chap_passwd_hook)(char *user, char *passwd);
|
||||
int (*chap_auth_hook)(char *user, u_char *remmd,
|
||||
int remmd_len, chap_state *cstate);
|
||||
int (*chap_verify_hook)(char *name, char *ourname, int id,
|
||||
struct chap_digest_type *digest,
|
||||
unsigned char *challenge, unsigned char *response,
|
||||
char *message, int message_space)
|
||||
|
||||
These hooks are designed to allow a plugin to replace the normal CHAP
|
||||
password processing in pppd with something different (e.g. contacting
|
||||
@ -172,13 +174,25 @@ MAXSECRETLEN bytes of space are available at *passwd. If this hook
|
||||
returns 0, pppd will use the value *passwd; if it returns -1, pppd
|
||||
will fail to authenticate.
|
||||
|
||||
The chap_auth_hook is called to determine whether the response
|
||||
to a CHAP challenge provided by the peer is valid. user points to
|
||||
a null-terminated string containing the username supplied
|
||||
by the peer. remmd points to the response provided by the peer, of
|
||||
length remmd_len bytes. cstate is the internal CHAP state structure
|
||||
maintained by pppd. chap_auth_hook is expected to return one of
|
||||
CHAP_SUCCESS or CHAP_FAILURE.
|
||||
The chap_verify_hook is called to determine whether the peer's
|
||||
response to our CHAP challenge is valid -- it should return 1 if valid
|
||||
or 0 if not. The parameters are:
|
||||
|
||||
* name points to a null-terminated string containing the username
|
||||
supplied by the peer, or the remote name specified with the
|
||||
"remotename" option.
|
||||
* ourname points to a null-terminated string containing the name of
|
||||
the local machine (the hostname, or the name specified with the
|
||||
"name" option).
|
||||
* id is the value of the id field from the challenge.
|
||||
* digest points to a chap_digest_type struct, which contains an
|
||||
identifier for the type of digest in use plus function pointers for
|
||||
functions for dealing with digests of that type.
|
||||
* challenge points to the challenge as a counted string (length byte
|
||||
followed by the actual challenge bytes).
|
||||
* response points to the response as a counted string.
|
||||
* message points to an area of message_space bytes in which to store
|
||||
any message that should be returned to the peer.
|
||||
|
||||
|
||||
int (*null_auth_hook)(struct wordlist **paddrs,
|
||||
@ -263,4 +277,4 @@ Here is a list of the currently-implemented notifiers in pppd.
|
||||
|
||||
|
||||
|
||||
## Id: PLUGINS,v 1.6 2003/02/25 07:43:09 fcusack Exp ##
|
||||
## Id: PLUGINS,v 1.7 2005/07/12 08:56:07 paulus Exp ##
|
||||
|
20
dist/pppd/README
vendored
20
dist/pppd/README
vendored
@ -55,9 +55,25 @@ use any IP address. (This only applies where the peer is
|
||||
authenticating itself to you, of course.)
|
||||
|
||||
|
||||
What's new in ppp-2.4.3.
|
||||
What's new in ppp-2.4.4.
|
||||
************************
|
||||
|
||||
* Pppd will now run /etc/ppp/ip-pre-up, if it exists, after creating
|
||||
the ppp interface and configuring its IP addresses but before
|
||||
bringing it up. This can be used, for example, for adding firewall
|
||||
rules for the interface.
|
||||
|
||||
* Lots of bugs fixed, particularly in the area of demand-dialled and
|
||||
persistent connections.
|
||||
|
||||
* The rp-pppoe plugin now accepts any interface name (that isn't an
|
||||
existing pppd option name) without putting "nic-" on the front of
|
||||
it, not just eth*, nas*, tap* and br*.
|
||||
|
||||
|
||||
What was new in ppp-2.4.3.
|
||||
**************************
|
||||
|
||||
* The configure script now accepts --prefix and --sysconfdir options.
|
||||
These default to /usr/local and /etc. If you want pppd put in
|
||||
/usr/sbin as before, use ./configure --prefix=/usr.
|
||||
@ -260,4 +276,4 @@ The primary site for releases of this software is:
|
||||
ftp://ftp.samba.org/pub/ppp/
|
||||
|
||||
|
||||
(Id: README,v 1.35 2004/11/13 12:25:54 paulus Exp)
|
||||
(Id: README,v 1.37 2006/05/29 23:51:29 paulus Exp)
|
||||
|
8
dist/pppd/pppd/patchlevel.h
vendored
8
dist/pppd/pppd/patchlevel.h
vendored
@ -1,6 +1,6 @@
|
||||
/* $NetBSD: patchlevel.h,v 1.1.1.1 2005/02/20 10:28:50 cube Exp $ */
|
||||
/* $NetBSD: patchlevel.h,v 1.1.1.2 2006/06/29 21:46:40 christos Exp $ */
|
||||
|
||||
/* Id: patchlevel.h,v 1.62 2004/11/13 12:08:01 paulus Exp */
|
||||
/* Id: patchlevel.h,v 1.66 2006/06/28 00:21:23 paulus Exp */
|
||||
|
||||
#define VERSION "2.4.3"
|
||||
#define DATE "13 November 2004"
|
||||
#define VERSION "2.4.4"
|
||||
#define DATE "28 June 2006"
|
||||
|
Loading…
Reference in New Issue
Block a user