diff options
author | brian <brian@FreeBSD.org> | 1999-02-11 10:14:08 +0000 |
---|---|---|
committer | brian <brian@FreeBSD.org> | 1999-02-11 10:14:08 +0000 |
commit | 5dc50d8ed53887553c9cb516e2b7915e55171a9f (patch) | |
tree | f9ab8c0680569eb7727b37072506b8ada5abb174 /usr.sbin/ppp/defs.h | |
parent | 4ef23fab94c614e2e42029a09de004d3a1613d62 (diff) | |
download | FreeBSD-src-5dc50d8ed53887553c9cb516e2b7915e55171a9f.zip FreeBSD-src-5dc50d8ed53887553c9cb516e2b7915e55171a9f.tar.gz |
When resending chap challenges, resend the same challenge
each time rather than making up a new one.
Increase the authname/authkey max sizes to 100 characters.
Allow ``authkey'' specifications beginning with ``!''.
When a challenge is received, the text following the
``!'' is executed as a program (expanding stuff in the same
way that ``sh'' and ``!bg'' do). The program is passed the
peer name, peer challenge and local ``authname'' on standard
input and is expected to output the name/key combination that
should be used to build the CHAP response.
This provides support for Secure ID cards (guess what I was
given at work recently!) using CHAP.
Examples will follow.
Diffstat (limited to 'usr.sbin/ppp/defs.h')
-rw-r--r-- | usr.sbin/ppp/defs.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/ppp/defs.h b/usr.sbin/ppp/defs.h index dffc5e0..03b36de 100644 --- a/usr.sbin/ppp/defs.h +++ b/usr.sbin/ppp/defs.h @@ -15,7 +15,7 @@ * IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED * WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE. * - * $Id: defs.h,v 1.36 1998/08/25 17:48:42 brian Exp $ + * $Id: defs.h,v 1.37 1999/01/28 01:56:31 brian Exp $ * * TODO: */ @@ -44,7 +44,7 @@ #define DIAL_NEXT_TIMEOUT 3 /* Default Hold time to next number redial */ #define SCRIPT_LEN 512 /* Size of login scripts */ #define LINE_LEN SCRIPT_LEN /* Size of login scripts */ -#define AUTHLEN 50 /* Size of authname/authkey */ +#define AUTHLEN 100 /* Size of authname/authkey */ #define CHAPDIGESTLEN 100 /* Maximum chap digest */ #define CHAPCHALLENGELEN 48 /* Maximum chap challenge */ #define MAXARGS 40 /* How many args per config line */ |