Lines Matching refs:u_char
112 static void ChapInput (int, u_char *, int);
115 static int ChapPrintPkt (u_char *, int, void (*) (void *, char *, ...), void *);
144 static void ChapReceiveChallenge (chap_state *, u_char *, u_char, int);
146 static void ChapReceiveResponse (chap_state *, u_char *, int, int);
147 static void ChapReceiveSuccess(chap_state *cstate, u_char *inp, u_char id, int len);
148 static void ChapReceiveFailure(chap_state *cstate, u_char *inp, u_char id, int len);
177 ChapAuthWithPeer(int unit, char *our_name, u_char digest)
204 ChapAuthPeer(int unit, char *our_name, u_char digest)
363 ChapInput(int unit, u_char *inpacket, int packet_len)
366 u_char *inp;
367 u_char code, id;
423 ChapReceiveChallenge(chap_state *cstate, u_char *inp, u_char id, int len)
426 u_char *rchallenge;
431 u_char hash[MD5_SIGNATURE_SIZE];
447 len -= sizeof (u_char) + rchallenge_len; /* now name field length */
494 MD5Update(&mdContext, (u_char*)secret, secret_len);
521 ChapReceiveResponse(chap_state *cstate, u_char *inp, int id, int len)
523 u_char *remmd, remmd_len;
529 u_char hash[MD5_SIGNATURE_SIZE];
566 len -= sizeof (u_char) + remmd_len;
602 MD5Update(&mdContext, (u_char*)secret, secret_len);
640 ChapReceiveSuccess(chap_state *cstate, u_char *inp, u_char id, int len)
678 ChapReceiveFailure(chap_state *cstate, u_char *inp, u_char id, int len)
712 u_char *outp;
718 outlen = CHAP_HEADERLEN + sizeof (u_char) + chal_len + name_len;
748 u_char *outp;
785 u_char *ptr = cstate->challenge;
795 cstate->chal_len = (u_char)chal_len;
813 u_char *outp;
818 outlen = CHAP_HEADERLEN + sizeof (u_char) + md_len + name_len;
849 ChapPrintPkt( u_char *p, int plen, void (*printer) (void *, char *, ...), void *arg)
853 u_char x;