/bionic/tests/ |
unistd_test.cpp | 485 char hostname[HOST_NAME_MAX + 1]; local 486 memset(hostname, 0, sizeof(hostname)); 488 // Can we get the hostname with a big buffer? 489 ASSERT_EQ(0, gethostname(hostname, HOST_NAME_MAX)); 491 // Can we get the hostname with a right-sized buffer? 493 ASSERT_EQ(0, gethostname(hostname, strlen(hostname) + 1)); 498 ASSERT_EQ(0, strncmp(hostname, buf.nodename, SYS_NMLN)); 499 ASSERT_GT(strlen(hostname), 0U) [all...] |
/external/libxml2/ |
nanoftp.c | 124 char *hostname; /* the host name */ member in struct:xmlNanoFTPCtxt 184 * and get the hostname 312 if (ctxt->hostname != NULL) { 313 xmlFree(ctxt->hostname); 314 ctxt->hostname = NULL; 332 ctxt->hostname = xmlMemStrdup(uri->server); 362 * protocol, hostname, port or other information, the 380 if (ctxt->hostname == NULL) 392 (strcmp(ctxt->hostname, uri->server)) || 511 if (ctxt->hostname != NULL) xmlFree(ctxt->hostname) [all...] |
/frameworks/base/core/java/android/net/ |
SSLCertificateSocketFactory.java | 48 * <li>Hostname verification in most cases (see WARNINGs below) 60 * This implementation does check the server's certificate hostname, but only 61 * for createSocket variants that specify a hostname. When using methods that 67 * {@link HostnameVerifier} to verify the certificate hostname. 70 * SSL certificate and hostname checks for testing purposes. This setting 173 * Verify the hostname of the certificate used by the other end of a 174 * connected socket. You MUST call this if you did not supply a hostname 176 * redundantly if the hostname has already been verified. 178 * <p>Wildcard certificates are allowed to verify any matching hostname, 183 * @param hostname The expected hostname of the remote serve [all...] |
/external/fio/ |
client.h | 37 char *hostname; member in struct:fio_client
|
/external/mdnsresponder/mDNSShared/ |
dns_sd.h | 347 * wire. If "hostname" is a wide-area unicast DNS hostname (i.e. not a ".local." name) 349 * for "hostname", since any addresses it found would be unlikely to be of any use anyway. Similarly, 351 * "hostname". [all...] |
/external/openssh/ |
readconf.h | 78 char *hostname; /* Real host to connect. */ member in struct:__anon17325 79 char *host_key_alias; /* hostname alias for .ssh/known_hosts */ 175 #define SSHCONF_POSTCANON 4 /* After hostname canonicalisation */
|
sshconnect.c | 740 * Prepare the hostname and ip address strings that are used to lookup 744 get_hostfile_hostname_ipaddr(char *hostname, struct sockaddr *hostaddr, 792 *hostfile_hostname = put_host_port(hostname, port); 805 check_host_key(char *hostname, struct sockaddr *hostaddr, u_short port, 841 * Prepare the hostname and address strings used for hostkey lookup. 844 get_hostfile_hostname_ipaddr(hostname, hostaddr, port, &host, &ip); 848 * command or if we don't have a hostname to compare with 851 strcmp(hostname, ip) == 0 || options.proxy_command != NULL)) 883 * localhost, looking for a certificate, or the hostname was an ip 904 if (want_cert && !check_host_cert(hostname, host_key) [all...] |
/external/dhcpcd/ |
if-options.c | 66 {"hostname", optional_argument, NULL, 'h'}, 362 s = parse_string(ifo->hostname, 365 syslog(LOG_ERR, "hostname: %m"); 368 if (s != 0 && ifo->hostname[0] == '.') { 370 "hostname cannot begin with ."); 373 ifo->hostname[s] = '\0'; 375 if (ifo->hostname[0] == '\0') 810 gethostname(ifo->hostname, HOSTNAME_MAX_LEN); 811 /* Ensure that the hostname is NULL terminated */ 812 ifo->hostname[HOSTNAME_MAX_LEN] = '\0' [all...] |
dhcp.c | 1044 /* Regardless of RFC2132, we should always send a hostname 1045 * upto the first dot (the short hostname) as otherwise 1048 if (ifo->options & DHCPCD_HOSTNAME && ifo->hostname[0]) { 1050 hp = strchr(ifo->hostname, '.'); 1052 len = hp - ifo->hostname; 1054 len = strlen(ifo->hostname); 1056 memcpy(p, ifo->hostname, len); 1059 if (ifo->fqdn != FQDN_DISABLE && ifo->hostname[0]) { 1077 ul = encode_rfc1035(ifo->hostname, p); [all...] |
/external/mdnsresponder/mDNSPosix/ |
nss_mdns.c | 496 char hostname [k_hostname_maxlen + 1]; member in struct:buf_header 832 Lookup a fully qualified hostname using the default record type 837 Fully qualified hostname. If not fully qualified the code will 1216 // Data should be a hostname 1418 Add fully qualified hostname to result. 1424 Fully qualified hostname 1427 Pointer to start of hostname buffer, 1428 or NULL on error (usually hostname too long) 1438 "mdns: Hostname too long '%.*s': len %d, max %d", 1448 strcpy (result->header->hostname, fullname) 1476 char * hostname = result->hostent->h_name; local [all...] |
NetMonitor.c | 177 domainname hostname; member in struct:__anon15987 231 entry->hostname.c[0] = 0; 266 if (!entry->hostname.c[0]) 272 AssignDomainName(&entry->hostname, pktrr->name); 279 AssignDomainName(&entry->hostname, &pktrr->rdata->u.name); 290 AssignDomainName(&entry->hostname, pktrr->name); 335 if (!entry->hostname.c[0]) 346 SendUnicastQuery(m, entry, &entry->hostname, kDNSType_HINFO, InterfaceID); 347 //mprintf("%##s HINFO %d\n", entry->hostname.c, entry->NumQueries); 375 if (e->hostname.c[0] || e->HIHardware.c[0] || e->HISoftware.c[0] [all...] |
/cts/tests/tests/net/src/android/net/cts/ |
DnsTest.java | 223 String hostname = addr.getHostName(); local 230 String hostname = addr.getHostName(); local
|
/external/chromium-libpac/src/ |
proxy_resolver_v8.cc | 207 // Extracts an hostname argument from |args|. On success returns true 208 // and fills |*hostname| with the result. 209 bool GetHostnameArgument(const v8::FunctionCallbackInfo<v8::Value>& args, std::string* hostname) { 216 // If the hostname is already in ASCII, simply return it as is. 218 *hostname = UTF16ToASCII(hostname_utf16); 614 std::string hostname; local 615 if (!GetHostnameArgument(args, &hostname)) { 624 success = context->js_bindings_->DnsResolve(hostname, &ip_address); 641 std::string hostname; local 642 if (!GetHostnameArgument(args, &hostname)) { [all...] |
/external/openssh/openbsd-compat/ |
getrrsetbyname-ldns.c | 63 getrrsetbyname(const char *hostname, unsigned int rdclass, 98 domain = ldns_dname_new_frm_str(hostname);
|
/external/skia/experimental/Networking/ |
SkSockets.cpp | 312 SkTCPClient::SkTCPClient(const char* hostname, int port) { 316 hostent* server = gethostbyname(hostname);
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/javax/net/ssl/ |
HttpsURLConnectionTest.java | 96 assertNotNull("Default hostname verifyer is null", verifyer); 117 assertNotNull("Hostname verifyer is null", verifyer); 118 assertEquals("Incorrect value of hostname verirfyer", 335 public boolean verify(String hostname, SSLSession session) { 336 if (hostname == session.getPeerHost()) {
|
/system/core/adb/ |
adb_client.cpp | 78 void adb_set_tcp_name(const char* hostname) 80 __adb_server_name = hostname;
|
/external/iputils/ |
clockdiff.c | 555 char hostname[MAX_HOSTNAMELEN]; local 601 (void)gethostname(hostname,sizeof(hostname)); 602 hp = gethostbyname(hostname); 604 fprintf(stderr, "clockdiff: %s: my host not found\n", hostname);
|
/external/blktrace/ |
blktrace.c | 205 char *hostname; member in struct:cl_host 320 static char hostname[MAXHOSTNAMELEN]; variable 949 if (inet_aton(hostname, &addr->sin_addr) != 1) { 952 hent = gethostbyname(hostname); 960 hostname); 966 hostname); 972 strcpy(hostname, hent->h_name); 994 hostname); 1479 len += sprintf(dst + len, "%s-", nc->ch->hostname); [all...] |
/external/lldb/source/Host/common/ |
Host.cpp | 1164 char hostname[PATH_MAX]; local [all...] |
/hardware/qcom/gps/msm8960/loc_api/libloc_api_50001/ |
loc.cpp | 92 static int loc_agps_set_server(AGpsType type, const char *hostname, int port); 738 static int loc_agps_set_server(AGpsType type, const char* hostname, int port) 752 int ret_val = loc_eng_set_server_proxy(loc_afw_data, serverType, hostname, port);
|
/packages/apps/Email/src/com/android/email/activity/setup/ |
AccountSetupOutgoingFragment.java | 253 final String hostname = sendAuth.mAddress; local 254 if (hostname != null) { 255 mServerView.setText(hostname);
|
/external/conscrypt/src/main/java/org/conscrypt/ |
SSLParametersImpl.java | 372 OpenSSLSessionImpl getSessionToReuse(long sslNativePointer, String hostname, int port) 377 sessionToReuse = getCachedClientSession(clientSessionContext, hostname, port); 588 final OpenSSLSessionImpl sessionToReuse, String hostname, int port, 607 peerCertificates, hostname, port, getSessionContext()); 706 OpenSSLSessionImpl getCachedClientSession(ClientSessionContext sessionContext, String hostName, 708 if (hostName == null) { 711 OpenSSLSessionImpl session = (OpenSSLSessionImpl) sessionContext.getSession(hostName, port); [all...] |
/external/conscrypt/src/stub/java/com/android/org/conscrypt/ |
OpenSSLSocketImpl.java | 164 public void setHostname(String hostname) {
|
/external/conscrypt/src/stub/java/org/apache/harmony/xnet/xnet/provider/jsse/ |
OpenSSLSocketImpl.java | 164 public void setHostname(String hostname) {
|