/openssl-master/test/ |
A D | servername_test.c | 103 char *hostname = NULL; in client_setup_sni_before_state() local 135 if (!TEST_true(get_sni_from_client_hello(wbio, &hostname))) in client_setup_sni_before_state() 138 if (!TEST_str_eq(hostname, host)) in client_setup_sni_before_state() 143 OPENSSL_free(hostname); in client_setup_sni_before_state() 155 char *hostname = NULL; in client_setup_sni_after_state() local 188 if (!TEST_true(get_sni_from_client_hello(wbio, &hostname))) in client_setup_sni_after_state() 191 if (!TEST_str_eq(hostname, host)) in client_setup_sni_after_state() 196 OPENSSL_free(hostname); in client_setup_sni_after_state()
|
/openssl-master/apps/lib/ |
A D | s_socket.c | 191 char *hostname = NULL; in init_client() local 193 hostname = BIO_ADDR_hostname_string(BIO_ADDRINFO_address(ai), 1); in init_client() 194 if (hostname != NULL) { in init_client() 195 BIO_printf(bio_out, "Connecting to %s\n", hostname); in init_client() 196 OPENSSL_free(hostname); in init_client() 218 char *hostname = NULL; in report_server_accept() local 223 && (hostname = BIO_ADDR_hostname_string(info.addr, 1)) != NULL in report_server_accept() 226 strchr(hostname, ':') == NULL in report_server_accept() 229 hostname, service) > 0; in report_server_accept() 234 OPENSSL_free(hostname); in report_server_accept()
|
/openssl-master/demos/bio/ |
A D | sconnect.c | 32 const char *hostname; in main() local 71 hostname = BIO_get_conn_hostname(out); in main() 72 if (!hostname || SSL_set1_host(ssl, hostname) <= 0) in main()
|
/openssl-master/crypto/bio/ |
A D | bio_addr.c | 204 char **hostname, char **service) in addr_strings() argument 245 if (hostname != NULL) in addr_strings() 246 *hostname = OPENSSL_strdup(host); in addr_strings() 251 if (hostname != NULL) in addr_strings() 260 if ((hostname != NULL && *hostname == NULL) in addr_strings() 262 if (hostname != NULL) { in addr_strings() 263 OPENSSL_free(*hostname); in addr_strings() 264 *hostname = NULL; in addr_strings() 279 char *hostname = NULL; in BIO_ADDR_hostname_string() local 281 if (addr_strings(ap, numeric, &hostname, NULL)) in BIO_ADDR_hostname_string() [all …]
|
/openssl-master/doc/man3/ |
A D | SSL_set1_host.pod | 12 int SSL_set1_host(SSL *s, const char *hostname); 13 int SSL_add1_host(SSL *s, const char *hostname); 19 These functions configure server hostname checks in the SSL client. 21 SSL_set1_host() sets the expected DNS hostname to B<name> clearing 22 any previously specified hostname. If B<name> is NULL 26 the peer hostname via L<X509_check_host(3)> with B<flags> as specified 46 SSL_get0_peername() returns the DNS hostname or subject CommonName 77 The calls below will arrange to match either the MX hostname or the
|
A D | BIO_s_connect.pod | 44 and the port and hostname (see below) is set up properly then 58 a single call: that is it creates a new connect BIO with hostname B<name>. 60 BIO_set_conn_hostname() uses the string B<name> to set the hostname. 61 The hostname can be an IP address; if the address is an IPv6 one, it 63 The hostname can also include the port in the form hostname:port; 75 BIO_get_conn_hostname() returns the hostname of the connect BIO or 76 NULL if the BIO is initialized but no hostname is set. 110 If the port name is supplied as part of the hostname then this will 114 character in the passed hostname and either indicating an error or 151 BIO_get_conn_hostname() returns the connected hostname or NULL if
|
A D | SSL_SESSION_get0_hostname.pod | 16 int SSL_SESSION_set1_hostname(SSL_SESSION *s, const char *hostname); 29 SNI hostname is negotiated with each handshake including resumption handshakes 35 SSL_SESSION_set1_hostname() sets the SNI value for the hostname to a copy of 36 the string provided in hostname.
|
A D | OSSL_HTTP_parse_url.pod | 35 OSSL_HTTP_adapt_proxy() takes an optional proxy hostname I<proxy> 40 If this still does not yield a proxy hostname, 45 Return the determined proxy hostname unless the exclusion contains I<server>. 73 otherwise the first path element is interpreted as the hostname. 82 otherwise a constant proxy hostname string,
|
A D | SSL_CTX_get0_param.pod | 30 them to suit its needs: for example to add a hostname check. 42 Check hostname matches "www.foo.com" in peer certificate:
|
A D | BIO_parse_hostserv.pod | 22 create strings with the hostname and service name and give those 25 be interpreted primarily as a hostname or a service name in ambiguous
|
A D | X509_VERIFY_PARAM_set_flags.pod | 136 X509_VERIFY_PARAM_get0_host() returns the B<n>th expected DNS hostname that has 141 X509_VERIFY_PARAM_set1_host() sets the expected DNS hostname to 142 B<name> clearing any previously specified hostname. If 148 When a hostname is specified, 153 calling L<X509_check_host(3)>, hostname checks may be out of scope 180 X509_VERIFY_PARAM_get0_peername() returns the DNS hostname or subject 184 rather than a hostname, the peer name may be a wildcard name or a
|
A D | X509_check_host.pod | 22 certificate matches a given hostname, email address, or IP address. 27 Name (SAN) or Subject CommonName (CN) matches the specified hostname,
|
A D | SSL_CTX_set_session_id_context.pod | 33 to use e.g. the name of the application and/or the hostname and/or service
|
A D | BIO_ADDR.pod | 76 hostname of the given B<BIO_ADDR>. If B<numeric> is 1, the string
|
A D | OSSL_HTTP_REQ_CTX.pod | 184 The server's response may be unexpected if the hostname that was used to
|
/openssl-master/ssl/ |
A D | ssl_sess.c | 182 dest->ext.hostname = NULL; in ssl_session_dup() 237 if (src->ext.hostname) { in ssl_session_dup() 238 dest->ext.hostname = OPENSSL_strdup(src->ext.hostname); in ssl_session_dup() 239 if (dest->ext.hostname == NULL) { in ssl_session_dup() 832 OPENSSL_free(ss->ext.hostname); in SSL_SESSION_free() 968 return s->ext.hostname; in SSL_SESSION_get0_hostname() 973 OPENSSL_free(s->ext.hostname); in SSL_SESSION_set1_hostname() 974 if (hostname == NULL) { in SSL_SESSION_set1_hostname() 975 s->ext.hostname = NULL; in SSL_SESSION_set1_hostname() 978 s->ext.hostname = OPENSSL_strdup(hostname); in SSL_SESSION_set1_hostname() [all …]
|
A D | ssl_lib.c | 964 int SSL_set1_host(SSL *s, const char *hostname) in SSL_set1_host() argument 968 if (hostname && X509_VERIFY_PARAM_set1_ip_asc(s->param, hostname) == 1) in SSL_set1_host() 974 int SSL_add1_host(SSL *s, const char *hostname) in SSL_add1_host() argument 978 if (hostname) in SSL_add1_host() 983 ip = a2i_IPADDRESS(hostname); in SSL_add1_host() 1052 if (s->ext.hostname == NULL) { in SSL_dane_enable() 1220 OPENSSL_free(s->ext.hostname); in SSL_free() 2835 return s->session->ext.hostname; in SSL_get_servername() 2860 if (s->ext.hostname == NULL in SSL_get_servername() 2863 return s->session->ext.hostname; in SSL_get_servername() [all …]
|
A D | ssl_asn1.c | 173 in->ext.hostname); in i2d_SSL_SESSION() 326 if (!ssl_session_strndup(&ret->ext.hostname, as->tlsext_hostname)) in d2i_SSL_SESSION()
|
A D | s3_lib.c | 3487 OPENSSL_free(s->ext.hostname); in ssl3_ctrl() 3488 s->ext.hostname = NULL; in ssl3_ctrl() 3498 if ((s->ext.hostname = OPENSSL_strdup((char *)parg)) == NULL) { in ssl3_ctrl()
|
/openssl-master/doc/internal/man3/ |
A D | ossl_punycode_decode.pod | 25 ossl_a2ulabel() decodes NUL-terminated hostname from PUNYCODE to UTF-8, 32 a hostname, with stripped PUNYCODE marker I<xn-->.
|
/openssl-master/ssl/statem/ |
A D | extensions_srvr.c | 98 PACKET sni, hostname; in tls_parse_ctos_server_name() local 120 || !PACKET_as_length_prefixed_2(&sni, &hostname)) { in tls_parse_ctos_server_name() 130 if (PACKET_remaining(&hostname) > TLSEXT_MAXLEN_host_name) { in tls_parse_ctos_server_name() 135 if (PACKET_contains_zero_byte(&hostname)) { in tls_parse_ctos_server_name() 144 OPENSSL_free(s->ext.hostname); in tls_parse_ctos_server_name() 145 s->ext.hostname = NULL; in tls_parse_ctos_server_name() 146 if (!PACKET_strndup(&hostname, &s->ext.hostname)) { in tls_parse_ctos_server_name() 158 s->servername_done = (s->session->ext.hostname != NULL) in tls_parse_ctos_server_name() 159 && PACKET_equal(&hostname, s->session->ext.hostname, in tls_parse_ctos_server_name() 160 strlen(s->session->ext.hostname)); in tls_parse_ctos_server_name()
|
A D | extensions_clnt.c | 39 if (s->ext.hostname == NULL) in tls_construct_ctos_server_name() 49 || !WPACKET_sub_memcpy_u16(pkt, s->ext.hostname, in tls_construct_ctos_server_name() 50 strlen(s->ext.hostname)) in tls_construct_ctos_server_name() 829 if (edsess->ext.hostname != NULL) { in tls_construct_ctos_early_data() 830 if (s->ext.hostname == NULL in tls_construct_ctos_early_data() 831 || (s->ext.hostname != NULL in tls_construct_ctos_early_data() 832 && strcmp(s->ext.hostname, edsess->ext.hostname) != 0)) { in tls_construct_ctos_early_data() 1295 if (s->ext.hostname == NULL) { in tls_parse_stoc_server_name() 1306 if (s->session->ext.hostname != NULL) { in tls_parse_stoc_server_name() 1310 s->session->ext.hostname = OPENSSL_strdup(s->ext.hostname); in tls_parse_stoc_server_name() [all …]
|
A D | extensions.c | 905 OPENSSL_free(s->ext.hostname); in init_server_name() 906 s->ext.hostname = NULL; in init_server_name() 941 OPENSSL_free(s->session->ext.hostname); in final_server_name() 942 s->session->ext.hostname = OPENSSL_strdup(s->ext.hostname); in final_server_name() 943 if (s->session->ext.hostname == NULL && s->ext.hostname != NULL) { in final_server_name()
|
/openssl-master/doc/man1/ |
A D | openssl-s_client.pod.in | 14 [B<-host> I<hostname>] 95 [B<-name> I<hostname>] 96 [B<-xmpphost> I<hostname>] 97 [B<-name> I<hostname>] 161 =item B<-host> I<hostname> 347 reference identifier for hostname checks. This must be used in 647 =item B<-xmpphost> I<hostname> 656 =item B<-name> I<hostname> 658 This option is used to specify hostname information for various protocols 804 Rather than providing B<-connect>, the target hostname and optional port may
|
A D | openssl-ocsp.pod.in | 167 =item B<-host> I<hostname>:I<port>, B<-path> I<pathname> 170 I<hostname> on port I<port>. The B<-path> option specifies the HTTP pathname 172 http:// and the given hostname, port, and pathname.
|