Home
last modified time | relevance | path

Searched refs:u_char (Results 1 – 25 of 222) sorted by relevance

123456789

/titanic_44/usr/src/cmd/cmd-inet/usr.bin/pppd/
H A Dchap_ms.c77 u_char LANManResp[24];
78 u_char NTResp[24];
79 u_char UseNT; /* If 1, ignore the LANMan response field */
85 u_char PeerChallenge[16];
86 u_char MustBeZero[8];
87 u_char NTResp[24];
88 u_char Flags; /* Should be zero (Win98 sends 04) */
93 static void ChallengeResponse __P((u_char *, u_char *, u_char *));
94 static void DesEncrypt __P((u_char *, u_char *, u_char *));
95 static void MakeKey __P((u_char *, u_char *));
[all …]
H A Dfsm.h71 u_char id; /* Current id */
72 u_char reqid; /* Current request id */
73 u_char seen_ack; /* Have received valid Ack/Nak/Rej to Req */
109 __P((fsm *, u_char *, int *));
111 __P((fsm *, u_char *, int));
113 __P((fsm *, u_char *, int));
115 __P((fsm *, u_char *, int));
117 __P((fsm *, u_char *, int *, int));
129 __P((fsm *, int, int, u_char *, int));
132 __P((fsm *p, int code, int id, u_char *inp, int len));
[all …]
H A Dchap.h79 u_char challenge[MAX_CHALLENGE_LENGTH]; /* last challenge string sent */
80 u_char chal_len; /* challenge length */
81 u_char chal_id; /* ID of last challenge */
82 u_char chal_type; /* hash algorithm for challenges */
83 u_char id; /* Current id */
90 u_char response[MAX_RESPONSE_LENGTH]; /* Response to send */
91 u_char resp_length; /* length of response */
92 u_char resp_id; /* ID for response messages */
93 u_char resp_type; /* hash algorithm for responses */
94 u_char stat_length; /* Length of status message (MS-CHAP) */
H A Dcbcp.c57 static void cbcp_input __P((int unit, u_char *pkt, int len));
59 static int cbcp_printpkt __P((u_char *pkt, int len,
88 static void cbcp_recvreq __P((cbcp_state *us, u_char *pckt, int len));
89 static void cbcp_recvack __P((cbcp_state *us, u_char *pckt, int len));
90 static void cbcp_send __P((cbcp_state *us, int code, u_char *buf, int len));
141 u_char *inpacket;
144 u_char *inp;
145 u_char code, id;
223 u_char *p; in cbcp_printpkt()
229 u_char *pstart, cichar;
[all …]
H A Dchap.c85 static void ChapInput __P((int, u_char *, int));
87 static int ChapPrintPkt __P((u_char *, int,
115 static void ChapReceiveChallenge __P((chap_state *, u_char *, int, int));
117 static void ChapReceiveResponse __P((chap_state *, u_char *, int, int));
118 static void ChapReceiveSuccess __P((chap_state *, u_char *, int, int));
119 static void ChapReceiveFailure __P((chap_state *, u_char *, int, int));
370 u_char *inpacket;
374 u_char *inp;
375 u_char code, id;
432 u_char *inp;
[all …]
H A Dupap.c74 static void upap_input __P((int, u_char *, int));
76 static int upap_printpkt __P((u_char *, int,
103 static void upap_rauthreq __P((upap_state *, u_char *, int, int));
104 static void upap_rauthack __P((upap_state *, u_char *, int, int));
105 static void upap_rauthnak __P((upap_state *, u_char *, int, int));
335 u_char *inpacket;
339 u_char *inp;
340 u_char code, id;
391 u_char *inp;
395 u_char ruserlen, rpasswdlen;
[all …]
/titanic_44/usr/src/lib/libresolv2/common/
H A Dllib-lresolv23 void fp_query(const u_char *, FILE *);
26 void p_query(const u_char *);
30 uint32_t _getlong(const u_char *);
31 uint16_t _getshort(const u_char *);
34 int res_mkquery(int, const char *, int, int, const u_char *,
35 int, const u_char *, u_char *, int);
36 int res_query(const char *, int, int, u_char *, int);
38 u_char *, int);
39 int res_search(const char *, int, int, u_char *, int);
40 int res_send(const u_char *, int, u_char *, int);
[all …]
/titanic_44/usr/src/lib/libresolv/
H A Dres_comp.c46 static int dn_find(u_char *exp_dn, u_char *msg, u_char **dnptrs,
47 u_char **lastdnptr);
59 u_char *msg, *eomorig, *comp_dn, *exp_dn; in dn_expand()
62 register u_char *cp, *dn;
64 u_char *eom;
139 u_char *exp_dn, *comp_dn; in dn_comp()
141 u_char **dnptrs, **lastdnptr;
143 register u_char *cp, *dn;
145 u_char **cpp, **lpp, *sp, *eob;
146 u_char *msg;
[all …]
/titanic_44/usr/src/lib/libresolv/arpa/
H A Dnameser.h153 u_char qr:1; /* response flag */
154 u_char opcode:4; /* purpose of message */
155 u_char aa:1; /* authoritive answer */
156 u_char tc:1; /* truncated message */
157 u_char rd:1; /* recursion desired */
159 u_char ra:1; /* recursion available */
160 u_char pr:1; /* primary server required (non standard) */
161 u_char unused:2; /* unused bits */
162 u_char rcode:4; /* response code */
167 u_char rd:1; /* recursion desired */
[all …]
/titanic_44/usr/src/cmd/ssh/include/
H A Dgetput.h28 #define GET_64BIT(cp) (((u_int64_t)(u_char)(cp)[0] << 56) | \
29 ((u_int64_t)(u_char)(cp)[1] << 48) | \
30 ((u_int64_t)(u_char)(cp)[2] << 40) | \
31 ((u_int64_t)(u_char)(cp)[3] << 32) | \
32 ((u_int64_t)(u_char)(cp)[4] << 24) | \
33 ((u_int64_t)(u_char)(cp)[5] << 16) | \
34 ((u_int64_t)(u_char)(cp)[6] << 8) | \
35 ((u_int64_t)(u_char)(cp)[7]))
37 #define GET_32BIT(cp) (((u_long)(u_char)(cp)[0] << 24) | \
38 ((u_long)(u_char)(cp)[1] << 16) | \
[all …]
H A Dcipher.h84 void cipher_init(CipherContext *, Cipher *, const u_char *, u_int,
85 const u_char *, u_int, int);
86 void cipher_crypt(CipherContext *, u_char *, const u_char *, u_int);
93 void cipher_get_keyiv(CipherContext *, u_char *, u_int);
94 void cipher_set_keyiv(CipherContext *, u_char *);
96 int cipher_get_keycontext(CipherContext *, u_char *);
97 void cipher_set_keycontext(CipherContext *, u_char *);
H A Dkex.h106 u_char *key;
107 u_char *iv;
113 u_char *key;
135 u_char *session_id;
173 void kex_derive_keys(Kex *, u_char *, BIGNUM *);
182 u_char *
183 kex_dh_hash(char *, char *, char *, int, char *, int, u_char *, int,
185 u_char *
186 kexgex_hash(char *, char *, char *, int, char *, int, u_char *, int,
195 void dump_digest(char *, u_char *, int);
/titanic_44/usr/src/lib/libresolv2/common/nameser/
H A Dns_name.c74 static int dn_find(const u_char *, const u_char *,
75 const u_char * const *,
76 const u_char * const *);
80 static int labellen(const u_char *);
97 ns_name_ntop(const u_char *src, char *dst, size_t dstsiz) in ns_name_ntop()
99 const u_char *cp; in ns_name_ntop()
101 u_char c; in ns_name_ntop()
201 ns_name_pton(const char *src, u_char *dst, size_t dstsiz) { in ns_name_pton()
218 ns_name_pton2(const char *src, u_char *dst, size_t dstsiz, size_t *dstlen) { in ns_name_pton2()
219 u_char *label, *bp, *eom; in ns_name_pton2()
[all …]
H A Dns_sign.c78 ns_sign(u_char *msg, int *msglen, int msgsize, int error, void *k, in ns_sign()
79 const u_char *querysig, int querysiglen, u_char *sig, int *siglen, in ns_sign()
88 ns_sign2(u_char *msg, int *msglen, int msgsize, int error, void *k, in ns_sign2()
89 const u_char *querysig, int querysiglen, u_char *sig, int *siglen, in ns_sign2()
90 time_t in_timesigned, u_char **dnptrs, u_char **lastdnptr) in ns_sign2()
94 u_char *cp, *eob; in ns_sign2()
95 u_char *lenp; in ns_sign2()
96 u_char *alg; in ns_sign2()
99 u_char name[NS_MAXCDNAME]; in ns_sign2()
113 (const u_char **)dnptrs, in ns_sign2()
[all …]
/titanic_44/usr/src/lib/libresolv2/common/resolv/
H A Dres_comp.c111 dn_expand(const u_char *msg, const u_char *eom, const u_char *src, in dn_expand()
128 dn_comp(const char *src, u_char *dst, int dstsiz, in dn_comp()
129 u_char **dnptrs, u_char **lastdnptr) in dn_comp()
132 (const u_char **)dnptrs, in dn_comp()
133 (const u_char **)lastdnptr)); in dn_comp()
141 dn_skipname(const u_char *ptr, const u_char *eom) { in dn_skipname()
142 const u_char *saveptr = ptr; in dn_skipname()
279 void __putlong(u_int32_t src, u_char *dst) { ns_put32(src, dst); } in __putlong()
280 void __putshort(u_int16_t src, u_char *dst) { ns_put16(src, dst); } in __putshort()
282 u_int32_t _getlong(const u_char *src) { return (ns_get32(src)); } in _getlong()
[all …]
H A Dres_data.c144 p_query(const u_char *msg) { in p_query()
149 fp_query(const u_char *msg, FILE *file) { in fp_query()
154 fp_nquery(const u_char *msg, int len, FILE *file) { in fp_nquery()
165 const u_char *data, /*!< resource record data */ in res_mkquery()
167 const u_char *newrr_in, /*!< new rr for modify or append */ in res_mkquery()
168 u_char *buf, /*!< buffer to put query */ in res_mkquery()
181 res_mkupdate(ns_updrec *rrecp_in, u_char *buf, int buflen) { in res_mkupdate()
193 u_char *answer, /*!< buffer to put answer */ in res_query()
219 res_send(const u_char *buf, int buflen, u_char *ans, int anssiz) { in res_send()
229 res_sendsigned(const u_char *buf, int buflen, ns_tsig_key *key, in res_sendsigned()
[all …]
/titanic_44/usr/src/cmd/ssh/libssh/common/
H A Dcipher.c59 extern void ssh_aes_ctr_iv(EVP_CIPHER_CTX *, int, u_char *, u_int);
196 const u_char *key, u_int keylen, const u_char *iv, u_int ivlen, in cipher_init()
202 u_char *junk, *discard; in cipher_init()
232 if (EVP_CipherInit(&cc->evp, type, NULL, (u_char *)iv, in cipher_init()
243 if (EVP_CipherInit(&cc->evp, NULL, (u_char *)key, NULL, -1) == 0) in cipher_init()
260 cipher_crypt(CipherContext *cc, u_char *dest, const u_char *src, u_int len) in cipher_crypt()
264 if (EVP_Cipher(&cc->evp, dest, (u_char *)src, len) == 0) in cipher_crypt()
285 u_char digest[16]; in cipher_set_key_string()
288 MD5_Update(&md, (const u_char *)passphrase, strlen(passphrase)); in cipher_set_key_string()
319 ssh1_3des_init(EVP_CIPHER_CTX *ctx, const u_char *key, const u_char *iv, in ssh1_3des_init()
[all …]
H A Dmisc.c530 const u_char *p = (const u_char *)vp; in tohex()
549 const u_char *p = (const u_char *)vp; in get_u64()
567 const u_char *p = (const u_char *)vp; in get_u32()
581 const u_char *p = (const u_char *)vp; in get_u16()
593 u_char *p = (u_char *)vp; in put_u64()
595 p[0] = (u_char)(v >> 56) & 0xff; in put_u64()
596 p[1] = (u_char)(v >> 48) & 0xff; in put_u64()
597 p[2] = (u_char)(v >> 40) & 0xff; in put_u64()
598 p[3] = (u_char)(v >> 32) & 0xff; in put_u64()
599 p[4] = (u_char)(v >> 24) & 0xff; in put_u64()
[all …]
H A Dssh-rsa.c42 static int openssh_RSA_verify(int, u_char *, u_int, u_char *, u_int , RSA *);
46 ssh_rsa_sign(Key *key, u_char **sigp, u_int *lenp, in ssh_rsa_sign()
47 u_char *data, u_int datalen) in ssh_rsa_sign()
51 u_char digest[EVP_MAX_MD_SIZE], *sig; in ssh_rsa_sign()
111 ssh_rsa_verify(Key *key, u_char *signature, u_int signaturelen, in ssh_rsa_verify()
112 u_char *data, u_int datalen) in ssh_rsa_verify()
118 u_char digest[EVP_MAX_MD_SIZE], *sigblob; in ssh_rsa_verify()
191 static const u_char id_sha1[] = {
203 static const u_char id_md5[] = {
213 openssh_RSA_verify(int type, u_char *hash, u_int hashlen, in openssh_RSA_verify()
[all …]
/titanic_44/usr/src/lib/libresolv2/include/isc/
H A Ddst.h65 const u_char *, /*!< data to be signed */
67 u_char *, /*!< buffer to write signature to */
72 const u_char *, /*!< data to be verified */
74 const u_char *, /*!< buffer containing signature */
83 const u_char *, /*!< KEY RDATA */
86 u_char *, /*!< output buffer */
92 const u_char *, /*!< key in dns wire fmt */
94 int dst_key_to_buffer(DST_KEY *, u_char *, int);
109 u_int16_t dst_s_dns_key_id(const u_char *, const int);
110 u_int16_t dst_s_id_calc(const u_char *, const int);
/titanic_44/usr/src/lib/libresolv2/common/bsd/
H A Dstrcasecmp.c58 static const u_char charmap[] = {
95 const u_char *cm = charmap, in strcasecmp()
96 *us1 = (const u_char *)s1, in strcasecmp()
97 *us2 = (const u_char *)s2; in strcasecmp()
108 const u_char *cm = charmap, in strncasecmp()
109 *us1 = (const u_char *)s1, in strncasecmp()
110 *us2 = (const u_char *)s2; in strncasecmp()
/titanic_44/usr/src/cmd/ipf/lib/common/
H A Dinet_addr.c80 #define ISALNUM(x) isalnum((u_char)(x))
81 #define ISALPHA(x) isalpha((u_char)(x))
82 #define ISASCII(x) isascii((u_char)(x))
83 #define ISDIGIT(x) isdigit((u_char)(x))
84 #define ISPRINT(x) isprint((u_char)(x))
85 #define ISSPACE(x) isspace((u_char)(x))
86 #define ISUPPER(x) isupper((u_char)(x))
87 #define ISXDIGIT(x) isxdigit((u_char)(x))
88 #define ISLOWER(x) islower((u_char)(x))
/titanic_44/usr/src/uts/sun4u/sunfire/io/
H A Djtag.c160 typedef u_char jtag_ring; /* format is bbbb rrrr in binary */
232 u_char ir_len; /* number of bits in instruction register */
233 u_char dr_len; /* number of bits in DR for init/dump */
237 u_char *init_pdesc; /* initialization patch descriptors */
238 u_char *fmt_desc; /* reformat descriptor */
379 static u_int jtag_bf_extract(u_char *s, int lsb, int msb);
380 static void jtag_bf_insert(u_char *s, int lsb, int msb, int value);
381 static void jtag_bf_zero(u_char *s, int nbits);
382 static int jtag_bf_cmp(u_char *s1, u_char *s2, int nbits);
389 static int tap_shift_multiple(volatile u_int *, u_char *, int, u_char *);
[all …]
/titanic_44/usr/src/lib/libresolv2/common/dst/
H A Dsupport.c80 dst_s_calculate_bits(const u_char *str, const int max_bits) in dst_s_calculate_bits()
82 const u_char *p = str; in dst_s_calculate_bits()
83 u_char i, j = 0x80; in dst_s_calculate_bits()
98 dst_s_id_calc(const u_char *key, const int keysize) in dst_s_id_calc()
101 const u_char *kp = key; in dst_s_id_calc()
127 dst_s_dns_key_id(const u_char *dns_key_rdata, const int rdata_len) in dst_s_dns_key_id()
134 return dst_s_get_int16((const u_char *) in dst_s_dns_key_id()
156 dst_s_get_int16(const u_char *buf) in dst_s_get_int16()
175 dst_s_get_int32(const u_char *buf) in dst_s_get_int32()
325 dst_s_dump(const int mode, const u_char *data, const int size, in dst_s_dump()
[all …]
/titanic_44/usr/src/lib/libresolv2/common/inet/
H A Dinet_cidr_pton.c45 static int inet_cidr_pton_ipv4 __P((const char *src, u_char *dst,
47 static int inet_cidr_pton_ipv6 __P((const char *src, u_char *dst,
85 inet_cidr_pton_ipv4(const char *src, u_char *dst, int *pbits, int ipv6) { in inet_cidr_pton_ipv4()
86 const u_char *odst = dst; in inet_cidr_pton_ipv4()
103 *dst++ = (u_char) tmp; in inet_cidr_pton_ipv4()
152 inet_cidr_pton_ipv6(const char *src, u_char *dst, int *pbits) { in inet_cidr_pton_ipv6()
155 u_char tmp[NS_IN6ADDRSZ], *tp, *endp, *colonp; in inet_cidr_pton_ipv6()
197 *tp++ = (u_char) (val >> 8) & 0xff; in inet_cidr_pton_ipv6()
198 *tp++ = (u_char) val & 0xff; in inet_cidr_pton_ipv6()
220 *tp++ = (u_char) (val >> 8) & 0xff; in inet_cidr_pton_ipv6()
[all …]

123456789