/freebsd/contrib/ldns/ldns/ |
H A D | host2str.h | 187 ldns_pkt_opcode2buffer_str(ldns_buffer *output, ldns_pkt_opcode opcode); 197 ldns_pkt_rcode2buffer_str(ldns_buffer *output, ldns_pkt_rcode rcode); 207 ldns_algorithm2buffer_str(ldns_buffer *output, 218 ldns_cert_algorithm2buffer_str(ldns_buffer *output, 268 ldns_status ldns_rdf2buffer_str_a(ldns_buffer *output, const ldns_rdf *rdf); 276 ldns_status ldns_rdf2buffer_str_aaaa(ldns_buffer *output, const ldns_rdf *rdf); 284 ldns_status ldns_rdf2buffer_str_str(ldns_buffer *output, const ldns_rdf *rdf); 292 ldns_status ldns_rdf2buffer_str_b64(ldns_buffer *output, const ldns_rdf *rdf); 300 ldns_status ldns_rdf2buffer_str_b32_ext(ldns_buffer *output, const ldns_rdf *rdf); 308 ldns_status ldns_rdf2buffer_str_hex(ldns_buffer *output, const ldns_rdf *rdf); [all …]
|
H A D | buffer.h | 72 typedef struct ldns_struct_buffer ldns_buffer; typedef 77 ldns_buffer_invariant(const ldns_buffer *ATTR_UNUSED(buffer)) in ldns_buffer_invariant() 82 ldns_buffer_invariant(const ldns_buffer *buffer) in ldns_buffer_invariant() 97 ldns_buffer *ldns_buffer_new(size_t capacity); 108 void ldns_buffer_new_frm_data(ldns_buffer *buffer, const void *data, size_t size); 115 INLINE void ldns_buffer_clear(ldns_buffer *buffer) in ldns_buffer_clear() 133 INLINE void ldns_buffer_flip(ldns_buffer *buffer) in ldns_buffer_flip() 146 INLINE void ldns_buffer_rewind(ldns_buffer *buffer) in ldns_buffer_rewind() 159 ldns_buffer_position(const ldns_buffer *buffer) in ldns_buffer_position() 171 ldns_buffer_set_position(ldns_buffer *buffer, size_t mark) in ldns_buffer_set_position() [all …]
|
H A D | host2wire.h | 40 ldns_status ldns_dname2buffer_wire(ldns_buffer *buffer, const ldns_rdf *name); 49 ldns_status ldns_dname2buffer_wire_compress(ldns_buffer *buffer, const ldns_rdf *name, ldns_rbtree_… 57 ldns_status ldns_rdf2buffer_wire(ldns_buffer *output, const ldns_rdf *rdf); 66 ldns_status ldns_rdf2buffer_wire_compress(ldns_buffer *output, const ldns_rdf *rdf, ldns_rbtree_t *… 76 ldns_status ldns_rdf2buffer_wire_canonical(ldns_buffer *output, 87 ldns_status ldns_rr2buffer_wire(ldns_buffer *output, 100 ldns_status ldns_rr2buffer_wire_compress(ldns_buffer *output, 115 ldns_status ldns_rr2buffer_wire_canonical(ldns_buffer *output, 127 ldns_status ldns_rrsig2buffer_wire(ldns_buffer *output, const ldns_rr *sigrr); 139 ldns_status ldns_rr_rdata2buffer_wire(ldns_buffer *output, const ldns_rr *rr); [all …]
|
H A D | dnssec_verify.h | 617 ldns_status ldns_verify_rrsig_buffers(ldns_buffer *rawsig_buf, 618 ldns_buffer *verify_buf, 619 ldns_buffer *key_buf, 635 ldns_buffer *verify_buf, 725 ldns_status ldns_verify_rrsig_evp(ldns_buffer *sig, 726 ldns_buffer *rrset, 740 const ldns_buffer *rrset, 753 ldns_status ldns_verify_rrsig_dsa(ldns_buffer *sig, 754 ldns_buffer *rrset, 755 ldns_buffer *key); [all …]
|
H A D | net.h | 42 ldns_status ldns_udp_send(uint8_t **result, ldns_buffer *qbin, const struct sockaddr_storage *to, s… 53 int ldns_udp_bgsend2(ldns_buffer *qbin, const struct sockaddr_storage *to, socklen_t tolen, struct … 66 int ldns_udp_bgsend(ldns_buffer *qbin, const struct sockaddr_storage *to, socklen_t tolen, struct t… 77 int ldns_tcp_bgsend2(ldns_buffer *qbin, const struct sockaddr_storage *to, socklen_t tolen, struct … 90 int ldns_tcp_bgsend(ldns_buffer *qbin, const struct sockaddr_storage *to, socklen_t tolen, struct t… 103 ldns_status ldns_tcp_send(uint8_t **result, ldns_buffer *qbin, const struct sockaddr_storage *to, s… 126 ldns_status ldns_send_buffer(ldns_pkt **pkt, ldns_resolver *r, ldns_buffer *qb, ldns_rdf *tsig_mac); 175 ssize_t ldns_tcp_send_query(ldns_buffer *qbin, int sockfd, const struct sockaddr_storage *to, sockl… 186 ssize_t ldns_udp_send_query(ldns_buffer *qbin, int sockfd, const struct sockaddr_storage *to, sockl…
|
H A D | parse.h | 110 ssize_t ldns_bget_token(ldns_buffer *b, char *token, const char *delim, size_t limit); 151 ssize_t ldns_bget_keyword_data(ldns_buffer *b, const char *keyword, const char *k_del, char *data, … 160 int ldns_bgetc(ldns_buffer *buffer); 169 void ldns_bskipcs(ldns_buffer *buffer, const char *s);
|
H A D | net.h.in | 34 * \param[in] qbin the ldns_buffer to be send 42 ldns_status ldns_udp_send(uint8_t **result, ldns_buffer *qbin, const struct sockaddr_storage *to, s… 47 * \param[in] qbin the ldns_buffer to be send 53 int ldns_udp_bgsend2(ldns_buffer *qbin, const struct sockaddr_storage *to, socklen_t tolen, struct … 60 * \param[in] qbin the ldns_buffer to be send 66 int ldns_udp_bgsend(ldns_buffer *qbin, const struct sockaddr_storage *to, socklen_t tolen, struct t… 71 * \param[in] qbin the ldns_buffer to be send 77 int ldns_tcp_bgsend2(ldns_buffer *qbin, const struct sockaddr_storage *to, socklen_t tolen, struct … 84 * \param[in] qbin the ldns_buffer to be send 90 int ldns_tcp_bgsend(ldns_buffer *qbin, const struct sockaddr_storage *to, socklen_t tolen, struct t… [all …]
|
H A D | dnssec_sign.h | 39 ldns_sign_public_buffer(ldns_buffer *sign_buf, ldns_key *key); 57 ldns_rdf *ldns_sign_public_dsa(ldns_buffer *to_sign, DSA *key); 69 ldns_rdf *ldns_sign_public_evp(ldns_buffer *to_sign, 79 ldns_rdf *ldns_sign_public_rsasha1(ldns_buffer *to_sign, RSA *key); 87 ldns_rdf *ldns_sign_public_rsamd5(ldns_buffer *to_sign, RSA *key);
|
H A D | dnssec.h | 137 DSA *ldns_key_buf2dsa(const ldns_buffer *key); 203 RSA *ldns_key_buf2rsa(const ldns_buffer *key); 513 ldns_convert_dsa_rrsig_asn12rdf(const ldns_buffer *sig, 525 ldns_convert_dsa_rrsig_rdf2asn1(ldns_buffer *target_buffer, 543 ldns_convert_ecdsa_rrsig_asn1len2rdf(const ldns_buffer *sig, 556 ldns_convert_ecdsa_rrsig_rdf2asn1(ldns_buffer *target_buffer,
|
H A D | edns.h | 149 ldns_buffer *ldns_edns_get_wireformat_buffer(const ldns_edns_option *edns); 266 ldns_buffer *ldns_edns_option_list2wireformat_buffer(const ldns_edns_option_list *option_list);
|
H A D | internal.h | 6 ldns_status svcparam_key2buffer_str(ldns_buffer *, uint16_t);
|
H A D | rr.h | 807 int ldns_rr_compare_wire(const ldns_buffer *rr1_buf, const ldns_buffer *rr2_buf);
|
/freebsd/contrib/ldns/ |
H A D | buffer.c | 15 ldns_buffer * 18 ldns_buffer *buffer = LDNS_MALLOC(ldns_buffer); in ldns_buffer_new() 41 ldns_buffer_new_frm_data(ldns_buffer *buffer, const void *data, size_t size) in ldns_buffer_new_frm_data() 60 ldns_buffer_set_capacity(ldns_buffer *buffer, size_t capacity) in ldns_buffer_set_capacity() 80 ldns_buffer_reserve(ldns_buffer *buffer, size_t amount) in ldns_buffer_reserve() 99 ldns_buffer_printf(ldns_buffer *buffer, const char *format, ...) in ldns_buffer_printf() 137 ldns_buffer_free(ldns_buffer *buffer) in ldns_buffer_free() 150 ldns_buffer_export(ldns_buffer *buffer) in ldns_buffer_export() 157 ldns_bgetc(ldns_buffer *buffer) in ldns_bgetc() 168 ldns_buffer_copy(ldns_buffer* result, const ldns_buffer* from) in ldns_buffer_copy()
|
H A D | host2str.c | 197 ldns_pkt_opcode2buffer_str(ldns_buffer *output, ldns_pkt_opcode opcode) in ldns_pkt_opcode2buffer_str() 209 ldns_pkt_rcode2buffer_str(ldns_buffer *output, ldns_pkt_rcode rcode) in ldns_pkt_rcode2buffer_str() 221 ldns_algorithm2buffer_str(ldns_buffer *output, in ldns_algorithm2buffer_str() 235 ldns_cert_algorithm2buffer_str(ldns_buffer *output, in ldns_cert_algorithm2buffer_str() 253 ldns_buffer *buf; in ldns_pkt_opcode2str() 273 ldns_buffer *buf; in ldns_pkt_rcode2str() 293 ldns_buffer *buf; in ldns_pkt_algorithm2str() 314 ldns_buffer *buf; in ldns_pkt_cert_algorithm2str() 334 ldns_rdf2buffer_str_dname(ldns_buffer *output, const ldns_rdf *dname) in ldns_rdf2buffer_str_dname() 386 ldns_rdf2buffer_str_int8(ldns_buffer *output, const ldns_rdf *rdf) in ldns_rdf2buffer_str_int8() [all …]
|
H A D | host2wire.c | 20 ldns_dname2buffer_wire(ldns_buffer *buffer, const ldns_rdf *name) in ldns_dname2buffer_wire() 26 ldns_dname2buffer_wire_compress(ldns_buffer *buffer, const ldns_rdf *name, ldns_rbtree_t *compressi… in ldns_dname2buffer_wire_compress() 109 ldns_rdf2buffer_wire(ldns_buffer *buffer, const ldns_rdf *rdf) in ldns_rdf2buffer_wire() 115 ldns_rdf2buffer_wire_compress(ldns_buffer *buffer, const ldns_rdf *rdf, ldns_rbtree_t *compression_… in ldns_rdf2buffer_wire_compress() 130 ldns_rdf2buffer_wire_canonical(ldns_buffer *buffer, const ldns_rdf *rdf) in ldns_rdf2buffer_wire_canonical() 156 ldns_rr_list2buffer_wire(ldns_buffer *buffer,const ldns_rr_list *rr_list) in ldns_rr_list2buffer_wire() 171 ldns_rr2buffer_wire_canonical(ldns_buffer *buffer, in ldns_rr2buffer_wire_canonical() 244 ldns_rr2buffer_wire(ldns_buffer *buffer, const ldns_rr *rr, int section) in ldns_rr2buffer_wire() 250 ldns_rr2buffer_wire_compress(ldns_buffer *buffer, const ldns_rr *rr, int section, ldns_rbtree_t *co… in ldns_rr2buffer_wire_compress() 294 ldns_rrsig2buffer_wire(ldns_buffer *buffer, const ldns_rr *rr) in ldns_rrsig2buffer_wire() [all …]
|
H A D | net.c | 40 ldns_buffer *qb; in ldns_send() 298 ldns_tcp_bgsend_from(ldns_buffer *qbin, 316 ldns_tcp_bgsend(ldns_buffer *qbin, 325 ldns_tcp_bgsend2(ldns_buffer *qbin, 336 ldns_tcp_send_from(uint8_t **result, ldns_buffer *qbin, 363 ldns_tcp_send(uint8_t **result, ldns_buffer *qbin, 402 ldns_udp_bgsend_from(ldns_buffer *qbin, 428 ldns_udp_bgsend(ldns_buffer *qbin, 437 ldns_udp_bgsend2(ldns_buffer *qbin, 445 ldns_udp_send_from(uint8_t **result, ldns_buffer *qbin, [all …]
|
H A D | dnssec_verify.c | 1849 const ldns_buffer* rrset, const unsigned char* key, size_t keylen) in ldns_verify_rrsig_gost_raw() 1892 ldns_buffer* rrset, unsigned char* key, size_t keylen) in ldns_verify_rrsig_ed25519_raw() 1930 ldns_buffer* rrset, unsigned char* key, size_t keylen) in ldns_verify_rrsig_ed448_raw() 1988 ldns_buffer* rrset, unsigned char* key, size_t keylen, uint8_t algo) in ldns_verify_rrsig_ecdsa_raw() 2009 ldns_verify_rrsig_buffers(ldns_buffer *rawsig_buf, ldns_buffer *verify_buf, in ldns_verify_rrsig_buffers() 2010 ldns_buffer *key_buf, uint8_t algo) in ldns_verify_rrsig_buffers() 2022 ldns_buffer *verify_buf, unsigned char* key, size_t keylen, in ldns_verify_rrsig_buffers_raw() 2157 ldns_rrsig2rawsig_buffer(ldns_buffer* rawsig_buf, const ldns_rr* rrsig) in ldns_rrsig2rawsig_buffer() 2284 ldns_prepare_for_verify(ldns_buffer* rawsig_buf, ldns_buffer* verify_buf, in ldns_prepare_for_verify() 2331 ldns_verify_test_sig_key(ldns_buffer* rawsig_buf, ldns_buffer* verify_buf, in ldns_verify_test_sig_key() [all …]
|
H A D | edns.c | 44 ldns_buffer * 50 ldns_buffer* buffer; in ldns_edns_get_wireformat_buffer() 386 ldns_buffer * 390 ldns_buffer* buffer; in ldns_edns_option_list2wireformat_buffer()
|
H A D | dnssec_sign.c | 129 ldns_sign_public_buffer(ldns_buffer *sign_buf, ldns_key *current_key) in ldns_sign_public_buffer() 237 ldns_buffer *sign_buf; in ldns_sign_public() 333 ldns_sign_public_dsa(ldns_buffer *to_sign, DSA *key) in ldns_sign_public_dsa() 338 ldns_buffer *b64sig; in ldns_sign_public_dsa() 444 ldns_sign_public_evp(ldns_buffer *to_sign, 450 ldns_buffer *b64sig; 573 ldns_sign_public_rsasha1(ldns_buffer *to_sign, RSA *key) 578 ldns_buffer *b64sig; 609 ldns_sign_public_rsamd5(ldns_buffer *to_sign, RSA *key) 614 ldns_buffer *b64sig;
|
H A D | parse.c | 301 ldns_bget_token(ldns_buffer *b, char *token, const char *delim, size_t limit) in ldns_bget_token() 431 ldns_bskipcs(ldns_buffer *buffer, const char *s) in ldns_bskipcs() 485 ldns_bget_keyword_data(ldns_buffer *b, const char *keyword, const char *k_del, char in ldns_bget_keyword_data()
|
H A D | rr.c | 128 ldns_buffer *rr_buf = NULL; in ldns_rr_new_frm_str_internal() 129 ldns_buffer *rd_buf = NULL; in ldns_rr_new_frm_str_internal() 170 rr_buf = LDNS_MALLOC(ldns_buffer); in ldns_rr_new_frm_str_internal() 171 rd_buf = LDNS_MALLOC(ldns_buffer); in ldns_rr_new_frm_str_internal() 1466 ldns_buffer *rr1_buf, *rr2_buf; in qsort_schwartz_rr_compare() 1486 ldns_buffer_free((ldns_buffer *)sa->transformed_object); in qsort_schwartz_rr_compare() 1498 ldns_buffer_free((ldns_buffer *)sa->transformed_object); in qsort_schwartz_rr_compare() 1499 ldns_buffer_free((ldns_buffer *)sb->transformed_object); in qsort_schwartz_rr_compare() 1507 rr1_buf = (ldns_buffer *) sa->transformed_object; in qsort_schwartz_rr_compare() 1508 rr2_buf = (ldns_buffer *) sb->transformed_object; in qsort_schwartz_rr_compare() [all …]
|
H A D | dnssec.c | 280 ldns_buffer *keybuf; in ldns_calc_keytag() 337 ldns_key_buf2dsa(const ldns_buffer *key) in ldns_key_buf2dsa() 414 ldns_key_buf2rsa(const ldns_buffer *key) in ldns_key_buf2rsa() 515 ldns_buffer *data_buf; in ldns_key_rr2ds() 1746 ldns_convert_dsa_rrsig_asn12rdf(const ldns_buffer *sig, in ldns_convert_dsa_rrsig_asn12rdf() 1807 ldns_convert_dsa_rrsig_rdf2asn1(ldns_buffer *target_buffer, in ldns_convert_dsa_rrsig_rdf2asn1() 1869 ldns_convert_ecdsa_rrsig_asn1len2rdf(const ldns_buffer *sig, in ldns_convert_ecdsa_rrsig_asn1len2rdf() 1907 ldns_convert_ecdsa_rrsig_rdf2asn1(ldns_buffer *target_buffer, in ldns_convert_ecdsa_rrsig_rdf2asn1()
|
H A D | higher.c | 155 ldns_buffer *linebuf; in ldns_get_rr_list_hosts_frm_fp_l() 185 linebuf = LDNS_MALLOC(ldns_buffer); in ldns_get_rr_list_hosts_frm_fp_l()
|
H A D | str2host.c | 695 ldns_buffer *str_buf; in ldns_str2rdf_nsec() 706 str_buf = LDNS_MALLOC(ldns_buffer); in ldns_str2rdf_nsec() 1102 ldns_buffer *str_buf; in ldns_str2rdf_wks() 1114 str_buf = LDNS_MALLOC(ldns_buffer); in ldns_str2rdf_wks() 1284 ldns_buffer *str_buf; in ldns_str2rdf_ipseckey() 1297 str_buf = LDNS_MALLOC(ldns_buffer); in ldns_str2rdf_ipseckey() 1692 ldns_buffer *str_buf; in ldns_str2rdf_amtrelay() 1704 str_buf = LDNS_MALLOC(ldns_buffer); in ldns_str2rdf_amtrelay() 2202 ldns_status svcparam_key2buffer_str(ldns_buffer *output, uint16_t key) in svcparam_key2buffer_str()
|
/freebsd/contrib/ldns/drill/ |
H A D | work.c | 169 ldns_buffer * 174 ldns_buffer *result_buffer = NULL; in read_hex_buffer() 181 result_buffer = LDNS_MALLOC(ldns_buffer); in read_hex_buffer()
|