/bind-9.6-ESV-R11/lib/isc/ |
H A D | bufferlist.c | 26 #include <isc/buffer.h> 32 isc_buffer_t *buffer; local 38 buffer = ISC_LIST_HEAD(*bl); 39 while (buffer != NULL) { 40 REQUIRE(ISC_BUFFER_VALID(buffer)); 41 length += isc_buffer_usedlength(buffer); 42 buffer = ISC_LIST_NEXT(buffer, link); 50 isc_buffer_t *buffer; local 56 buffer [all...] |
H A D | sha2.c | 413 memset(context->buffer, 0, ISC_SHA256_BLOCK_LENGTH); 436 isc_sha224_end(isc_sha224_t *context, char buffer[]) { argument 443 if (buffer != (char*)0) { 447 *buffer++ = sha2_hex_digits[(*d & 0xf0) >> 4]; 448 *buffer++ = sha2_hex_digits[*d & 0x0f]; 451 *buffer = (char)0; 456 return buffer; 478 memset(context->buffer, 0, ISC_SHA256_BLOCK_LENGTH); 524 W256 = (isc_uint32_t*)context->buffer; 586 W256 = (isc_uint32_t*)context->buffer; 797 isc_sha256_end(isc_sha256_t *context, char buffer[]) argument 1156 isc_sha512_end(isc_sha512_t *context, char buffer[]) argument 1244 isc_sha384_end(isc_sha384_t *context, char buffer[]) argument [all...] |
/bind-9.6-ESV-R11/lib/dns/include/dns/ |
H A D | fixedname.h | 32 * and a dedicated buffer big enough for the longest possible name. 58 #include <isc/buffer.h> 69 isc_buffer_t buffer; member in struct:dns_fixedname 76 isc_buffer_init(&((fn)->buffer), (fn)->data, \ 78 dns_name_setbuffer(&((fn)->name), &((fn)->buffer)); \
|
H A D | timer.h | 29 #include <isc/buffer.h>
|
H A D | tcpmsg.h | 25 #include <isc/buffer.h> 33 isc_buffer_t buffer; member in struct:dns_tcpmsg 117 dns_tcpmsg_keepbuffer(dns_tcpmsg_t *tcpmsg, isc_buffer_t *buffer); 119 * If a dns buffer is to be kept between calls, this function marks the 120 * internal state-machine buffer as invalid, and copies all the contents 121 * of the state into "buffer". 127 *\li "buffer" be non-NULL.
|
H A D | ds.h | 39 unsigned int digest_type, unsigned char *buffer, 46 *\li buffer Points to a temporary buffer of at least 52 * to 'buffer'.
|
H A D | time.h | 29 #include <isc/buffer.h>
|
/bind-9.6-ESV-R11/bin/tests/ |
H A D | hash_test.c | 60 unsigned char buffer[1024]; local 69 memmove(buffer, s, strlen(s)); 70 isc_sha1_update(&sha1, buffer, strlen(s)); 76 memmove(buffer, s, strlen(s)); 77 isc_sha1_update(&sha1, buffer, strlen(s)); 83 memmove(buffer, s, strlen(s)); 84 isc_sha224_update(&sha224, buffer, strlen(s)); 90 memmove(buffer, s, strlen(s)); 91 isc_sha224_update(&sha224, buffer, strlen(s)); 97 memmove(buffer, [all...] |
H A D | nsec3hash.c | 25 #include <isc/buffer.h> 70 isc_buffer_t buffer; local 88 isc_buffer_init(&buffer, salt, sizeof(salt)); 89 result = isc_hex_decodestring(argv[1], &buffer); 91 salt_length = isc_buffer_usedlength(&buffer); 104 isc_buffer_init(&buffer, argv[4], strlen(argv[4])); 105 isc_buffer_add(&buffer, strlen(argv[4])); 106 result = dns_name_fromtext(name, &buffer, dns_rootname, 0, NULL); 116 isc_buffer_init(&buffer, text, sizeof(text)); 117 isc_base32hex_totext(®ion, 1, "", &buffer); [all...] |
H A D | entropy_test.c | 61 unsigned char buffer[512]; local 96 result = isc_entropy_getdata(ent, buffer, 32, &returned, flags); 101 hex_dump("good data only:", buffer, returned); 106 isc_entropy_getdata(ent, buffer, 128, NULL, 0)); 107 hex_dump("pseudorandom data", buffer, 128); 113 result = isc_entropy_getdata(ent, buffer, sizeof(buffer), &returned, 116 hex_dump("blocking mode data", buffer, sizeof(buffer));
|
H A D | rbt_test.c | 62 * The buffer for the actual name will immediately follow the 98 char buffer[1024]; local 100 isc_buffer_init(&target, buffer, sizeof(buffer)); 258 char *command, *arg, buffer[1024]; local 314 while (fgets(buffer, sizeof(buffer), stdin) != NULL) { 315 length = strlen(buffer); 317 if (buffer[length - 1] != '\n') { 319 (unsigned long)sizeof(buffer) [all...] |
/bind-9.6-ESV-R11/lib/dns/ |
H A D | tcpmsg.c | 85 isc_buffer_init(&tcpmsg->buffer, region.base, region.length); 122 isc_buffer_add(&tcpmsg->buffer, ev->n); 140 tcpmsg->buffer.base = NULL; 141 tcpmsg->buffer.length = 0; 173 if (tcpmsg->buffer.base != NULL) { 174 isc_mem_put(tcpmsg->mctx, tcpmsg->buffer.base, 175 tcpmsg->buffer.length); 176 tcpmsg->buffer.base = NULL; 177 tcpmsg->buffer.length = 0; 208 dns_tcpmsg_keepbuffer(dns_tcpmsg_t *tcpmsg, isc_buffer_t *buffer) { argument [all...] |
H A D | gssapi_link.c | 26 #include <isc/buffer.h> 49 isc_buffer_t *buffer; member in struct:dst_gssapi_signverifyctx 66 ctx->buffer = NULL; 67 result = isc_buffer_allocate(dctx->mctx, &ctx->buffer, 87 if (ctx->buffer != NULL) 88 isc_buffer_free(&ctx->buffer); 95 * Add data to our running buffer of data we will be signing or verifying. 96 * This code will see if the new data will fit in our existing buffer, and 98 * buffer and copy old+new into it, and free the old buffer [all...] |
H A D | masterdump.c | 190 isc_buffer_t *buffer, FILE *f); 292 * buffer is too small, because that would just make 294 * bigger target buffers. That's a different buffer, 555 * times with increasing buffer sizes until it succeeds, 699 * Print an rdataset. 'buffer' is a scratch buffer, which must have been 702 * the buffer will be grown automatically. 708 isc_buffer_t *buffer, FILE *f) 713 REQUIRE(buffer->length > 0); 725 isc_buffer_clear(buffer); 706 dump_rdataset(isc_mem_t *mctx, dns_name_t *name, dns_rdataset_t *rdataset, dns_totext_ctx_t *ctx, isc_buffer_t *buffer, FILE *f) argument 833 dump_rdatasets_text(isc_mem_t *mctx, dns_name_t *name, dns_rdatasetiter_t *rdsiter, dns_totext_ctx_t *ctx, isc_buffer_t *buffer, FILE *f) argument 916 dump_rdataset_raw(isc_mem_t *mctx, dns_name_t *name, dns_rdataset_t *rdataset, isc_buffer_t *buffer, FILE *f) argument 1024 dump_rdatasets_raw(isc_mem_t *mctx, dns_name_t *name, dns_rdatasetiter_t *rdsiter, dns_totext_ctx_t *ctx, isc_buffer_t *buffer, FILE *f) argument 1313 isc_buffer_t buffer; local 1693 isc_buffer_t buffer; local [all...] |
/bind-9.6-ESV-R11/contrib/idn/idnkit-1.0-src/lib/tests/ |
H A D | setenv.c | 106 char *buffer; local 112 buffer = (char *) malloc(strlen(name) + strlen(value) + 2); 113 if (buffer == NULL) 115 strcpy(buffer, name); 116 strcat(buffer, "="); 117 strcat(buffer, value); 124 mye->pointer = buffer; 131 result = putenv(buffer);
|
/bind-9.6-ESV-R11/unit/atf-src/atf-c/ |
H A D | utils_test.c | 46 /** Reads the contents of a file into a buffer. 48 * Up to buflen-1 characters are read into buffer. If this function returns, 49 * the contents read into the buffer are guaranteed to be nul-terminated. 54 * \param buffer Buffer into which to store the file contents. 55 * \param buflen Size of the target buffer. 59 read_file(const char *path, void *const buffer, const size_t buflen) argument 63 const ssize_t length = read(fd, buffer, buflen - 1); 66 ((char *)buffer)[length] = '\0'; 79 char buffer[1024]; local 80 read_file("captured.txt", buffer, sizeo 93 char buffer[1024]; local 107 char buffer[1024]; local 121 char buffer[1024]; local 216 char buffer[128]; local 249 char buffer[1024]; local 352 char buffer[1024]; local 365 char buffer[1024]; local 378 char buffer[1024]; local [all...] |
H A D | utils.c | 83 char buffer[1024]; local 86 while ((count = read(fd, buffer, sizeof(buffer) - 1)) > 0) { 87 buffer[count] = '\0'; 92 char *iter = buffer; 99 if (iter != buffer + count) 104 if (iter < buffer + count) { 127 char buffer[1024]; local 129 while ((count = read(fd, buffer, sizeof(buffer))) > 157 char buffer[1024]; local [all...] |
/bind-9.6-ESV-R11/contrib/idn/idnkit-1.0-src/tools/runidn/ |
H A D | stub.h | 15 char *buffer, size_t buflen, 22 char *buffer, int buflen, int *errp); 35 char *buffer, size_t buflen, 49 struct hostent *result, char *buffer, 56 struct hostent *result, char *buffer,
|
H A D | stub.c | 213 char *buffer, size_t buflen, 217 char *buffer, size_t buflen, 223 return ((*fp)(name, result, buffer, buflen, rp, errp)); 231 char *buffer, size_t buflen, 235 char *buffer, size_t buflen, 241 return ((*fp)(name, af, result, buffer, buflen, rp, errp)); 249 struct hostent *result, char *buffer, 253 struct hostent *result, char *buffer, 260 buffer, buflen, rp, errp)); 270 char *buffer, in 212 idn_stub_gethostbyname_r(const char *name, struct hostent *result, char *buffer, size_t buflen, struct hostent **rp, int *errp) argument 230 idn_stub_gethostbyname2_r(const char *name, int af, struct hostent *result, char *buffer, size_t buflen, struct hostent **rp, int *errp) argument 248 idn_stub_gethostbyaddr_r(GHBA_ADDR_T addr, GHBA_ADDRLEN_T len, int type, struct hostent *result, char *buffer, size_t buflen, struct hostent **rp, int *errp) argument 269 idn_stub_gethostbyname_r(const char *name, struct hostent *result, char *buffer, int buflen, int *errp) argument 285 idn_stub_gethostbyaddr_r(GHBA_ADDR_T addr, int len, int type, struct hostent *result, char *buffer, int buflen, int *errp) argument [all...] |
/bind-9.6-ESV-R11/lib/isccc/ |
H A D | ccmsg.c | 90 isc_buffer_init(&ccmsg->buffer, region.base, region.length); 126 isc_buffer_add(&ccmsg->buffer, ev->n); 143 ccmsg->buffer.base = NULL; 144 ccmsg->buffer.length = 0; 175 if (ccmsg->buffer.base != NULL) { 176 isc_mem_put(ccmsg->mctx, ccmsg->buffer.base, 177 ccmsg->buffer.length); 178 ccmsg->buffer.base = NULL; 179 ccmsg->buffer.length = 0; 214 if (ccmsg->buffer [all...] |
/bind-9.6-ESV-R11/lib/lwres/ |
H A D | lwresutil.c | 24 * current pointer of lightweight resolver buffer b: i.e. b->current. 27 * given by *len. The buffer's current pointer is advanced to point at 31 * lwres_addr_parse() extracts an address from the buffer b. The 32 * buffer's current pointer b->current is presumed to point at an 37 * next byte of available data in the buffer following the encoded 79 * the buffer is corrupt or #LWRES_R_UNEXPECTEDEND if the buffer has 146 * advance the buffer pointer. 194 * advance the buffer pointer. 217 /*% Extracts an address from the buffer 251 char *buffer; local 367 char *buffer; local 474 char *buffer; local [all...] |
/bind-9.6-ESV-R11/lib/isccc/include/isccc/ |
H A D | ccmsg.h | 39 #include <isc/buffer.h> 48 isc_buffer_t buffer; member in struct:isccc_ccmsg
|
/bind-9.6-ESV-R11/lib/isc/include/isc/ |
H A D | sha1.h | 40 unsigned char buffer[ISC_SHA1_BLOCK_LENGTH]; member in struct:__anon173
|
/bind-9.6-ESV-R11/bin/named/ |
H A D | lwderror.c | 39 * The only change this code makes is to set the receive buffer size to the 53 * the receive buffer. This means we won't need to allocate space 63 lwres_buffer_init(&b, client->buffer, LWRES_RECVLENGTH); 70 r.base = client->buffer; 72 client->sendbuf = client->buffer;
|
/bind-9.6-ESV-R11/contrib/idn/idnkit-1.0-src/lib/ |
H A D | res.c | 191 unsigned long *buffer = NULL; local 254 new_buffer = realloc(buffer, sizeof(*buffer) * buffer_length); 259 buffer = (unsigned long *)new_buffer; 263 buffer, buffer_length); 265 r = idn_ucs4_utf8toucs4(from, buffer, buffer_length); 275 if (*buffer == '\0') { 290 idn__debug_ucs4xstring(buffer, 50))); 294 r = idn_delimitermap_map(delimiter_mapper, buffer, 295 buffer, buffer_lengt 457 unsigned long *buffer = NULL; local 1549 char *buffer = NULL; local [all...] |