Searched defs:msg_len (Results 1 - 25 of 56) sorted by relevance

123

/freebsd-head/crypto/openssh/
H A Dmsg.c69 u_int msg_len; local
79 msg_len = get_u32(buf);
80 if (msg_len > 256 * 1024) {
81 error("ssh_msg_recv: read: bad msg_len %u", msg_len);
85 if ((r = sshbuf_reserve(m, msg_len, &p)) != 0) {
89 if (atomicio(read, fd, p, msg_len) != msg_len) {
H A Dssh-pkcs11-helper.c228 u_int msg_len; local
239 msg_len = get_u32(cp);
240 if (msg_len > MAX_MSG_LENGTH) {
241 error("bad message len %d", msg_len);
244 if (buf_len < msg_len + 4)
273 if (msg_len < consumed) {
274 error("msg_len %d < consumed %d", msg_len, consumed);
277 if (msg_len > consumed) {
278 if ((r = sshbuf_consume(iqueue, msg_len
[all...]
H A Dsftp-client.c135 u_int msg_len; local
149 if ((r = sshbuf_get_u32(m, &msg_len)) != 0)
151 if (msg_len > SFTP_MAX_MSG_LENGTH) {
153 "Received message too long %u", msg_len);
158 if ((r = sshbuf_reserve(m, msg_len, &p)) != 0)
160 if (atomicio6(read, conn->fd_in, p, msg_len,
162 != msg_len) {
H A Dssh-agent.c694 u_int msg_len; local
709 msg_len = PEEK_U32(cp);
710 if (msg_len > AGENT_MAX_LEN) {
712 __func__, socknum, e->fd, msg_len, AGENT_MAX_LEN);
715 if (sshbuf_len(e->input) < msg_len + 4)
/freebsd-head/lib/libpam/modules/pam_tacplus/
H A Dpam_tacplus.c159 size_t msg_len; local
251 srvr_msg = (char *)tac_get_data(tach, &msg_len);
252 if (srvr_msg != NULL && msg_len != 0) {
/freebsd-head/contrib/wpa/src/eap_server/
H A Deap_server_gtc.c55 size_t msg_len; local
59 msg_len = os_strlen(msg);
60 req = eap_msg_alloc(EAP_VENDOR_IETF, EAP_TYPE_GTC, msg_len,
69 wpabuf_put_data(req, msg, msg_len);
/freebsd-head/sys/dev/ipmi/
H A Dipmi_opal.c85 opal_ipmi_recv(struct opal_ipmi_softc *sc, uint64_t *msg_len, int timo) argument
94 *msg_len = sizeof(struct opal_ipmi_msg) + IPMI_MAX_RX;
98 vtophys(sc->sc_msg), vtophys(msg_len));
115 sc->sc_msg->data[0], *msg_len);
129 uint64_t msg_len; local
136 err = opal_ipmi_recv(sc, &msg_len, 100);
140 err = opal_ipmi_recv(sc, &msg_len, 10);
151 uint64_t msg_len; local
172 msg_len = sizeof(*sc->sc_msg) + req->ir_requestlen;
174 msg_len);
[all...]
/freebsd-head/sys/dev/ixl/
H A Di40e_adminq.h89 u16 msg_len; member in struct:i40e_arq_event_info
H A Diavf_vc.c267 memcpy(sc->vf_res, event.msg_buf, min(event.msg_len, len));
749 int msg_len, key_length; local
761 msg_len = sizeof(struct virtchnl_rss_key) + (sizeof(u8) * key_length) - 1;
762 rss_key_msg = malloc(msg_len, M_IAVF, M_NOWAIT | M_ZERO);
776 (u8 *)rss_key_msg, msg_len);
802 int msg_len; local
808 msg_len = sizeof(struct virtchnl_rss_lut) + (lut_length * sizeof(u8)) - 1;
809 rss_lut_msg = malloc(msg_len, M_IAVF, M_NOWAIT | M_ZERO);
837 (u8 *)rss_lut_msg, msg_len);
/freebsd-head/contrib/unbound/libunbound/
H A Dcontext.h168 size_t msg_len; member in struct:ctx_query
/freebsd-head/crypto/openssl/crypto/sm2/
H A Dsm2_sign.c143 const uint8_t *msg, size_t msg_len)
168 || !EVP_DigestUpdate(hash, msg, msg_len)
368 const uint8_t *msg, size_t msg_len)
373 e = sm2_compute_msg_hash(digest, key, id, id_len, msg, msg_len);
391 const uint8_t *msg, size_t msg_len)
396 e = sm2_compute_msg_hash(digest, key, id, id_len, msg, msg_len);
139 sm2_compute_msg_hash(const EVP_MD *digest, const EC_KEY *key, const uint8_t *id, const size_t id_len, const uint8_t *msg, size_t msg_len) argument
364 sm2_do_sign(const EC_KEY *key, const EVP_MD *digest, const uint8_t *id, const size_t id_len, const uint8_t *msg, size_t msg_len) argument
386 sm2_do_verify(const EC_KEY *key, const EVP_MD *digest, const ECDSA_SIG *sig, const uint8_t *id, const size_t id_len, const uint8_t *msg, size_t msg_len) argument
/freebsd-head/sys/dev/hyperv/input/
H A Dhv_kbdc.c264 uint32_t msg_len = VMBUS_CHANPKT_DATALEN(pkt); local
269 if (msg_len <= sizeof(hv_kbd_msg)) {
/freebsd-head/lib/libtacplus/
H A Dtaclib_private.h105 u_int16_t msg_len; member in struct:tac_authen_reply
132 u_int16_t msg_len; member in struct:tac_author_response
151 u_int16_t msg_len; member in struct:tac_acct_reply
/freebsd-head/sys/netinet/libalias/
H A Dalias_smedia.c439 u_short msg_id, msg_len; local
449 memcpy(&msg_len, work, 2);
477 work += ntohs(msg_len);
/freebsd-head/usr.bin/gencat/
H A Dgencat.c556 int msg_len = strlen(msg->str) + 1; local
559 msg_hdr->__msglen = htonl(msg_len);
562 memcpy(strings, msg->str, msg_len);
563 strings += msg_len;
564 msg_offset += msg_len;
/freebsd-head/contrib/wpa/wpa_supplicant/
H A Dpreauth_test.c46 size_t *msg_len, void **data_pos)
50 *msg_len = sizeof(*hdr) + data_len;
51 hdr = os_malloc(*msg_len);
73 size_t *msg_len, void **data_pos)
75 return wpa_alloc_eapol(wpa_s, type, data, data_len, msg_len, data_pos);
44 wpa_alloc_eapol(const struct wpa_supplicant *wpa_s, u8 type, const void *data, u16 data_len, size_t *msg_len, void **data_pos) argument
71 _wpa_alloc_eapol(void *wpa_s, u8 type, const void *data, u16 data_len, size_t *msg_len, void **data_pos) argument
H A Dibss_rsn.c80 u16 data_len, size_t *msg_len, void **data_pos)
87 *msg_len = sizeof(*hdr) + data_len;
88 hdr = os_malloc(*msg_len);
79 supp_alloc_eapol(void *ctx, u8 type, const void *data, u16 data_len, size_t *msg_len, void **data_pos) argument
H A Dp2p_supplicant_sd.c103 size_t msg_len, size_t offset)
114 if (offset > msg_len)
117 tmp = os_malloc(DNS_HEADER_LEN + P2P_SD_IN_MEMORY_LEN + msg_len);
121 end = spos + msg_len;
126 os_memcpy(tmp + DNS_HEADER_LEN + P2P_SD_IN_MEMORY_LEN, msg, msg_len);
102 p2p_sd_dns_uncompress(char *buf, size_t buf_len, const u8 *msg, size_t msg_len, size_t offset) argument
/freebsd-head/contrib/libpcap/
H A Dpcap-netfilter-linux.c141 uint32_t msg_len; local
260 msg_len = NLMSG_ALIGN(nlh->nlmsg_len);
266 if (msg_len > ep - bp)
267 msg_len = ep - bp;
269 bp += msg_len;
/freebsd-head/crypto/openssl/ssl/statem/
H A Dstatem_dtls.c21 #define RSMBLY_BITMASK_SIZE(msg_len) (((msg_len) + 7) / 8)
34 #define RSMBLY_BITMASK_IS_COMPLETE(bitmask, msg_len, is_complete) { \
37 if (bitmask[(((msg_len) - 1) >> 3)] != bitmask_end_values[((msg_len) & 7)]) is_complete = 0; \
38 if (is_complete) for (ii = (((msg_len) - 1) >> 3) - 1; ii >= 0 ; ii--) \
129 s->d1->w_msg_hdr.msg_len + DTLS1_HM_HEADER_LENGTH))
288 l2n3(msg_hdr->msg_len, p);
291 l2n3(msg_hdr->msg_len, p);
335 size_t msg_len; local
420 size_t frag_off, frag_len, msg_len; local
[all...]
/freebsd-head/contrib/tcpdump/
H A Dprint-olsr.c94 uint8_t msg_len[2]; member in struct:olsr_msg4
104 uint8_t msg_len[2]; member in struct:olsr_msg6
323 u_int msg_type, msg_len, msg_tlen, hello_len; local
367 msg_len = EXTRACT_16BITS(msgptr.v6->msg_len);
368 if ((msg_len >= sizeof (struct olsr_msg6))
369 && (msg_len <= length))
373 if (msg_type == 0 || msg_len == 0) {
385 msg_len, (msg_len_valid == 0) ? " (invalid)" : ""));
390 msg_tlen = msg_len
[all...]
H A Dprint-ldp.c581 u_short pdu_len,msg_len,msg_type,msg_tlen; local
627 msg_len=EXTRACT_16BITS(ldp_msg_header->length);
630 if (msg_len < sizeof(struct ldp_msg_header)-4) {
638 msg_len,
649 msg_len,
654 msg_tlen=msg_len-(sizeof(struct ldp_msg_header)-4); /* Type & Length fields not included */
657 ND_TCHECK2(*tptr, msg_len);
696 msg_len);
698 tptr += msg_len+4;
699 tlen -= msg_len
[all...]
/freebsd-head/lib/libc/net/
H A Dsctp_sys_calls.c683 sctp_sendx(int sd, const void *msg, size_t msg_len, argument
711 msg, msg_len, addrs, l, sinfo, flags);
773 ret = sctp_send(sd, msg, msg_len, sinfo, flags);
/freebsd-head/contrib/wpa/src/eap_common/
H A Deap_sim_common.c204 void eap_sim_add_mac(const u8 *k_aut, const u8 *msg, size_t msg_len, u8 *mac, argument
212 len[0] = msg_len;
218 wpa_hexdump(MSG_MSGDUMP, "EAP-SIM: Add MAC - msg", msg, msg_len);
398 void eap_sim_add_mac_sha256(const u8 *k_aut, const u8 *msg, size_t msg_len, argument
406 len[0] = msg_len;
412 wpa_hexdump(MSG_MSGDUMP, "EAP-AKA': Add MAC - msg", msg, msg_len);
/freebsd-head/sys/dev/iir/
H A Diir.c1647 u_int32_t msg_len; local
1649 msg_len = gdt_dec32(gccb->gc_scratch + GDT_SCR_MSG_LEN);
1650 if (msg_len)
1653 gccb->gc_scratch[GDT_SCR_MSG_TEXT + msg_len] = '\0';

Completed in 178 milliseconds

123