  | 
 
 
 
 |  
 |  | 
FreeBSD Man Page Search Results
| 
  
 |  
| Rank | 
Title | 
File Size | 
 
| 1. | 
X509V3_ADDR_ADD_INHERIT(3) - 1], i % 8 ? "" : "\n"); if (len % 8) printf("\n");}intmain(void){ IPAddrBlocks *addrblocks; X509_EXTENSION *ext; unsigned char *der; int der_len; size_t i; if (pledge("stdio", NULL) == -1) err(1, "pledge"); /*  * Somebody forgot to implement IPAddrBlocks_new(). IPAddrBlocks  * is the same as STACK_OF(IPAddressFamily). As such, it should  * have IPAddressFamily_cmp() as its comparison function. It is  * not possible to call sk_new(3) because IPAddressFamily_cmp()  * is not part of the public API. The correct comparison function  * can be installed as a side-effect of X509v3_addr_canonize(3).  */ if ((addrblocks = sk_IPAddressFamily_new_null()) == NULL) err(1, "sk_IPAddressFamily_new_null"); if (!X509v3_addr_canonize(addrblocks)) errx(1, "X509v3_addr_canonize"); /* Add the prefixes as IPv4 unicast. */ for (i = 0; i < N_PREFIXES; i++) { unsigned char addr[16] = {0}; int len; int unicast = 1; /* SAFI for unicast forwarding. */ len = inet_net_pton(AF_INET, prefixes[i], addr,  sizeof(addr)); if (len == -1) errx(1, "inet_net_pton(%s)", prefixes[i]); if (!X509v3_addr_add_prefix(addrblocks, IANA_AFI_IPV4,  &unicast, addr, len)) errx(1, "X509v3_addr_add_prefix(%s)", prefixes[i]); } if (!X509v3_addr_add_inherit(addrblocks, IANA_AFI_IPV6, NULL)) errx(1, "X509v3_addr_add_inherit"); /*  * Ensure the extension is in canonical form. Otherwise the two  * adjacent prefixes 10.2.48/20 and 10.2.64/24 are not merged into  * the range 10.2.48.0--10.2.64.255. This results in invalid DER  * encoding from X509V3_EXT_i2d(3) and i2d_X509_EXTENSION(3).  */ if (!X509v3_addr_canonize(addrblocks)) errx(1, "X509v3_addr_canonize"); /* Create the extension with the correct OID; mark it critical. */ ext = X509V3_EXT_i2d(NID_sbgp_ipAddrBlock, 1, addrblocks); if (ext == NULL) errx(1, "X509V3_EXT_i2d"); der = NULL; if ((der_len = i2d_X509_EXTENSION(ext, &der)) <= 0) errx(1, "i2d_X509_EXTENSION"); hexdump(der, der_len); /* One way of implementing IPAddrBlocks_free(). */ sk_IPAddressFamily_pop_free(addrblocks, IPAddressFamily_free); X509_EXTENSION_free(ext); free(der); return 0;} | 
25 K | 
 
| 2. | 
SALT(7) - Salt Documentation | 
22.2 MB | 
 
| 3. | 
X509V3_GET_EXT_BY_NID(3ossl) - extension stack utility functions | 
15 K | 
 
| 4. | 
X509V3_GET_EXT_BY_NID(3) | 
23 K | 
 
| 5. | 
Net::SSLeay(3) - Perl bindings for OpenSSL and LibreSSL | 
522 K | 
 
| 6. | 
X509V3_GET_D2I(3) | 
31 K | 
 
| 7. | 
X509V3_GET_D2I(3ossl) - X509 extension decode and encode functions | 
18 K | 
 
| 8. | 
Crypt::OpenSSL::CA(3) - The crypto parts of an X509v3 Certification Authority | 
52 K | 
 
| 9. | 
OPENVPN(8) - Secure IP tunnel daemon | 
354 K | 
 
| 10. | 
OPENSSL(1) | 
364 K | 
 
 
 |  | 
  
 |  
 
  
Go back to the Man Page Section.
  |  
 
This database contains 118,499 topics and 836,414 keywords
 |   
 |