/bind-9.6-ESV-R11/bin/tests/ |
H A D | master_test.c | 62 isc_buffer_t source; local 72 isc_buffer_init(&source, argv[1], strlen(argv[1])); 73 isc_buffer_add(&source, strlen(argv[1])); 74 isc_buffer_setactive(&source, strlen(argv[1])); 77 result = dns_name_fromtext(&origin, &source, dns_rootname,
|
H A D | compress_test.c | 100 isc_buffer_t source; local 117 isc_buffer_init(&source, buf1, sizeof(buf1)); 120 RUNTIME_CHECK(dns_name_towire(name1, &cctx, &source) == ISC_R_SUCCESS); 123 RUNTIME_CHECK(dns_compress_localinit(&cctx, name1, &source) == 127 RUNTIME_CHECK(dns_name_towire(name2, &cctx, &source) == ISC_R_SUCCESS); 128 RUNTIME_CHECK(dns_name_towire(name2, &cctx, &source) == ISC_R_SUCCESS); 129 RUNTIME_CHECK(dns_name_towire(name3, &cctx, &source) == ISC_R_SUCCESS); 139 for (i = 0; i < source.used; /* */ ) { 141 ((unsigned char *)source.base)[i]); 145 if (i == source [all...] |
H A D | entropy2_test.c | 61 start(isc_entropysource_t *source, void *arg, isc_boolean_t blocking) { argument 64 UNUSED(source); 75 stop(isc_entropysource_t *source, void *arg) { argument 78 UNUSED(source); 87 get(isc_entropysource_t *source, void *arg, isc_boolean_t blocking) { argument 107 result = isc_entropy_addcallbacksample(source, sample, extra); 124 isc_entropysource_t *source; local 143 source = NULL; 145 &source); 167 isc_entropy_destroysource(&source); [all...] |
H A D | name_test.c | 49 isc_buffer_t source; local 53 isc_buffer_init(&source, s, sizeof(s)); 55 result = dns_name_totext(name, ISC_FALSE, &source); 59 isc_buffer_usedregion(&source, &r); 73 isc_buffer_t source; local 126 isc_buffer_init(&source, argv[0], len); 127 isc_buffer_add(&source, len); 130 result = dns_name_fromtext(origin, &source, 150 isc_buffer_init(&source, argv[1], len); 151 isc_buffer_add(&source, le [all...] |
H A D | rbt_test.c | 42 isc_buffer_t source, target; local 52 isc_buffer_init(&source, s, length); 53 isc_buffer_add(&source, length); 74 result = dns_name_fromtext(name, &source, dns_rootname,
|
H A D | wire_test.c | 40 process_message(isc_buffer_t *source); 79 isc_buffer_t source; local 180 isc_buffer_init(&source, p + 2, len); 181 isc_buffer_add(&source, len); 182 process_message(&source); 186 isc_buffer_init(&source, b, sizeof(b)); 187 isc_buffer_add(&source, bp - b); 188 process_message(&source); 199 process_message(isc_buffer_t *source) { argument 208 result = dns_message_parse(message, source, parseflag [all...] |
/bind-9.6-ESV-R11/lib/isccc/ |
H A D | base64.c | 48 isccc_base64_encode(isccc_region_t *source, int wordlength, argument 55 sr.base = source->rstart; 56 sr.length = source->rend - source->rstart; 62 source->rstart = source->rend;
|
/bind-9.6-ESV-R11/bin/named/ |
H A D | listenlist.c | 86 ns_listenlist_attach(ns_listenlist_t *source, ns_listenlist_t **target) { argument 87 INSIST(source->refcount > 0); 88 source->refcount++; 89 *target = source;
|
H A D | lwsearch.c | 68 ns_lwsearchlist_attach(ns_lwsearchlist_t *source, ns_lwsearchlist_t **target) { argument 69 REQUIRE(VALID_LWSEARCHLIST(source)); 72 LOCK(&source->lock); 73 INSIST(source->refs > 0); 74 source->refs++; 75 INSIST(source->refs != 0); 76 UNLOCK(&source->lock); 78 *target = source;
|
/bind-9.6-ESV-R11/lib/dns/ |
H A D | key.c | 35 dst_region_computeid(const isc_region_t *source, unsigned int alg) { argument 40 REQUIRE(source != NULL); 41 REQUIRE(source->length >= 4); 43 p = source->base; 44 size = source->length;
|
H A D | iptable.c | 116 dns_iptable_merge(dns_iptable_t *tab, dns_iptable_t *source, isc_boolean_t pos) argument 122 RADIX_WALK (source->radix->head, node) { 158 dns_iptable_attach(dns_iptable_t *source, dns_iptable_t **target) { argument 159 REQUIRE(DNS_IPTABLE_VALID(source)); 160 isc_refcount_increment(&source->refcount, NULL); 161 *target = source;
|
H A D | order.c | 139 dns_order_attach(dns_order_t *source, dns_order_t **target) { argument 140 REQUIRE(DNS_ORDER_VALID(source)); 142 isc_refcount_increment(&source->references, NULL); 143 *target = source;
|
H A D | ttl.c | 46 static isc_result_t bind_ttl(isc_textregion_t *source, isc_uint32_t *ttl); 136 dns_counter_fromtext(isc_textregion_t *source, isc_uint32_t *ttl) { argument 137 return (bind_ttl(source, ttl)); 141 dns_ttl_fromtext(isc_textregion_t *source, isc_uint32_t *ttl) { argument 144 result = bind_ttl(source, ttl); 151 bind_ttl(isc_textregion_t *source, isc_uint32_t *ttl) { argument 162 if (source->length > sizeof(buf) - 1) 164 strncpy(buf, source->base, source->length); 165 buf[source [all...] |
H A D | dbtable.c | 136 dns_dbtable_attach(dns_dbtable_t *source, dns_dbtable_t **targetp) { argument 137 REQUIRE(VALID_DBTABLE(source)); 140 LOCK(&source->lock); 142 INSIST(source->references > 0); 143 source->references++; 144 INSIST(source->references != 0); 146 UNLOCK(&source->lock); 148 *targetp = source;
|
H A D | rdatalist.c | 157 isc__rdatalist_clone(dns_rdataset_t *source, dns_rdataset_t *target) { argument 159 REQUIRE(source != NULL); 162 *target = *source;
|
H A D | time.c | 134 dns_time64_fromtext(const char *source, isc_int64_t *target) { argument 146 if (strlen(source) != 14U) 149 * Confirm the source only consists digits. sscanf() allows some 153 if (!isdigit((unsigned char)source[i])) 156 if (sscanf(source, "%4d%2d%2d%2d%2d%2d", 194 dns_time32_fromtext(const char *source, isc_uint32_t *target) { argument 197 result = dns_time64_fromtext(source, &value64);
|
/bind-9.6-ESV-R11/lib/dns/tests/ |
H A D | rdata_test.c | 50 isc_buffer_t source, target; local 66 isc_buffer_init(&source, hipwire, sizeof(hipwire)); 67 isc_buffer_add(&source, sizeof(hipwire)); 68 isc_buffer_setactive(&source, i); 73 dns_rdatatype_hip, &source, &dctx, 95 /* Option code family 0, source 0, scope 0 */ 103 /* Option code family 1 (ipv4), source 0, scope 0 */ 111 /* Option code family 2 (ipv6) , source 0, scope 0 */ 128 /* source too long for IPv4 */ 137 /* source to 205 isc_buffer_t source, target; local 264 isc_buffer_t source, target1, target2; local 338 isc_buffer_t source, target1, target2; local [all...] |
/bind-9.6-ESV-R11/lib/isc/ |
H A D | bitstring.c | 81 isc_bitstring_copy(isc_bitstring_t *source, unsigned int sbitpos, argument 88 * Starting at bit 'sbitpos', copy 'n' bits from 'source' to 92 REQUIRE(VALID_BITSTRING(source)); 94 REQUIRE(source->lsb0 == target->lsb0); 95 if (source->lsb0) { 96 REQUIRE(sbitpos <= source->length); 97 sbitpos = PADDED(source->size) - sbitpos; 101 REQUIRE(sbitpos + n <= source->length); 119 if (BITSET(source, sbitpos))
|
H A D | base64.c | 43 str_totext(const char *source, isc_buffer_t *target); 53 isc_base64_totext(isc_region_t *source, int wordlength, argument 63 while (source->length > 2) { 64 buf[0] = base64[(source->base[0]>>2)&0x3f]; 65 buf[1] = base64[((source->base[0]<<4)&0x30)| 66 ((source->base[1]>>4)&0x0f)]; 67 buf[2] = base64[((source->base[1]<<2)&0x3c)| 68 ((source->base[2]>>6)&0x03)]; 69 buf[3] = base64[source->base[2]&0x3f]; 71 isc_region_consume(source, 227 str_totext(const char *source, isc_buffer_t *target) argument [all...] |
H A D | hex.c | 43 str_totext(const char *source, isc_buffer_t *target); 51 isc_hex_totext(isc_region_t *source, int wordlength, argument 61 while (source->length > 0) { 62 buf[0] = hex[(source->base[0] >> 4) & 0xf]; 63 buf[1] = hex[(source->base[0]) & 0xf]; 65 isc_region_consume(source, 1); 68 if (source->length != 0 && 176 str_totext(const char *source, isc_buffer_t *target) { argument 181 l = strlen(source); 186 memmove(region.base, source, [all...] |
H A D | string.c | 22 * Redistribution and use in source and binary forms, with or without 25 * 1. Redistributions of source code must retain the above copyright 62 isc_string_touint64(char *source, char **end, int base) { argument 65 char *s = source; 70 *end = source; 88 *end = source; 109 *end = source; 115 *end = source; 126 isc_string_copy(char *target, size_t size, const char *source) { argument 129 if (strlcpy(target, source, siz 140 isc_string_copy_truncate(char *target, size_t size, const char *source) argument 149 isc_string_append(char *target, size_t size, const char *source) argument 164 isc_string_append_truncate(char *target, size_t size, const char *source) argument 210 isc_string_regiondup(isc_mem_t *mctx, const isc_region_t *source) argument [all...] |
/bind-9.6-ESV-R11/lib/isc/win32/ |
H A D | entropy.c | 49 get_from_filesource(isc_entropysource_t *source, isc_uint32_t desired) { argument 50 isc_entropy_t *ent = source->ent; 52 HCRYPTPROV hcryptprov = source->sources.file.handle; 56 if (source->bad) 66 source->bad = ISC_TRUE; 80 * Poll each source, trying to get data from it to stuff into the entropy 89 isc_entropysource_t *source; local 143 * Poll each file source to see if we can read anything useful from 157 source = ent->nextsource; 159 * Remember the first source s 230 destroyfilesource(isc_entropyfilesource_t *source) argument 235 destroyusocketsource(isc_entropyusocketsource_t *source) argument 243 isc_entropysource_t *source; local [all...] |
/bind-9.6-ESV-R11/unit/atf-src/atf-c++/ |
H A D | utils.cpp | 7 // Redistribution and use in source and binary forms, with or without 10 // 1. Redistributions of source code must retain the above copyright 46 atf::utils::copy_file(const std::string& source, const std::string& destination) argument 48 atf_utils_copy_file(source.c_str(), destination.c_str());
|
/bind-9.6-ESV-R11/contrib/sdb/pgsql/ |
H A D | zonetodb.c | 74 * "dest" must be an array of at least size 2*strlen(source) + 1. 77 quotestring(const char *source, char *dest) { argument 78 while (*source != 0) { 79 if (*source == '\'') 81 else if (*source == '\\') 83 *dest++ = *source++;
|
/bind-9.6-ESV-R11/bin/dnssec/ |
H A D | dnssectool.c | 56 isc_entropysource_t *source; member in struct:entropysource 220 isc_entropysource_t *source = NULL; local 238 result = isc_entropy_usebestsource(*ectx, &source, randomfile, 242 fatal("could not initialize entropy source: %s", 245 if (source != NULL) { 249 elt->source = source; 258 entropysource_t *source; local 260 source = ISC_LIST_HEAD(sources); 261 ISC_LIST_UNLINK(sources, source, lin [all...] |