72#define CHAP_HEADERLEN 4 
   78#define CHAP_DIGEST_MD5      5     
   79#define MD5_SIGNATURE_SIZE   16    
   80#define CHAP_MICROSOFT       0x80  
   81#define MS_CHAP_RESPONSE_LEN 49    
   83#define CHAP_CHALLENGE       1 
   84#define CHAP_RESPONSE        2 
   91#define MIN_CHALLENGE_LENGTH 32 
   92#define MAX_CHALLENGE_LENGTH 64 
   93#define MAX_RESPONSE_LENGTH  64  
  125#define CHAPCS_INITIAL       0  
  126#define CHAPCS_CLOSED        1  
  127#define CHAPCS_PENDING       2  
  128#define CHAPCS_LISTEN        3  
  129#define CHAPCS_RESPONSE      4  
  135#define CHAPSS_INITIAL       0  
  136#define CHAPSS_CLOSED        1  
  137#define CHAPSS_PENDING       2  
  138#define CHAPSS_INITIAL_CHAL  3  
  140#define CHAPSS_RECHALLENGE   5  
  141#define CHAPSS_BADAUTH       6  
struct protent chap_protent
 
void ChapAuthPeer(int, char *, u_char)
 
void ChapAuthWithPeer(int, char *, u_char)
 
#define MAX_RESPONSE_LENGTH
 
#define MAX_CHALLENGE_LENGTH
 
u_char response[MAX_RESPONSE_LENGTH]
 
u_char challenge[MAX_CHALLENGE_LENGTH]