Home
last modified time | relevance | path

Searched refs:hbuf (Results 1 – 25 of 47) sorted by relevance

12

/freebsd-12.1/contrib/sendmail/src/
H A Dsasl.c249 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 Ddaemon.c3436 (void) sm_strlcpyn(hbuf, sizeof(hbuf), 2, RealUserName,
3440 return hbuf;
3706 (void) sm_strlcpy(hbuf, "IDENT:", sizeof(hbuf));
3745 (void) sm_strlcpy(hbuf, RealHostName, sizeof(hbuf));
3806 p = &hbuf[strlen(hbuf)];
3807 l = sizeof(hbuf) - (hbuf - p) - 6;
3855 p = &hbuf[strlen(hbuf)];
3861 p = &hbuf[strlen(hbuf)];
3891 return hbuf;
4026 (void) sm_strlcpy(hbuf, name, sizeof(hbuf));
[all …]
H A Dheaders.c201 char hbuf[50]; local
203 (void) expand(fvalue, hbuf, sizeof(hbuf), e);
204 for (p = hbuf; isascii(*p) && isspace(*p); )
1121 char hbuf[MAXNAME + 1]; local
1152 name = hbuf;
1153 (void) sm_snprintf(hbuf, sizeof(hbuf), "%.80s", RealHostName);
1156 p = &hbuf[strlen(hbuf)];
1157 (void) sm_snprintf(p, SPACELEFT(hbuf, p),
H A Dparseaddr.c1967 char hbuf[MAXNAME + 1]; local
1980 hbuf[0] = '\0';
2035 cataddr(hostp, tv - 1, hbuf, sizeof(hbuf), '\0', false);
2052 if (strchr(hbuf, '.') != NULL)
2055 hbuf);
2056 setstat(dsntoexitstat(hbuf));
2058 else if (isascii(hbuf[0]) && isdigit(hbuf[0]))
2060 setstat(atoi(hbuf));
2065 if (sm_strcasecmp(ep->ec_name, hbuf) == 0)
2094 else if (isenhsc(hbuf, '\0') > 0)
[all …]
/freebsd-12.1/usr.sbin/traceroute6/
H A Dtraceroute6.c627 strlcpy(hbuf, "?", sizeof(hbuf)); in main()
889 strlcpy(hbuf, "(invalid)", sizeof(hbuf)); in main()
1279 hbuf, sizeof(hbuf), NULL, 0, NI_NUMERICHOST) != 0) in packet_ok()
1280 strlcpy(hbuf, "invalid", sizeof(hbuf)); in packet_ok()
1282 hbuf); in packet_ok()
1292 hbuf, sizeof(hbuf), NULL, 0, NI_NUMERICHOST) != 0) in packet_ok()
1293 strlcpy(hbuf, "invalid", sizeof(hbuf)); in packet_ok()
1493 hbuf, sizeof(hbuf), NULL, 0, NI_NUMERICHOST) != 0) in print()
1494 strlcpy(hbuf, "invalid", sizeof(hbuf)); in print()
1508 hbuf, sizeof(hbuf)) : "?"); in print()
[all …]
/freebsd-12.1/lib/libc/net/
H A Drcmdsh.c71 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-12.1/usr.bin/pr/
H A Dpr.c190 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-12.1/sys/opencrypto/
H A Dgmac.c50 uint8_t hbuf[GMAC_BLOCK_LEN]; in AES_GMAC_Setkey() local
54 rijndaelEncrypt(agc->keysched, agc->rounds, zeros, hbuf); in AES_GMAC_Setkey()
56 h = gf128_read(hbuf); in AES_GMAC_Setkey()
60 explicit_bzero(hbuf, sizeof hbuf); in AES_GMAC_Setkey()
/freebsd-12.1/usr.sbin/ctld/
H A Ddiscovery.c173 char hbuf[NI_MAXHOST], sbuf[NI_MAXSERV]; in discovery_add_target() local
184 hbuf, sizeof(hbuf), sbuf, sizeof(sbuf), in discovery_add_target()
192 if (strcmp(hbuf, "0.0.0.0") == 0) in discovery_add_target()
194 ret = asprintf(&buf, "%s:%s,%d", hbuf, sbuf, in discovery_add_target()
198 if (strcmp(hbuf, "::") == 0) in discovery_add_target()
200 ret = asprintf(&buf, "[%s]:%s,%d", hbuf, sbuf, in discovery_add_target()
/freebsd-12.1/usr.bin/logger/
H A Dlogger.c100 *hostname, hbuf[MAXHOSTNAMELEN]; in main() local
184 hostname = hbuf; in main()
185 (void )gethostname(hbuf, MAXHOSTNAMELEN); in main()
233 char *p, *p0, *hs, *hbuf, *sbuf; in socksetup() local
235 hbuf = sbuf = NULL; in socksetup()
258 hbuf = (p == hs && *p == ':') ? NULL : p; in socksetup()
270 error = getaddrinfo(hbuf, sbuf, &hints, &res0); in socksetup()
/freebsd-12.1/lib/libc/tests/resolv/
H A Dresolv_test.c96 char portstr[6], buf[1024], hbuf[NI_MAXHOST], pbuf[NI_MAXSERV]; in resolv_getaddrinfo() local
110 memset(hbuf, 0, sizeof(hbuf)); in resolv_getaddrinfo()
112 getnameinfo(res->ai_addr, res->ai_addrlen, hbuf, sizeof(hbuf), in resolv_getaddrinfo()
115 "%p: reverse %s %s\n", self, hbuf, pbuf); in resolv_getaddrinfo()
/freebsd-12.1/contrib/mandoc/
H A Dtbl_html.c121 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-12.1/contrib/sendmail/libmilter/
H A Dexample.c52 char hbuf[1024]; local
74 snprintf(hbuf, sizeof hbuf, "%s@%s", p, host);
75 smfi_addheader(ctx, "X-Archived", hbuf);
/freebsd-12.1/lib/libfetch/
H A Dhttp.c544 if ((hbuf->buf = realloc(hbuf->buf, conn->buflen + 1)) == NULL) in http_next_header()
546 hbuf->bufsize = conn->buflen + 1; in http_next_header()
548 strcpy(hbuf->buf, conn->buf); in http_next_header()
549 hbuf->buflen = conn->buflen; in http_next_header()
571 if (hbuf->bufsize < len + 1) { in http_next_header()
573 if ((hbuf->buf = realloc(hbuf->buf, len + 1)) == NULL) in http_next_header()
575 hbuf->bufsize = len + 1; in http_next_header()
577 strcpy(hbuf->buf + hbuf->buflen, conn->buf); in http_next_header()
578 hbuf->buflen += conn->buflen; in http_next_header()
1612 snprintf(hbuf, sizeof(hbuf), "%s:%d", host, url->port); in http_request_body()
[all …]
/freebsd-12.1/lib/libsecureboot/
H A Dverify_file.c441 unsigned char hbuf[br_sha256_SIZE]; in verify_pcr_export() local
445 hlen = ve_pcr_get(hbuf, sizeof(hbuf)); in verify_pcr_export()
447 hex = hexdigest(hexbuf, sizeof(hexbuf), hbuf, hlen); in verify_pcr_export()
/freebsd-12.1/contrib/bearssl/src/x509/
H A Dx509_decoder.c106 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 Dx509_decoder.t039 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 Dskey_decoder.c97 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-12.1/usr.sbin/config/
H A Dmkoptions.c295 static char hbuf[MAXPATHLEN]; in tooption() local
309 (void)strlcpy(hbuf, path(nbuf), sizeof(hbuf)); in tooption()
310 return (hbuf); in tooption()
/freebsd-12.1/lib/libc/resolv/
H A Dres_send.c1103 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-12.1/contrib/bearssl/inc/
H A Dbearssl_x509.h673 const unsigned char *hbuf; member
961 const unsigned char *hbuf; member
1133 const unsigned char *hbuf; member
/freebsd-12.1/usr.bin/netstat/
H A Dinet6.c1314 char hbuf[NI_MAXHOST], *cp; in inet6name() local
1338 error = getnameinfo((struct sockaddr *)&sin6, sizeof(sin6), hbuf, in inet6name()
1339 sizeof(hbuf), NULL, 0, flags); in inet6name()
1342 (cp = strchr(hbuf, '.')) && in inet6name()
1345 strlcpy(line, hbuf, sizeof(line)); in inet6name()
/freebsd-12.1/sys/cddl/contrib/opensolaris/uts/common/zmod/
H A Dinflate.c394 hbuf[0] = (unsigned char)(word); \
395 hbuf[1] = (unsigned char)((word) >> 8); \
396 check = crc32(check, hbuf, 2); \
401 hbuf[0] = (unsigned char)(word); \
402 hbuf[1] = (unsigned char)((word) >> 8); \
403 hbuf[2] = (unsigned char)((word) >> 16); \
404 hbuf[3] = (unsigned char)((word) >> 24); \
405 check = crc32(check, hbuf, 4); \
579 unsigned char hbuf[4]; /* buffer for gzip header crc calculation */ local
/freebsd-12.1/usr.sbin/ndp/
H A Dndp.c790 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-12.1/contrib/apr/network_io/unix/
H A Dsendrecv.c820 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()

12