| /freebsd-10-stable/crypto/openssh/ |
| D | msg.c | 69 u_int msg_len; in ssh_msg_recv() local 79 msg_len = get_u32(buf); in ssh_msg_recv() 80 if (msg_len > 256 * 1024) { in ssh_msg_recv() 81 error("ssh_msg_recv: read: bad msg_len %u", msg_len); in ssh_msg_recv() 85 if ((r = sshbuf_reserve(m, msg_len, &p)) != 0) { in ssh_msg_recv() 89 if (atomicio(read, fd, p, msg_len) != msg_len) { in ssh_msg_recv()
|
| D | ssh-pkcs11-helper.c | 213 u_int msg_len; in process() local 223 msg_len = get_u32(cp); in process() 224 if (msg_len > MAX_MSG_LENGTH) { in process() 225 error("bad message len %d", msg_len); in process() 228 if (buf_len < msg_len + 4) in process() 256 if (msg_len < consumed) { in process() 257 error("msg_len %d < consumed %d", msg_len, consumed); in process() 260 if (msg_len > consumed) in process() 261 buffer_consume(&iqueue, msg_len - consumed); in process()
|
| D | umac.c | 777 UINT32 msg_len; /* Total length of data passed */ member 933 pc->msg_len = 0; in uhash_reset() 1050 if (ctx->msg_len + len <= L1_KEY_LEN) { in uhash_update() 1052 ctx->msg_len += len; in uhash_update() 1055 bytes_hashed = ctx->msg_len % L1_KEY_LEN; in uhash_update() 1056 if (ctx->msg_len == L1_KEY_LEN) in uhash_update() 1068 ctx->msg_len += bytes_remaining; in uhash_update() 1078 ctx->msg_len += L1_KEY_LEN; in uhash_update() 1088 ctx->msg_len += len; in uhash_update() 1103 if (ctx->msg_len > L1_KEY_LEN) { in uhash_final() [all …]
|
| D | monitor_wrap.c | 151 u_int msg_len; in mm_request_receive() local 160 msg_len = get_u32(buf); in mm_request_receive() 161 if (msg_len > 256 * 1024) in mm_request_receive() 162 fatal("%s: read: bad msg_len %d", __func__, msg_len); in mm_request_receive() 164 buffer_append_space(m, msg_len); in mm_request_receive() 165 if (atomicio(read, sock, buffer_ptr(m), msg_len) != msg_len) in mm_request_receive()
|
| /freebsd-10-stable/crypto/openssl/ssl/ |
| D | d1_both.c | 126 #define RSMBLY_BITMASK_SIZE(msg_len) (((msg_len) + 7) / 8) argument 139 #define RSMBLY_BITMASK_IS_COMPLETE(bitmask, msg_len, is_complete) { \ argument 141 OPENSSL_assert((msg_len) > 0); \ 143 … if (bitmask[(((msg_len) - 1) >> 3)] != bitmask_end_values[((msg_len) & 7)]) is_complete = 0; \ 144 if (is_complete) for (ii = (((msg_len) - 1) >> 3) - 1; ii >= 0 ; ii--) \ 148 # define RSMBLY_BITMASK_PRINT(bitmask, msg_len) { \ 150 printf("bitmask: "); for (ii = 0; ii < (msg_len); ii++) \ 279 (int)s->d1->w_msg_hdr.msg_len + in dtls1_do_write() 433 l2n3(msg_hdr->msg_len, p); in dtls1_do_write() 436 l2n3(msg_hdr->msg_len, p); in dtls1_do_write() [all …]
|
| D | d1_srvr.c | 939 unsigned int msg_len; in dtls1_send_hello_verify_request() local 961 msg_len = p - msg; in dtls1_send_hello_verify_request() 964 DTLS1_MT_HELLO_VERIFY_REQUEST, msg_len, 0, in dtls1_send_hello_verify_request() 965 msg_len); in dtls1_send_hello_verify_request() 1526 unsigned int msg_len; in dtls1_send_certificate_request() local 1602 msg_len = s->init_num - DTLS1_HM_HEADER_LENGTH; in dtls1_send_certificate_request() 1604 SSL3_MT_CERTIFICATE_REQUEST, msg_len, 0, in dtls1_send_certificate_request() 1605 msg_len); in dtls1_send_certificate_request() 1659 unsigned int hlen, msg_len; in dtls1_send_newsession_ticket() local 1751 msg_len = s->init_num - DTLS1_HM_HEADER_LENGTH; in dtls1_send_newsession_ticket() [all …]
|
| /freebsd-10-stable/contrib/tcpdump/ |
| D | print-olsr.c | 96 u_int8_t msg_len[2]; member 106 u_int8_t msg_len[2]; member 263 u_int msg_type, msg_len, msg_tlen, hello_len; in olsr_print() local 312 msg_len = EXTRACT_16BITS(msgptr.v6->msg_len); in olsr_print() 313 if ((msg_len >= sizeof (struct olsr_msg6)) in olsr_print() 314 && (msg_len <= length)) in olsr_print() 318 if (msg_type == 0 || msg_len == 0) { in olsr_print() 330 msg_len, (msg_len_valid == 0) ? " (invalid)" : ""); in olsr_print() 332 msg_tlen = msg_len - sizeof(struct olsr_msg6); in olsr_print() 340 msg_len = EXTRACT_16BITS(msgptr.v4->msg_len); in olsr_print() [all …]
|
| D | print-ldp.c | 567 u_short pdu_len,msg_len,msg_type,msg_tlen; in ldp_msg_print() local 607 msg_len=EXTRACT_16BITS(ldp_msg_header->length); in ldp_msg_print() 616 msg_len, in ldp_msg_print() 620 if (msg_len == 0) /* infinite loop protection */ in ldp_msg_print() 624 msg_tlen=msg_len-sizeof(struct ldp_msg_header)+4; /* Type & Length fields not included */ in ldp_msg_print() 627 TCHECK2(*tptr, msg_len); in ldp_msg_print() 666 msg_len); in ldp_msg_print() 668 tptr += msg_len+4; in ldp_msg_print() 669 tlen -= msg_len+4; in ldp_msg_print()
|
| /freebsd-10-stable/contrib/wpa/src/eap_server/ |
| D | eap_server_gtc.c | 55 size_t msg_len; in eap_gtc_buildReq() local 59 msg_len = os_strlen(msg); in eap_gtc_buildReq() 60 req = eap_msg_alloc(EAP_VENDOR_IETF, EAP_TYPE_GTC, msg_len, in eap_gtc_buildReq() 69 wpabuf_put_data(req, msg, msg_len); in eap_gtc_buildReq()
|
| /freebsd-10-stable/contrib/wpa/wpa_supplicant/ |
| D | preauth_test.c | 49 size_t *msg_len, void **data_pos) in wpa_alloc_eapol() argument 53 *msg_len = sizeof(*hdr) + data_len; in wpa_alloc_eapol() 54 hdr = os_malloc(*msg_len); in wpa_alloc_eapol() 76 size_t *msg_len, void **data_pos) in _wpa_alloc_eapol() argument 78 return wpa_alloc_eapol(wpa_s, type, data, data_len, msg_len, data_pos); in _wpa_alloc_eapol()
|
| D | wpas_glue.c | 61 size_t *msg_len, void **data_pos) in wpa_alloc_eapol() argument 65 *msg_len = sizeof(*hdr) + data_len; in wpa_alloc_eapol() 66 hdr = os_malloc(*msg_len); in wpa_alloc_eapol() 367 size_t *msg_len, void **data_pos) in _wpa_alloc_eapol() argument 369 return wpa_alloc_eapol(wpa_s, type, data, data_len, msg_len, data_pos); in _wpa_alloc_eapol()
|
| /freebsd-10-stable/lib/libtacplus/ |
| D | taclib_private.h | 103 u_int16_t msg_len; member 130 u_int16_t msg_len; member 149 u_int16_t msg_len; member
|
| D | taclib.c | 317 int msg_len; in crypt_msg() local 325 msg_len = ntohl(msg->length); in crypt_msg() 334 for (chunk = 0; chunk < msg_len; chunk += sizeof md5) { in crypt_msg() 340 if ((chunk_len = msg_len - chunk) > sizeof md5) in crypt_msg() 1095 if (get_srvr_str(h, "msg", &h->srvr_msg, ntohs(ar->msg_len)) == -1 || in tac_send_authen() 1155 if (get_srvr_str(h, "msg", &h->srvr_msg, ntohs(ares->msg_len)) == -1 || in tac_send_author() 1210 if (get_srvr_str(h, "msg", &h->srvr_msg, ntohs(ar->msg_len)) == -1 || in tac_send_acct()
|
| /freebsd-10-stable/lib/libpam/modules/pam_tacplus/ |
| D | pam_tacplus.c | 157 size_t msg_len; in pam_sm_authenticate() local 249 srvr_msg = (char *)tac_get_data(tach, &msg_len); in pam_sm_authenticate() 250 if (srvr_msg != NULL && msg_len != 0) { in pam_sm_authenticate()
|
| /freebsd-10-stable/contrib/libpcap/ |
| D | pcap-netfilter-linux.c | 103 u_int32_t msg_len; in netfilter_read_linux() local 194 msg_len = NLMSG_ALIGN(nlh->nlmsg_len); in netfilter_read_linux() 195 if (msg_len > len) in netfilter_read_linux() 196 msg_len = len; in netfilter_read_linux() 198 len -= msg_len; in netfilter_read_linux() 199 buf += msg_len; in netfilter_read_linux()
|
| /freebsd-10-stable/usr.bin/gencat/ |
| D | gencat.c | 554 int msg_len = strlen(msg->str) + 1; local 557 msg_hdr->__msglen = htonl(msg_len); 560 memcpy(strings, msg->str, msg_len); 561 strings += msg_len; 562 msg_offset += msg_len;
|
| /freebsd-10-stable/contrib/unbound/libunbound/ |
| D | context.c | 337 q->msg_len = 0; in context_deserialize_answer() 344 q->msg_len = len - 5*sizeof(uint32_t) - wlen; in context_deserialize_answer() 346 q->msg_len); in context_deserialize_answer() 349 q->msg_len = 0; in context_deserialize_answer()
|
| /freebsd-10-stable/sys/dev/aic/ |
| D | aic.c | 398 aic->msg_len = 1; in aic_selected() 468 aic->msg_len = 1; in aic_sched_msgout() 537 aic->msg_len = 0; in aic_msgin() 554 aic->msg_buf[aic->msg_len++] = aic_inb(aic, SCSIBUS); in aic_msgin() 556 if (aic->msg_len < 2) { in aic_msgin() 584 if (aic->msg_len == msglen) { in aic_msgin() 586 aic->msg_len = 0; in aic_msgin() 792 if (msgidx > 0 && msgidx == aic->msg_len) { in aic_msgout() 810 aic->msg_len = 1; in aic_msgout() 817 aic->msg_len = 2; in aic_msgout() [all …]
|
| /freebsd-10-stable/contrib/wpa/src/eap_peer/ |
| D | eap.c | 890 size_t msg_len; in eap_sm_processIdentity() local 896 &msg_len); in eap_sm_processIdentity() 910 pos, msg_len); in eap_sm_processIdentity() 1160 size_t i, msg_len; in eap_sm_processNotify() local 1163 &msg_len); in eap_sm_processNotify() 1167 pos, msg_len); in eap_sm_processNotify() 1169 msg = os_malloc(msg_len + 1); in eap_sm_processNotify() 1172 for (i = 0; i < msg_len; i++) in eap_sm_processNotify() 1174 msg[msg_len] = '\0'; in eap_sm_processNotify() 1757 void eap_sm_request_otp(struct eap_sm *sm, const char *msg, size_t msg_len) in eap_sm_request_otp() argument [all …]
|
| /freebsd-10-stable/sys/netinet/libalias/ |
| D | alias_smedia.c | 437 u_short msg_id, msg_len; in alias_pna_out() local 447 memcpy(&msg_len, work, 2); in alias_pna_out() 475 work += ntohs(msg_len); in alias_pna_out()
|
| /freebsd-10-stable/contrib/wpa/wpa_supplicant/tests/ |
| D | test_wpa.c | 95 u16 data_len, size_t *msg_len, void **data_pos) in supp_alloc_eapol() argument 102 *msg_len = sizeof(*hdr) + data_len; in supp_alloc_eapol() 103 hdr = os_malloc(*msg_len); in supp_alloc_eapol()
|
| /freebsd-10-stable/contrib/wpa/src/rsn_supp/ |
| D | wpa_i.h | 197 size_t *msg_len, void **data_pos) in wpa_sm_alloc_eapol() argument 201 msg_len, data_pos); in wpa_sm_alloc_eapol() 306 u8 *msg, size_t msg_len, u8 *key_mic);
|
| /freebsd-10-stable/contrib/wpa/src/eap_common/ |
| D | eap_sim_common.h | 88 void eap_sim_add_mac(const u8 *k_aut, const u8 *msg, size_t msg_len, u8 *mac, 101 void eap_sim_add_mac_sha256(const u8 *k_aut, const u8 *msg, size_t msg_len,
|
| D | eap_sim_common.c | 205 void eap_sim_add_mac(const u8 *k_aut, const u8 *msg, size_t msg_len, u8 *mac, in eap_sim_add_mac() argument 213 len[0] = msg_len; in eap_sim_add_mac() 219 wpa_hexdump(MSG_MSGDUMP, "EAP-SIM: Add MAC - msg", msg, msg_len); in eap_sim_add_mac() 400 void eap_sim_add_mac_sha256(const u8 *k_aut, const u8 *msg, size_t msg_len, in eap_sim_add_mac_sha256() argument 408 len[0] = msg_len; in eap_sim_add_mac_sha256() 414 wpa_hexdump(MSG_MSGDUMP, "EAP-AKA': Add MAC - msg", msg, msg_len); in eap_sim_add_mac_sha256()
|
| /freebsd-10-stable/contrib/wpa/src/radius/ |
| D | radius.c | 628 size_t msg_len; in radius_msg_parse() local 636 msg_len = be_to_host16(hdr->length); in radius_msg_parse() 637 if (msg_len < sizeof(*hdr) || msg_len > len) { in radius_msg_parse() 642 if (msg_len < len) { in radius_msg_parse() 644 "RADIUS message", (unsigned long) len - msg_len); in radius_msg_parse() 651 msg->buf = wpabuf_alloc_copy(data, msg_len); in radius_msg_parse()
|