| /freebsd-13.1/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 | 3564 (void) sm_strlcpyn(hbuf, sizeof(hbuf), 2, RealUserName, 3568 return hbuf; 3831 (void) sm_strlcpy(hbuf, "IDENT:", sizeof(hbuf)); 3870 (void) sm_strlcpy(hbuf, RealHostName, sizeof(hbuf)); 3931 p = &hbuf[strlen(hbuf)]; 3932 l = sizeof(hbuf) - (hbuf - p) - 6; 3980 p = &hbuf[strlen(hbuf)]; 3986 p = &hbuf[strlen(hbuf)]; 4016 return hbuf; 4155 (void) sm_strlcpy(hbuf, name, sizeof(hbuf)); [all …]
|
| H A D | headers.c | 201 char hbuf[50]; local 203 (void) expand(fvalue, hbuf, sizeof(hbuf), e); 204 for (p = hbuf; SM_ISSPACE(*p); ) 1121 char hbuf[MAXNAME + 1]; local 1135 name = hbuf; 1136 (void) sm_snprintf(hbuf, sizeof(hbuf), "%.80s", RealHostName); 1139 p = &hbuf[strlen(hbuf)]; 1140 (void) sm_snprintf(p, SPACELEFT(hbuf, p),
|
| H A D | parseaddr.c | 1982 char hbuf[MAXNAME + 1]; local 1995 hbuf[0] = '\0'; 2050 cataddr(hostp, tv - 1, hbuf, sizeof(hbuf), '\0', false); 2067 if (strchr(hbuf, '.') != NULL) 2070 hbuf); 2071 setstat(dsntoexitstat(hbuf)); 2073 else if (isascii(hbuf[0]) && isdigit(hbuf[0])) 2075 setstat(atoi(hbuf)); 2080 if (sm_strcasecmp(ep->ec_name, hbuf) == 0) 2109 else if (isenhsc(hbuf, '\0') > 0) [all …]
|
| /freebsd-13.1/lib/libc/net/ |
| H A D | rcmdsh.c | 71 static char hbuf[NI_MAXHOST]; in rcmdsh() local 98 strncpy(hbuf, res->ai_canonname, sizeof(hbuf) - 1); in rcmdsh() 99 hbuf[sizeof(hbuf) - 1] = '\0'; in rcmdsh() 100 *ahost = hbuf; in rcmdsh()
|
| /freebsd-13.1/usr.sbin/traceroute6/ |
| H A D | traceroute6.c | 652 strlcpy(hbuf, "?", sizeof(hbuf)); in main() 905 strlcpy(hbuf, "(invalid)", sizeof(hbuf)); in main() 1326 hbuf, sizeof(hbuf), NULL, 0, NI_NUMERICHOST) != 0) in packet_ok() 1327 strlcpy(hbuf, "invalid", sizeof(hbuf)); in packet_ok() 1329 hbuf); in packet_ok() 1339 hbuf, sizeof(hbuf), NULL, 0, NI_NUMERICHOST) != 0) in packet_ok() 1340 strlcpy(hbuf, "invalid", sizeof(hbuf)); in packet_ok() 1563 hbuf, sizeof(hbuf), NULL, 0, NI_NUMERICHOST) != 0) in print() 1564 strlcpy(hbuf, "invalid", sizeof(hbuf)); in print() 1578 hbuf, sizeof(hbuf)) : "?"); in print() [all …]
|
| /freebsd-13.1/usr.bin/pr/ |
| H A D | pr.c | 190 char *hbuf; in onecol() local 218 ohbuf = hbuf + offst; in onecol() 314 free(hbuf); in onecol() 318 free(hbuf); in onecol() 350 char *hbuf = NULL; in vertcol() local 649 free(hbuf); in vertcol() 670 char *hbuf; in horzcol() local 794 free(hbuf); in horzcol() 798 free(hbuf); in horzcol() 823 char *hbuf = NULL; in mulfile() local [all …]
|
| /freebsd-13.1/sys/opencrypto/ |
| H A D | gmac.c | 52 uint8_t hbuf[GMAC_BLOCK_LEN]; in AES_GMAC_Setkey() local 57 rijndaelEncrypt(agc->keysched, agc->rounds, zeros, hbuf); in AES_GMAC_Setkey() 59 h = gf128_read(hbuf); in AES_GMAC_Setkey() 63 explicit_bzero(hbuf, sizeof hbuf); in AES_GMAC_Setkey()
|
| /freebsd-13.1/usr.sbin/ctld/ |
| H A D | discovery.c | 172 char hbuf[NI_MAXHOST], sbuf[NI_MAXSERV]; in discovery_add_target() local 183 hbuf, sizeof(hbuf), sbuf, sizeof(sbuf), in discovery_add_target() 191 if (strcmp(hbuf, "0.0.0.0") == 0) in discovery_add_target() 193 ret = asprintf(&buf, "%s:%s,%d", hbuf, sbuf, in discovery_add_target() 197 if (strcmp(hbuf, "::") == 0) in discovery_add_target() 199 ret = asprintf(&buf, "[%s]:%s,%d", hbuf, sbuf, in discovery_add_target()
|
| /freebsd-13.1/usr.bin/logger/ |
| H A D | logger.c | 107 *hostname, hbuf[MAXHOSTNAMELEN], *pristr; in main() local 207 hostname = hbuf; in main() 208 (void )gethostname(hbuf, MAXHOSTNAMELEN); in main() 256 char *p, *p0, *hs, *hbuf, *sbuf; in socksetup() local 258 hbuf = sbuf = NULL; in socksetup() 281 hbuf = (p == hs && *p == ':') ? NULL : p; in socksetup() 293 error = getaddrinfo(hbuf, sbuf, &hints, &res0); in socksetup()
|
| /freebsd-13.1/lib/libc/tests/resolv/ |
| H A D | resolv_test.c | 103 char portstr[6], hbuf[NI_MAXHOST], pbuf[NI_MAXSERV]; in resolv_getaddrinfo() local 115 memset(hbuf, 0, sizeof(hbuf)); in resolv_getaddrinfo() 117 getnameinfo(res->ai_addr, res->ai_addrlen, hbuf, sizeof(hbuf), in resolv_getaddrinfo() 119 DBG("T%ld: reverse %s %s\n", threadnum, hbuf, pbuf); in resolv_getaddrinfo()
|
| /freebsd-13.1/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-13.1/contrib/mandoc/ |
| H A D | tbl_html.c | 121 char hbuf[4], vbuf[4]; in print_tbl() local 191 (void)snprintf(hbuf, sizeof(hbuf), in print_tbl() 193 hspans = hbuf; in print_tbl()
|
| /freebsd-13.1/lib/libfetch/ |
| H A D | http.c | 545 if ((hbuf->buf = realloc(hbuf->buf, conn->buflen + 1)) == NULL) in http_next_header() 547 hbuf->bufsize = conn->buflen + 1; in http_next_header() 549 strcpy(hbuf->buf, conn->buf); in http_next_header() 550 hbuf->buflen = conn->buflen; in http_next_header() 572 if (hbuf->bufsize < len + 1) { in http_next_header() 574 if ((hbuf->buf = realloc(hbuf->buf, len + 1)) == NULL) in http_next_header() 576 hbuf->bufsize = len + 1; in http_next_header() 578 strcpy(hbuf->buf + hbuf->buflen, conn->buf); in http_next_header() 579 hbuf->buflen += conn->buflen; in http_next_header() 1658 snprintf(hbuf, sizeof(hbuf), "%s:%d", host, url->port); in http_request_body() [all …]
|
| /freebsd-13.1/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-13.1/lib/libsecureboot/ |
| H A D | verify_file.c | 523 unsigned char hbuf[br_sha256_SIZE]; in verify_pcr_export() local 528 hlen = ve_pcr_get(hbuf, sizeof(hbuf)); in verify_pcr_export() 530 hex = hexdigest(hexbuf, sizeof(hexbuf), hbuf, hlen); in verify_pcr_export()
|
| /freebsd-13.1/usr.sbin/config/ |
| H A D | mkoptions.c | 295 static char hbuf[MAXPATHLEN]; in tooption() local 309 (void)strlcpy(hbuf, path(nbuf), sizeof(hbuf)); in tooption() 310 return (hbuf); in tooption()
|
| /freebsd-13.1/lib/libc/resolv/ |
| H A D | res_send.c | 1103 char hbuf[NI_MAXHOST]; in Aerror() local 1107 if (getnameinfo(address, alen, hbuf, sizeof(hbuf), in Aerror() 1109 strncpy(hbuf, "?", sizeof(hbuf) - 1); in Aerror() 1110 hbuf[sizeof(hbuf) - 1] = '\0'; in Aerror() 1115 string, hbuf, sbuf, strerror(error)); in Aerror()
|
| /freebsd-13.1/contrib/bearssl/inc/ |
| H A D | bearssl_x509.h | 673 const unsigned char *hbuf; member 961 const unsigned char *hbuf; member 1133 const unsigned char *hbuf; member
|
| /freebsd-13.1/usr.sbin/ndp/ |
| H A D | ndp.c | 790 static char hbuf[NI_MAXHOST]; in ether_str() local 793 strlcpy(hbuf, ether_ntoa((struct ether_addr *)LLADDR(sdl)), in ether_str() 794 sizeof(hbuf)); in ether_str() 797 snprintf(hbuf, sizeof(hbuf), "%s", link_ntoa(sdl) + n); in ether_str() 799 snprintf(hbuf, sizeof(hbuf), "(incomplete)"); in ether_str() 801 return(hbuf); in ether_str()
|
| /freebsd-13.1/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-13.1/contrib/apr/network_io/unix/ |
| H A D | sendrecv.c | 820 void * hbuf=NULL, * tbuf=NULL; in apr_socket_sendfile() local 852 hbuf = malloc(parms.header_length); in apr_socket_sendfile() 857 hbuf = apr_palloc(sock->pool, parms.header_length); in apr_socket_sendfile() 861 memcpy((char *)hbuf + ptr, hdtr->headers[i].iov_base, in apr_socket_sendfile() 865 parms.header_data = hbuf; in apr_socket_sendfile() 938 if(hbuf) free(hbuf); in apr_socket_sendfile()
|
| /freebsd-13.1/libexec/tftpd/ |
| H A D | tftpd.c | 351 char hbuf[NI_MAXHOST]; in main() local 357 hbuf, sizeof(hbuf), NULL, 0, in main() 359 asprintf(&tempchroot, "%s/%s", chroot_dir, hbuf); in main()
|