/freebsd-12-stable/contrib/ldns/ |
H A D | str2host.c | 148 salt = LDNS_XMALLOC(uint8_t, salt_length_str / 2); 163 data = LDNS_XMALLOC(uint8_t, 1 + salt_length); 434 dp = data = LDNS_XMALLOC(uint8_t, strlen(str) > 255 ? 256 : (strlen(str) + 1)); 509 my_ip_str = LDNS_XMALLOC(char, ip_str_len + 1); 516 afdpart = LDNS_XMALLOC(uint8_t, 4); 533 afdpart = LDNS_XMALLOC(uint8_t, 16); 557 data = LDNS_XMALLOC(uint8_t, 4 + afdlength); 587 buffer = LDNS_XMALLOC(uint8_t, ldns_b64_ntop_calculate_size(strlen(str))); 613 buffer = LDNS_XMALLOC(uint8_t, len + 1); 645 t = LDNS_XMALLOC(uint8_ [all...] |
H A D | higher.c | 162 line = LDNS_XMALLOC(char, LDNS_MAX_LINELEN + 1); 163 word = LDNS_XMALLOC(char, LDNS_MAX_LINELEN + 1); 164 addr = LDNS_XMALLOC(char, LDNS_MAX_LINELEN + 1); 165 rr_str = LDNS_XMALLOC(char, LDNS_MAX_LINELEN + 1);
|
H A D | buffer.c | 24 buffer->_data = (uint8_t *) LDNS_XMALLOC(uint8_t, capacity); 48 buffer->_data = LDNS_XMALLOC(uint8_t, size);
|
H A D | rdata.c | 134 uint16_t *rdf_data = LDNS_XMALLOC(uint16_t, 1); 149 uint32_t *rdf_data = LDNS_XMALLOC(uint32_t, 1); 164 uint8_t *rdf_data = LDNS_XMALLOC(uint8_t, size + 2); 207 rdf->_data = LDNS_XMALLOC(uint8_t, size); 392 line = LDNS_XMALLOC(char, LDNS_MAX_LINELEN + 1); 492 char_dname = LDNS_XMALLOC(char, (LDNS_IP6ADDRLEN * 4)); 571 data = LDNS_XMALLOC(uint8_t, 4 + hit_size + pk_size);
|
H A D | tsig.c | 120 wire2 = LDNS_XMALLOC(uint8_t, *result_len); 238 key_bytes = LDNS_XMALLOC(unsigned char, 252 mac_bytes = LDNS_XMALLOC(unsigned char, md_len+2); 401 time_signed = LDNS_XMALLOC(uint8_t, 6);
|
H A D | parse.c | 193 fkeyword = LDNS_XMALLOC(char, LDNS_MAX_KEYWORDLEN); 412 fkeyword = LDNS_XMALLOC(char, LDNS_MAX_KEYWORDLEN);
|
H A D | keys.c | 471 d = LDNS_XMALLOC(char, LDNS_MAX_LINELEN); 808 b = LDNS_XMALLOC(char, LDNS_MAX_LINELEN); 809 buf = LDNS_XMALLOC(uint8_t, LDNS_MAX_LINELEN); 960 d = LDNS_XMALLOC(char, LDNS_MAX_LINELEN); 961 buf = LDNS_XMALLOC(uint8_t, LDNS_MAX_LINELEN); 1076 buf = LDNS_XMALLOC(unsigned char, bufsz); 1240 hmac = LDNS_XMALLOC(unsigned char, size); 1880 bin = LDNS_XMALLOC(unsigned char, LDNS_MAX_KEYLEN); 1903 bin = LDNS_XMALLOC(unsigned char, LDNS_MAX_KEYLEN); 1926 bin = LDNS_XMALLOC(unsigne [all...] |
H A D | dname.c | 74 buf = LDNS_XMALLOC(uint8_t, new_size); 135 buf = LDNS_XMALLOC(uint8_t, rd_size); 581 data = LDNS_XMALLOC(uint8_t, len + 2);
|
H A D | rr.c | 55 rr->_rdata_fields = LDNS_XMALLOC(ldns_rdf *, ldns_rr_descriptor_minimum(desc)); 157 owner = LDNS_XMALLOC(char, LDNS_MAX_DOMAINLEN + 1); 158 ttl = LDNS_XMALLOC(char, LDNS_TTL_DATALEN); 159 clas = LDNS_XMALLOC(char, LDNS_SYNTAX_DATALEN); 160 rdata = LDNS_XMALLOC(char, LDNS_MAX_PACKETLEN + 1); 163 rd = LDNS_XMALLOC(char, LDNS_MAX_RDFLEN); 164 xtok = LDNS_XMALLOC(char, LDNS_MAX_RDFLEN); 211 type = LDNS_XMALLOC(char, strlen(ttl) + 1); 230 type = LDNS_XMALLOC(char, strlen(clas) + 1); 240 type = LDNS_XMALLOC(cha [all...] |
H A D | dnssec.c | 530 digest = LDNS_XMALLOC(uint8_t, LDNS_SHA1_DIGEST_LENGTH); 537 digest = LDNS_XMALLOC(uint8_t, LDNS_SHA256_DIGEST_LENGTH); 551 digest = LDNS_XMALLOC(uint8_t, EVP_MD_size(md)); 564 digest = LDNS_XMALLOC(uint8_t, SHA384_DIGEST_LENGTH); 1035 hashed_owner_str = LDNS_XMALLOC(unsigned char, hashed_owner_str_len); 1050 hashed_owner_str = LDNS_XMALLOC(unsigned char, hashed_owner_str_len); 1063 hashed_owner_b32 = LDNS_XMALLOC(char, 1129 salt_data = LDNS_XMALLOC(uint8_t, salt_length + 1); 1330 salt = LDNS_XMALLOC(uint8_t, salt_length); 1752 dsasig_data = LDNS_XMALLOC(unsigne [all...] |
H A D | net.c | 650 sendbuf = LDNS_XMALLOC(uint8_t, ldns_buffer_position(qbin) + 2); 692 wire = LDNS_XMALLOC(uint8_t, LDNS_MAX_PACKETLEN); 722 wire = LDNS_XMALLOC(uint8_t, 2); 747 wire = LDNS_XMALLOC(uint8_t, wire_size); 781 wire = LDNS_XMALLOC(uint8_t, 2); 801 wire = LDNS_XMALLOC(uint8_t, wire_size);
|
H A D | radix.c | 926 a = LDNS_XMALLOC(ldns_radix_array_t, size); 953 array->str = LDNS_XMALLOC(uint8_t, (len-pos)); 979 *split_str = LDNS_XMALLOC(uint8_t, (*split_len)); 1029 dup_str = LDNS_XMALLOC(uint8_t, strlen_to_add); 1134 common_str = LDNS_XMALLOC(uint8_t, common_len); 1390 join_str = LDNS_XMALLOC(uint8_t, join_len); 1561 ldns_radix_array_t* a = LDNS_XMALLOC(ldns_radix_array_t,
|
H A D | resolver.c | 305 nameservers = LDNS_XMALLOC(ldns_rdf *, 1); 317 rtt = LDNS_XMALLOC(size_t, 1); 679 LDNS_XMALLOC(ldns_rdf *, dst->_searchlist_count))) 693 LDNS_XMALLOC(ldns_rdf *, dst->_nameserver_count))) 702 LDNS_XMALLOC(size_t, dst->_nameserver_count))) 1179 new_rtt = LDNS_XMALLOC(size_t
|
H A D | host2str.c | 479 char *b64 = LDNS_XMALLOC(char, size); 498 b32 = LDNS_XMALLOC(char, size + 1); 1039 b64 = LDNS_XMALLOC(char, size); 1088 gateway_data = LDNS_XMALLOC(uint8_t, LDNS_IP4ADDRLEN); 1104 gateway_data = LDNS_XMALLOC(uint8_t, LDNS_IP6ADDRLEN); 1135 public_key_data = LDNS_XMALLOC(uint8_t, public_key_size); 1425 b32 = LDNS_XMALLOC(char, size + 2); 1936 unsigned char *bignumbuf = LDNS_XMALLOC(unsigned char, LDNS_MAX_KEYLEN); 1976 bignum = LDNS_XMALLOC(unsigned char, LDNS_MAX_KEYLEN);
|
H A D | dane.c | 127 digest = LDNS_XMALLOC(unsigned char, LDNS_SHA256_DIGEST_LENGTH); 142 digest = LDNS_XMALLOC(unsigned char, LDNS_SHA512_DIGEST_LENGTH);
|
H A D | util.c | 343 seed = LDNS_XMALLOC(uint8_t, size); 427 retval = LDNS_XMALLOC(char, rounds * 6);
|
H A D | wire2host.c | 288 data = LDNS_XMALLOC(uint8_t, rd_length);
|
H A D | libdns.vim | 8 syn keyword ldnsMacro LDNS_XMALLOC
|
H A D | dnssec_verify.c | 444 ldns_dnssec_trust_tree *new_tree = LDNS_XMALLOC(ldns_dnssec_trust_tree, 513 sibmap = LDNS_XMALLOC(uint8_t, treedepth);
|
H A D | dnssec_sign.c | 362 data = LDNS_XMALLOC(uint8_t, 1 + 2 * SHA_DIGEST_LENGTH);
|
/freebsd-12-stable/contrib/ldns/ldns/ |
H A D | util.h | 49 #define LDNS_MALLOC(type) LDNS_XMALLOC(type, 1) 51 #define LDNS_XMALLOC(type, count) ((type *) malloc((count) * sizeof(type))) macro
|
/freebsd-12-stable/contrib/ldns/drill/ |
H A D | securetrace.c | 244 labels = LDNS_XMALLOC(ldns_rdf*, labels_count + 2);
|