Searched refs:hostname (Results 1 - 25 of 429) sorted by relevance

1234567891011>>

/freebsd-current/tools/tools/nanobsd/pcengines/Files/etc/
H A Drc.conf4 hostname="alix"
/freebsd-current/contrib/libevent/sample/
H A Dhostcheck.h27 int Curl_cert_hostcheck(const char *match_pattern, const char *hostname);
H A Dhostcheck.c155 * Match a hostname against a wildcard pattern.
163 static int hostmatch(const char *hostname, const char *pattern) argument
170 return Curl_raw_equal(pattern, hostname) ?
183 return Curl_raw_equal(pattern, hostname) ?
186 hostname_label_end = strchr(hostname, '.');
192 label of the hostname is at least as large as the left-most label
194 if(hostname_label_end - hostname < pattern_label_end - pattern)
199 return Curl_raw_nequal(pattern, hostname, prefixlen) &&
205 int Curl_cert_hostcheck(const char *match_pattern, const char *hostname) argument
208 !hostname || !*hostnam
[all...]
H A Dopenssl_hostname_validation.h26 * Helper functions to perform basic hostname validation using OpenSSL.
46 * Validates the server's identity by looking for the expected hostname in the
56 HostnameValidationResult validate_hostname(const char *hostname, const X509 *server_cert);
H A Dopenssl_hostname_validation.c26 * Helper functions to perform basic hostname validation using OpenSSL.
57 * Tries to find a match for hostname in the certificate's Common Name field.
64 static HostnameValidationResult matches_common_name(const char *hostname, const X509 *server_cert) { argument
94 // Compare expected hostname with the CN
95 if (Curl_cert_hostcheck(common_name_str, hostname) == CURL_HOST_MATCH) {
105 * Tries to find a match for hostname in the certificate's Subject Alternative Name extension.
112 static HostnameValidationResult matches_subject_alternative_name(const char *hostname, const X509 *server_cert) { argument
138 else { // Compare expected hostname with the DNS name
139 if (Curl_cert_hostcheck(dns_name, hostname)
154 * Validates the server's identity by looking for the expected hostname i
164 validate_hostname(const char *hostname, const X509 *server_cert) argument
[all...]
/freebsd-current/contrib/ntp/sntp/
H A Dkod_management.h7 char hostname[255]; member in struct:kod_entry
12 int search_entry(const char *hostname, struct kod_entry **dst);
13 void add_entry(const char *hostname, const char *type);
14 void delete_entry(const char *hostname, const char *type);
/freebsd-current/contrib/ntp/sntp/libevent/sample/
H A Dhostcheck.h27 int Curl_cert_hostcheck(const char *match_pattern, const char *hostname);
H A Dhostcheck.c155 * Match a hostname against a wildcard pattern.
163 static int hostmatch(const char *hostname, const char *pattern) argument
170 return Curl_raw_equal(pattern, hostname) ?
183 return Curl_raw_equal(pattern, hostname) ?
186 hostname_label_end = strchr(hostname, '.');
192 label of the hostname is at least as large as the left-most label
194 if(hostname_label_end - hostname < pattern_label_end - pattern)
199 return Curl_raw_nequal(pattern, hostname, prefixlen) &&
205 int Curl_cert_hostcheck(const char *match_pattern, const char *hostname) argument
208 !hostname || !*hostnam
[all...]
H A Dopenssl_hostname_validation.h26 * Helper functions to perform basic hostname validation using OpenSSL.
46 * Validates the server's identity by looking for the expected hostname in the
56 HostnameValidationResult validate_hostname(const char *hostname, const X509 *server_cert);
H A Dopenssl_hostname_validation.c26 * Helper functions to perform basic hostname validation using OpenSSL.
57 * Tries to find a match for hostname in the certificate's Common Name field.
64 static HostnameValidationResult matches_common_name(const char *hostname, const X509 *server_cert) { argument
94 // Compare expected hostname with the CN
95 if (Curl_cert_hostcheck(common_name_str, hostname) == CURL_HOST_MATCH) {
105 * Tries to find a match for hostname in the certificate's Subject Alternative Name extension.
112 static HostnameValidationResult matches_subject_alternative_name(const char *hostname, const X509 *server_cert) { argument
138 else { // Compare expected hostname with the DNS name
139 if (Curl_cert_hostcheck(dns_name, hostname)
154 * Validates the server's identity by looking for the expected hostname i
164 validate_hostname(const char *hostname, const X509 *server_cert) argument
[all...]
/freebsd-current/libexec/bootpd/
H A Dlookup.h5 extern u_char *lookup_hwa(char *hostname, int htype);
6 extern int lookup_ipa(char *hostname, u_int32 *addr);
/freebsd-current/usr.sbin/bhyve/
H A Drfb.h34 int rfb_init(const char *hostname, int port, int wait,
/freebsd-current/libexec/rc/rc.d/
H A Dhostname28 # PROVIDE: hostname
35 name="hostname"
36 desc="Set the system\'s hostname"
51 # hostname, see if we can get one from kenv.
53 if [ -z "${hostname}" -a \
55 hostname=`/bin/kenv dhcp.host-name`
59 # Have we got a hostname yet?
61 if [ -z "${hostname}" ]; then
62 # Null hostname is probably OK if DHCP is in use,
63 # or when hostname i
[all...]
/freebsd-current/crypto/heimdal/appl/login/
H A Dutmp_login.c38 /* try to put something useful from hostname into dst, dst_sz:
42 shrink_hostname (const char *hostname, argument
50 if (strlen(hostname) < dst_sz) {
51 strlcpy (dst, hostname, dst_sz);
55 hd = strchr (hostname, '.');
58 && hd - hostname < dst_sz) {
59 strlcpy (dst, hostname, dst_sz);
60 dst[hd - hostname] = '\0';
64 ret = getaddrinfo (hostname, NULL, NULL, &ai);
66 strncpy (dst, hostname, dst_s
85 prepare_utmp(struct utmp *utmp, char *tty, const char *username, const char *hostname) argument
127 utmp_login(char *tty, const char *username, const char *hostname) argument
133 utmp_login(char *tty, const char *username, const char *hostname) argument
[all...]
/freebsd-current/bin/hostname/
H A Dhostname.c46 char hostname[MAXHOSTNAMELEN], *hostp, *p; local
54 * On Linux, "hostname -f" prints FQDN.
55 * BSD "hostname" always prints FQDN by
79 hostp = hostname;
80 if (gethostname(hostname, (int)sizeof(hostname)))
83 p = strchr(hostname, '.');
87 p = strchr(hostname, '.');
100 (void)fprintf(stderr, "usage: hostname [-f] [-s | -d] [name-of-host]\n");
H A DMakefile4 PROG= hostname
/freebsd-current/tools/build/cross-build/
H A DMakefile3 SCRIPTS= date.sh hostname.sh
/freebsd-current/share/examples/jails/
H A Djail.xxx.conf3 host.hostname = "xxx.yyy"; # hostname
32 #allow.set_hostname = 1; # Allow hostname to change
/freebsd-current/sys/contrib/openzfs/contrib/initramfs/hooks/
H A Dzfs.in52 if [ -f "/etc/hostname" ]; then
53 copy_file config "/etc/hostname"
55 hostname="$(mktemp -t hostname.XXXXXXXXXX)"
56 hostname > "$hostname"
57 copy_file config "$hostname" "/etc/hostname"
58 rm -f "$hostname"
/freebsd-current/contrib/llvm-project/lldb/include/lldb/Utility/
H A DUriParser.h23 llvm::StringRef hostname; member in struct:lldb_private::URI
28 return port == R.port && scheme == R.scheme && hostname == R.hostname &&
/freebsd-current/crypto/heimdal/lib/krb5/
H A Dsock_principal.c47 char hostname[NI_MAXHOST]; local
54 ret = getnameinfo (sa, salen, hostname, sizeof(hostname), NULL, 0, 0);
63 hostname,
/freebsd-current/usr.sbin/clear_locks/
H A Dclear_locks.c42 char *hostname; local
46 fprintf(stderr, "Usage: clear_locks <hostname>\n");
49 hostname = argv[1];
56 notify.name = hostname;
66 fprintf(stderr, "clear_locks: cleared locks for hostname %s\n",
67 hostname);
/freebsd-current/sbin/ipf/libipf/
H A Dprintfraginfo.c27 PRINTF(" %s -> ", hostname(family, &ifr->ipfr_src));
29 hostname(family, &ifr->ipfr_dst), ifr->ipfr_id,
/freebsd-current/contrib/openpam/lib/libpam/
H A Dpam_start.c68 char hostname[HOST_NAME_MAX + 1]; local
77 if (gethostname(hostname, sizeof hostname) != 0)
78 strlcpy(hostname, "localhost", sizeof hostname);
79 if ((r = pam_set_item(ph, PAM_HOST, hostname)) != PAM_SUCCESS)
/freebsd-current/tools/test/stress2/testcases/udp/
H A Dudp.c61 const char *hostname; local
75 hostname = "localhost";
77 hostname = getenv("BLASTHOST");
78 host = gethostbyname(hostname);
84 sock_in.sin_addr.s_addr = inet_addr(hostname);
86 err(1, "host: %s", hostname);
98 printf("udp %s:9 with %d bytes\n", hostname, bufsize);

Completed in 239 milliseconds

1234567891011>>