/netbsd/crypto/external/bsd/openssl/dist/crypto/x509/ |
H A D | x509_vpm.c | 214 if (!X509_VERIFY_PARAM_set1_ip(dest, src->ip, src->iplen)) in X509_VERIFY_PARAM_inherit() 449 *plen = param->iplen; in int_X509_VERIFY_PARAM_get0_ip() 455 size_t iplen; in X509_VERIFY_PARAM_get1_ip_asc() local 458 return ip == NULL ? NULL : ossl_ipaddr_to_asc(ip, iplen); in X509_VERIFY_PARAM_get1_ip_asc() 462 const unsigned char *ip, size_t iplen) in X509_VERIFY_PARAM_set1_ip() argument 464 if (iplen != 0 && iplen != 4 && iplen != 16) { in X509_VERIFY_PARAM_set1_ip() 468 return int_x509_param_set1((char **)¶m->ip, ¶m->iplen, in X509_VERIFY_PARAM_set1_ip() 469 (char *)ip, iplen); in X509_VERIFY_PARAM_set1_ip() 475 size_t iplen = (size_t)ossl_a2i_ipadd(ipout, ipasc); in X509_VERIFY_PARAM_set1_ip_asc() local 477 if (iplen == 0) in X509_VERIFY_PARAM_set1_ip_asc() [all …]
|
H A D | v3_utl.c | 1028 size_t iplen; in X509_check_ip_asc() local 1032 iplen = (size_t)ossl_a2i_ipadd(ipout, ipasc); in X509_check_ip_asc() 1033 if (iplen == 0) in X509_check_ip_asc() 1035 return do_x509_check(x, (char *)ipout, iplen, flags, GEN_IPADD, NULL); in X509_check_ip_asc() 1077 int iplen; in a2i_IPADDRESS() local 1081 iplen = ossl_a2i_ipadd(ipout, ipasc); in a2i_IPADDRESS() 1083 if (!iplen) in a2i_IPADDRESS() 1089 if (!ASN1_OCTET_STRING_set(ret, ipout, iplen)) { in a2i_IPADDRESS()
|
H A D | x509_local.h | 38 size_t iplen; /* Length of IP address */ member
|
H A D | x509_vfy.c | 802 if (vpm->ip != NULL && X509_check_ip(x, vpm->ip, vpm->iplen, 0) <= 0) { in check_id()
|
/netbsd/external/bsd/ipf/dist/ipsend/ |
H A D | ip.c | 101 int err, iplen; local 130 iplen = ip->ip_len; 131 ip->ip_len = htons(iplen); 148 if (!frag || (sizeof(*eh) + iplen < mtu)) 153 bcopy((char *)ip, ipbuf + sizeof(*eh), iplen); 207 iplen = ntohs(ip->ip_len) - hlen; 212 if ((sent + (mtu - hlen)) >= iplen) 215 ts = iplen - sent; 257 int thlen, i, iplen, hlen; local 261 iplen = ip->ip_len; [all …]
|
/netbsd/crypto/external/bsd/openssl.old/dist/crypto/x509/ |
H A D | x509_vpm.c | 221 if (!X509_VERIFY_PARAM_set1_ip(dest, src->ip, src->iplen)) in X509_VERIFY_PARAM_inherit() 432 const unsigned char *ip, size_t iplen) in X509_VERIFY_PARAM_set1_ip() argument 434 if (iplen != 0 && iplen != 4 && iplen != 16) in X509_VERIFY_PARAM_set1_ip() 436 return int_x509_param_set1((char **)¶m->ip, ¶m->iplen, in X509_VERIFY_PARAM_set1_ip() 437 (char *)ip, iplen); in X509_VERIFY_PARAM_set1_ip() 443 size_t iplen; in X509_VERIFY_PARAM_set1_ip_asc() local 445 iplen = (size_t)a2i_ipadd(ipout, ipasc); in X509_VERIFY_PARAM_set1_ip_asc() 446 if (iplen == 0) in X509_VERIFY_PARAM_set1_ip_asc() 448 return X509_VERIFY_PARAM_set1_ip(param, ipout, iplen); in X509_VERIFY_PARAM_set1_ip_asc()
|
H A D | x509_local.h | 35 size_t iplen; /* Length of IP address */ member
|
H A D | x509_vfy.c | 770 if (vpm->ip && X509_check_ip(x, vpm->ip, vpm->iplen, 0) <= 0) { in check_id()
|
/netbsd/sys/arch/xen/xen/ |
H A D | xennet_checksum.c | 84 int iplen; in xennet_checksum_fill() local 119 iplen = ntohs(iph->ip_len); in xennet_checksum_fill() 134 iplen = ntohs(ip6h->ip6_plen); in xennet_checksum_fill() 142 if (ehlen + iplen > m->m_pkthdr.len) { in xennet_checksum_fill()
|
/netbsd/sys/netinet/ |
H A D | ip_flow.c | 211 int iplen; in ipflow_fastforward() local 238 iplen = ntohs(ip->ip_len); in ipflow_fastforward() 240 iplen < sizeof(struct ip) || iplen > m->m_pkthdr.len) in ipflow_fastforward() 322 if (m->m_pkthdr.len > iplen) { in ipflow_fastforward() 324 m->m_len = iplen; in ipflow_fastforward() 325 m->m_pkthdr.len = iplen; in ipflow_fastforward() 327 m_adj(m, iplen - m->m_pkthdr.len); in ipflow_fastforward()
|
H A D | ip_carp.c | 504 int iplen, len; in _carp_proto_input() local 538 iplen = ip->ip_hl << 2; in _carp_proto_input() 539 len = iplen + sizeof(*ch); in _carp_proto_input() 553 ch = (struct carp_header *)((char *)ip + iplen); in _carp_proto_input() 555 m->m_data += iplen; in _carp_proto_input() 556 if (carp_cksum(m, len - iplen)) { in _carp_proto_input() 563 m->m_data -= iplen; in _carp_proto_input()
|
/netbsd/sys/dist/pf/net/ |
H A D | if_pfsync.c | 388 iplen = ip->ip_hl << 2; in pfsync_input() 390 if (m->m_pkthdr.len < iplen + sizeof(*ph)) { in pfsync_input() 395 if (iplen + sizeof(*ph) > m->m_len) { in pfsync_input() 431 if ((mp = m_pulldown(m, iplen + sizeof(*ph), in pfsync_input() 472 if ((mp = m_pulldown(m, iplen + sizeof(*ph), in pfsync_input() 506 if ((mp = m_pulldown(m, iplen + sizeof(*ph), in pfsync_input() 615 if ((mp = m_pulldown(m, iplen + sizeof(*ph), in pfsync_input() 640 if ((mp = m_pulldown(m, iplen + sizeof(*ph), in pfsync_input() 739 if ((mp = m_pulldown(m, iplen + sizeof(*ph), in pfsync_input() 766 if ((mp = m_pulldown(m, iplen + sizeof(*ph), in pfsync_input() [all …]
|
/netbsd/crypto/external/bsd/openssl.old/dist/crypto/x509v3/ |
H A D | v3_utl.c | 993 size_t iplen; in X509_check_ip_asc() local 997 iplen = (size_t)a2i_ipadd(ipout, ipasc); in X509_check_ip_asc() 998 if (iplen == 0) in X509_check_ip_asc() 1000 return do_x509_check(x, (char *)ipout, iplen, flags, GEN_IPADD, NULL); in X509_check_ip_asc() 1012 int iplen; in a2i_IPADDRESS() local 1016 iplen = a2i_ipadd(ipout, ipasc); in a2i_IPADDRESS() 1018 if (!iplen) in a2i_IPADDRESS() 1024 if (!ASN1_OCTET_STRING_set(ret, ipout, iplen)) { in a2i_IPADDRESS()
|
/netbsd/sys/netipsec/ |
H A D | xform_ah.c | 892 uint16_t iplen; in ah_output() local 1055 memcpy(&iplen, pext + ipoffs, sizeof(iplen)); in ah_output() 1056 iplen = htons(ntohs(iplen) + ahsize); in ah_output() 1057 m_copyback(m, ipoffs, sizeof(iplen), &iplen); in ah_output()
|
/netbsd/crypto/external/bsd/openssl.old/dist/doc/man3/ |
H A D | X509_VERIFY_PARAM_set_flags.pod | 64 const unsigned char *ip, size_t iplen); 188 B<iplen> must be set to 4 for IPv4 and 16 for IPv6. When an IP
|
/netbsd/crypto/external/bsd/openssl/dist/doc/man3/ |
H A D | X509_VERIFY_PARAM_set_flags.pod | 69 const unsigned char *ip, size_t iplen); 205 B<iplen> must be set to 4 for IPv4 and 16 for IPv6. When an IP
|
/netbsd/crypto/external/bsd/openssl.old/dist/include/openssl/ |
H A D | x509_vfy.h | 571 const unsigned char *ip, size_t iplen);
|
/netbsd/crypto/external/bsd/openssl/dist/include/openssl/ |
H A D | x509_vfy.h.in | 739 const unsigned char *ip, size_t iplen);
|