| /freebsd-14.2/contrib/sendmail/src/ |
| H A D | sasl.c | 249 char hbuf[NI_MAXHOST], pbuf[NI_MAXSERV]; local 267 hbuf, sizeof(hbuf), pbuf, sizeof(pbuf), niflags) != 0) 275 if (sm_strlcpy(hbuf, inet_ntoa(addr->sin.sin_addr), sizeof(hbuf)) 276 >= sizeof(hbuf)) 284 if (outlen < strlen(hbuf) + strlen(pbuf) + 2) 289 sm_snprintf(out, outlen, "%s;%s", hbuf, pbuf);
|
| H A D | daemon.c | 3648 (void) sm_strlcpyn(hbuf, sizeof(hbuf), 2, RealUserName, 3652 return hbuf; 3915 (void) sm_strlcpy(hbuf, "IDENT:", sizeof(hbuf)); 3954 (void) sm_strlcpy(hbuf, RealHostName, sizeof(hbuf)); 4015 p = &hbuf[strlen(hbuf)]; 4016 l = sizeof(hbuf) - (hbuf - p) - 6; 4064 p = &hbuf[strlen(hbuf)]; 4070 p = &hbuf[strlen(hbuf)]; 4100 return hbuf; 4253 (void) sm_strlcpy(hbuf, name, sizeof(hbuf)); [all …]
|
| H A D | headers.c | 202 char hbuf[50]; local 204 (void) expand(fvalue, hbuf, sizeof(hbuf), e); 205 for (p = hbuf; SM_ISSPACE(*p); ) 1174 char hbuf[MAXNAME + 1]; /* EAI:ok; restricted to short size */ local 1192 name = hbuf; 1193 (void) sm_snprintf(hbuf, sizeof(hbuf), "%.80s", RealHostName); 1196 p = &hbuf[strlen(hbuf)]; 1197 (void) sm_snprintf(p, SPACELEFT(hbuf, p),
|
| /freebsd-14.2/lib/libc/net/ |
| H A D | rcmdsh.c | 68 static char hbuf[NI_MAXHOST]; in rcmdsh() local 95 strncpy(hbuf, res->ai_canonname, sizeof(hbuf) - 1); in rcmdsh() 96 hbuf[sizeof(hbuf) - 1] = '\0'; in rcmdsh() 97 *ahost = hbuf; in rcmdsh()
|
| /freebsd-14.2/usr.sbin/traceroute6/ |
| H A D | traceroute6.c | 664 strlcpy(hbuf, "?", sizeof(hbuf)); in main() 917 strlcpy(hbuf, "(invalid)", sizeof(hbuf)); in main() 1356 hbuf, sizeof(hbuf), NULL, 0, NI_NUMERICHOST) != 0) in packet_ok() 1357 strlcpy(hbuf, "invalid", sizeof(hbuf)); in packet_ok() 1359 hbuf); in packet_ok() 1369 hbuf, sizeof(hbuf), NULL, 0, NI_NUMERICHOST) != 0) in packet_ok() 1370 strlcpy(hbuf, "invalid", sizeof(hbuf)); in packet_ok() 1593 hbuf, sizeof(hbuf), NULL, 0, NI_NUMERICHOST) != 0) in print() 1594 strlcpy(hbuf, "invalid", sizeof(hbuf)); in print() 1608 hbuf, sizeof(hbuf)) : "?"); in print() [all …]
|
| /freebsd-14.2/usr.bin/pr/ |
| H A D | pr.c | 188 char *hbuf; in onecol() local 216 ohbuf = hbuf + offst; in onecol() 312 free(hbuf); in onecol() 316 free(hbuf); in onecol() 348 char *hbuf = NULL; in vertcol() local 647 free(hbuf); in vertcol() 668 char *hbuf; in horzcol() local 792 free(hbuf); in horzcol() 796 free(hbuf); in horzcol() 821 char *hbuf = NULL; in mulfile() local [all …]
|
| /freebsd-14.2/sys/opencrypto/ |
| H A D | gmac.c | 50 uint8_t hbuf[GMAC_BLOCK_LEN]; in AES_GMAC_Setkey() local 55 rijndaelEncrypt(agc->keysched, agc->rounds, zeros, hbuf); in AES_GMAC_Setkey() 57 h = gf128_read(hbuf); in AES_GMAC_Setkey() 61 explicit_bzero(hbuf, sizeof hbuf); in AES_GMAC_Setkey()
|
| /freebsd-14.2/usr.sbin/ctld/ |
| H A D | discovery.c | 107 char hbuf[NI_MAXHOST], sbuf[NI_MAXSERV]; in discovery_add_target() local 118 hbuf, sizeof(hbuf), sbuf, sizeof(sbuf), in discovery_add_target() 126 if (strcmp(hbuf, "0.0.0.0") == 0) in discovery_add_target() 128 ret = asprintf(&buf, "%s:%s,%d", hbuf, sbuf, in discovery_add_target() 132 if (strcmp(hbuf, "::") == 0) in discovery_add_target() 134 ret = asprintf(&buf, "[%s]:%s,%d", hbuf, sbuf, in discovery_add_target()
|
| /freebsd-14.2/usr.bin/logger/ |
| H A D | logger.c | 105 *hostname, hbuf[MAXHOSTNAMELEN], *pristr; in main() local 200 hostname = hbuf; in main() 201 (void )gethostname(hbuf, MAXHOSTNAMELEN); in main() 260 char *p, *p0, *hs, *hbuf, *sbuf; in socksetup() local 262 hbuf = sbuf = NULL; in socksetup() 285 hbuf = (p == hs && *p == ':') ? NULL : p; in socksetup() 297 error = getaddrinfo(hbuf, sbuf, &hints, &res0); in socksetup()
|
| /freebsd-14.2/lib/libc/tests/resolv/ |
| H A D | resolv_test.c | 102 char portstr[6], hbuf[NI_MAXHOST], pbuf[NI_MAXSERV]; in resolv_getaddrinfo() local 114 memset(hbuf, 0, sizeof(hbuf)); in resolv_getaddrinfo() 116 getnameinfo(res->ai_addr, res->ai_addrlen, hbuf, sizeof(hbuf), in resolv_getaddrinfo() 118 DBG("T%ld: reverse %s %s\n", threadnum, hbuf, pbuf); in resolv_getaddrinfo()
|
| /freebsd-14.2/contrib/sendmail/libmilter/ |
| H A D | example.c | 52 char hbuf[1024]; local 74 snprintf(hbuf, sizeof hbuf, "%s@%s", p, host); 75 smfi_addheader(ctx, "X-Archived", hbuf);
|
| /freebsd-14.2/contrib/mandoc/ |
| H A D | tbl_html.c | 123 char hbuf[4], vbuf[4]; in print_tbl() local 195 (void)snprintf(hbuf, sizeof(hbuf), in print_tbl() 197 hspans = hbuf; in print_tbl()
|
| /freebsd-14.2/lib/libfetch/ |
| H A D | http.c | 543 if ((hbuf->buf = realloc(hbuf->buf, conn->buflen + 1)) == NULL) in http_next_header() 545 hbuf->bufsize = conn->buflen + 1; in http_next_header() 547 strcpy(hbuf->buf, conn->buf); in http_next_header() 548 hbuf->buflen = conn->buflen; in http_next_header() 570 if (hbuf->bufsize < len + 1) { in http_next_header() 572 if ((hbuf->buf = realloc(hbuf->buf, len + 1)) == NULL) in http_next_header() 574 hbuf->bufsize = len + 1; in http_next_header() 576 strcpy(hbuf->buf + hbuf->buflen, conn->buf); in http_next_header() 577 hbuf->buflen += conn->buflen; in http_next_header() 1654 snprintf(hbuf, sizeof(hbuf), "%s:%d", host, url->port); in http_request_body() [all …]
|
| /freebsd-14.2/contrib/bearssl/src/x509/ |
| H A D | x509_decoder.c | 106 ctx->hbuf = data; in br_x509_decoder_push() 709 memcpy((unsigned char *)CTX + addr, CTX->hbuf, clen); in br_x509_decoder_run() 712 CTX->append_dn(CTX->append_dn_ctx, CTX->hbuf, clen); in br_x509_decoder_run() 714 CTX->hbuf += clen; in br_x509_decoder_run() 727 unsigned char x = *CTX->hbuf ++; in br_x509_decoder_run()
|
| H A D | x509_decoder.t0 | 39 ctx->hbuf = NULL; 55 ctx->hbuf = data; 76 unsigned char x = *CTX->hbuf ++; 93 memcpy((unsigned char *)CTX + addr, CTX->hbuf, clen); 96 CTX->append_dn(CTX->append_dn_ctx, CTX->hbuf, clen); 98 CTX->hbuf += clen;
|
| H A D | skey_decoder.c | 97 ctx->hbuf = data; in br_skey_decoder_push() 552 memcpy((unsigned char *)CTX + addr, CTX->hbuf, clen); in br_skey_decoder_run() 554 CTX->hbuf += clen; in br_skey_decoder_run() 568 T0_PUSH(*CTX->hbuf ++); in br_skey_decoder_run()
|
| /freebsd-14.2/usr.sbin/config/ |
| H A D | mkoptions.cc | 292 static char hbuf[MAXPATHLEN]; in tooption() local 308 (void)strlcpy(hbuf, fpath, sizeof(hbuf)); in tooption() 310 return (hbuf); in tooption()
|
| /freebsd-14.2/lib/libc/resolv/ |
| H A D | res_send.c | 1100 char hbuf[NI_MAXHOST]; in Aerror() local 1104 if (getnameinfo(address, alen, hbuf, sizeof(hbuf), in Aerror() 1106 strncpy(hbuf, "?", sizeof(hbuf) - 1); in Aerror() 1107 hbuf[sizeof(hbuf) - 1] = '\0'; in Aerror() 1112 string, hbuf, sbuf, strerror(error)); in Aerror()
|
| /freebsd-14.2/lib/libsecureboot/ |
| H A D | verify_file.c | 618 unsigned char hbuf[br_sha256_SIZE]; in verify_pcr_export() local 623 hlen = ve_pcr_get(hbuf, sizeof(hbuf)); in verify_pcr_export() 625 hex = hexdigest(hexbuf, sizeof(hexbuf), hbuf, hlen); in verify_pcr_export()
|
| /freebsd-14.2/contrib/bearssl/inc/ |
| H A D | bearssl_x509.h | 719 const unsigned char *hbuf; member 1038 const unsigned char *hbuf; member 1210 const unsigned char *hbuf; member
|
| H A D | bearssl_pem.h | 124 const unsigned char *hbuf; member
|
| /freebsd-14.2/usr.bin/netstat/ |
| H A D | inet6.c | 1326 char hbuf[NI_MAXHOST], *cp; in inet6name() local 1350 error = getnameinfo((struct sockaddr *)&sin6, sizeof(sin6), hbuf, in inet6name() 1351 sizeof(hbuf), NULL, 0, flags); in inet6name() 1354 (cp = strchr(hbuf, '.')) && in inet6name() 1357 strlcpy(line, hbuf, sizeof(line)); in inet6name()
|
| /freebsd-14.2/usr.sbin/ndp/ |
| H A D | ndp.c | 885 static char hbuf[NI_MAXHOST]; in ether_str() local 888 strlcpy(hbuf, ether_ntoa((struct ether_addr *)LLADDR(sdl)), in ether_str() 889 sizeof(hbuf)); in ether_str() 892 snprintf(hbuf, sizeof(hbuf), "%s", link_ntoa(sdl) + n); in ether_str() 894 snprintf(hbuf, sizeof(hbuf), "(incomplete)"); in ether_str() 896 return(hbuf); in ether_str()
|
| /freebsd-14.2/libexec/tftpd/ |
| H A D | tftpd.c | 334 char hbuf[NI_MAXHOST]; in main() local 340 hbuf, sizeof(hbuf), NULL, 0, in main() 342 asprintf(&tempchroot, "%s/%s", chroot_dir, hbuf); in main()
|
| /freebsd-14.2/sys/contrib/zlib/ |
| H A D | inflate.c | 428 hbuf[0] = (unsigned char)(word); \ 429 hbuf[1] = (unsigned char)((word) >> 8); \ 430 check = crc32(check, hbuf, 2); \ 435 hbuf[0] = (unsigned char)(word); \ 436 hbuf[1] = (unsigned char)((word) >> 8); \ 437 hbuf[2] = (unsigned char)((word) >> 16); \ 438 hbuf[3] = (unsigned char)((word) >> 24); \ 439 check = crc32(check, hbuf, 4); \ 605 unsigned char hbuf[4]; /* buffer for gzip header crc calculation */ in inflate() local
|