summaryrefslogtreecommitdiffstats
path: root/usr.sbin/ppp/chap.h
diff options
context:
space:
mode:
authorbrian <brian@FreeBSD.org>1999-04-21 08:03:51 +0000
committerbrian <brian@FreeBSD.org>1999-04-21 08:03:51 +0000
commit2f7b052d07aeaf02ea5d3a14c8a1f7d24797f97d (patch)
treee8815aaab5dab2a1029cb7d57c8a260b7188c7b9 /usr.sbin/ppp/chap.h
parentdcc03543e09070d8dffd8773e1c01aac97c934f5 (diff)
downloadFreeBSD-src-2f7b052d07aeaf02ea5d3a14c8a1f7d24797f97d.zip
FreeBSD-src-2f7b052d07aeaf02ea5d3a14c8a1f7d24797f97d.tar.gz
Split the recorded chap challenge into two - one for the
receiver and one for the sender. This allows two simultaneous chap conversations - something that I *thought* I was already doing on a daily basis myself until the existence of the problem was Beaten into me by: sos
Diffstat (limited to 'usr.sbin/ppp/chap.h')
-rw-r--r--usr.sbin/ppp/chap.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/usr.sbin/ppp/chap.h b/usr.sbin/ppp/chap.h
index 46fe5f9..fe12dae 100644
--- a/usr.sbin/ppp/chap.h
+++ b/usr.sbin/ppp/chap.h
@@ -15,7 +15,7 @@
* IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
* WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE.
*
- * $Id: chap.h,v 1.13 1999/02/18 00:52:12 brian Exp $
+ * $Id: chap.h,v 1.14 1999/02/18 19:45:06 brian Exp $
*
* TODO:
*/
@@ -39,7 +39,10 @@ struct chap {
} buf;
} child;
struct authinfo auth;
- u_char challenge[CHAPCHALLENGELEN + AUTHLEN];
+ struct {
+ u_char local[CHAPCHALLENGELEN + AUTHLEN]; /* I invented this one */
+ u_char peer[CHAPCHALLENGELEN + AUTHLEN]; /* Peer gave us this one */
+ } challenge;
#ifdef HAVE_DES
unsigned NTRespSent : 1; /* Our last response */
int peertries;
OpenPOWER on IntegriCloud