Go to the source code of this file.
◆ CHAP_CHALLENGE
◆ CHAP_DIGEST_MD5
      
        
          | #define CHAP_DIGEST_MD5   5    /* use MD5 algorithm */ | 
        
      
 
 
◆ CHAP_FAILURE
◆ CHAP_HEADERLEN
◆ CHAP_MICROSOFT
      
        
          | #define CHAP_MICROSOFT   0x80 /* use Microsoft-compatible alg. */ | 
        
      
 
 
◆ CHAP_RESPONSE
◆ CHAP_SUCCESS
◆ CHAPCS_CLOSED
      
        
          | #define CHAPCS_CLOSED   1 /* Lower layer up, not opened */ | 
        
      
 
 
◆ CHAPCS_INITIAL
      
        
          | #define CHAPCS_INITIAL   0 /* Lower layer down, not opened */ | 
        
      
 
 
◆ CHAPCS_LISTEN
      
        
          | #define CHAPCS_LISTEN   3 /* Listening for a challenge */ | 
        
      
 
 
◆ CHAPCS_OPEN
      
        
          | #define CHAPCS_OPEN   5 /* We've received Success */ | 
        
      
 
 
◆ CHAPCS_PENDING
      
        
          | #define CHAPCS_PENDING   2 /* Auth us to peer when lower up */ | 
        
      
 
 
◆ CHAPCS_RESPONSE
      
        
          | #define CHAPCS_RESPONSE   4 /* Sent response, waiting for status */ | 
        
      
 
 
◆ CHAPSS_BADAUTH
      
        
          | #define CHAPSS_BADAUTH   6 /* We've sent a Failure msg */ | 
        
      
 
 
◆ CHAPSS_CLOSED
      
        
          | #define CHAPSS_CLOSED   1 /* Lower layer up, not opened */ | 
        
      
 
 
◆ CHAPSS_INITIAL
      
        
          | #define CHAPSS_INITIAL   0 /* Lower layer down, not opened */ | 
        
      
 
 
◆ CHAPSS_INITIAL_CHAL
      
        
          | #define CHAPSS_INITIAL_CHAL   3 /* We've sent the first challenge */ | 
        
      
 
 
◆ CHAPSS_OPEN
      
        
          | #define CHAPSS_OPEN   4 /* We've sent a Success msg */ | 
        
      
 
 
◆ CHAPSS_PENDING
      
        
          | #define CHAPSS_PENDING   2 /* Auth peer when lower up */ | 
        
      
 
 
◆ CHAPSS_RECHALLENGE
      
        
          | #define CHAPSS_RECHALLENGE   5 /* We've sent another challenge */ | 
        
      
 
 
◆ MAX_CHALLENGE_LENGTH
      
        
          | #define MAX_CHALLENGE_LENGTH   64 | 
        
      
 
 
◆ MAX_RESPONSE_LENGTH
      
        
          | #define MAX_RESPONSE_LENGTH   64 /* sufficient for MD5 or MS-CHAP */ | 
        
      
 
 
◆ MD5_SIGNATURE_SIZE
      
        
          | #define MD5_SIGNATURE_SIZE   16   /* 16 bytes in a MD5 message digest */ | 
        
      
 
 
◆ MIN_CHALLENGE_LENGTH
      
        
          | #define MIN_CHALLENGE_LENGTH   32 | 
        
      
 
 
◆ MS_CHAP_RESPONSE_LEN
      
        
          | #define MS_CHAP_RESPONSE_LEN   49   /* Response length for MS-CHAP */ | 
        
      
 
 
◆ chap_state
◆ ChapAuthPeer()
      
        
          | void ChapAuthPeer  | 
          ( | 
          int  | 
          ,  | 
        
        
           | 
           | 
          char *  | 
          ,  | 
        
        
           | 
           | 
          u_char  | 
            | 
        
        
           | 
          ) | 
           |  | 
        
      
 
 
◆ ChapAuthWithPeer()
      
        
          | void ChapAuthWithPeer  | 
          ( | 
          int  | 
          ,  | 
        
        
           | 
           | 
          char *  | 
          ,  | 
        
        
           | 
           | 
          u_char  | 
            | 
        
        
           | 
          ) | 
           |  | 
        
      
 
 
◆ chap
◆ chap_protent
  
  
      
        
          | struct protent chap_protent | 
         
       
   | 
  
extern   |