/openssl-master/doc/man3/ |
A D | BIO_parse_hostserv.pod | 7 - utility routines to parse a standard host and service string 30 host + ':' + service 31 host + ':' + '*' 32 host + ':' 35 host 38 The host part can be a name or an IP address. If it's a IPv6 47 host + ':' + service => *host = "host", *service = "service" 48 host + ':' + '*' => *host = "host", *service = NULL 49 host + ':' => *host = "host", *service = NULL 50 ':' + service => *host = NULL, *service = "service" [all …]
|
A D | BIO_ADDRINFO.pod | 24 int BIO_lookup_ex(const char *host, const char *service, int lookup_type, 26 int BIO_lookup(const char *host, const char *service, 45 BIO_lookup_ex() looks up a specified B<host> and B<service>, and 47 be if B<host> is B<NULL>. B<family>, B<socktype> and B<protocol> are used to 57 parameter and expects the B<host> parameter to hold the path to the socket file.
|
A D | OSSL_HTTP_parse_url.pod | 49 C<[scheme://][userinfo@]host[:port][/path][?query][#fragment]> and splits it up 50 into scheme, userinfo, host, port, path, query, and fragment components. 51 The host (or server) component may be a DNS name or an IP address 75 Calling the deprecated function OCSP_parse_url(url, host, port, path, ssl) 77 OSSL_HTTP_parse_url(url, ssl, NULL, host, port, NULL, path, NULL, NULL).
|
/openssl-master/crypto/http/ |
A D | http_lib.c | 46 const char *host, *host_end; in OSSL_parse_url() local 79 user = user_end = host = p; in OSSL_parse_url() 80 host = strchr(p, '@'); in OSSL_parse_url() 81 if (host != NULL) in OSSL_parse_url() 82 user_end = host++; in OSSL_parse_url() 84 host = p; in OSSL_parse_url() 87 if (host[0] == '[') { in OSSL_parse_url() 89 host_end = strchr(host + 1, ']'); in OSSL_parse_url() 95 host_end = strchr(host, ':'); in OSSL_parse_url() 97 host_end = strchr(host, '/'); in OSSL_parse_url() [all …]
|
A D | http_client.c | 317 const STACK_OF(CONF_VALUE) *headers, const char *host) in add1_headers() argument 320 int add_host = host != NULL && *host != '\0'; in add1_headers() 331 if (add_host && !OSSL_HTTP_REQ_CTX_add1_header(rctx, "Host", host)) in add1_headers() 796 const char *host = server; in http_new_bio() local 804 host = proxy; in http_new_bio() 808 if (port == NULL && strchr(host, ':') == NULL) in http_new_bio() 811 cbio = BIO_new_connect(host /* optionally includes ":port" */); in http_new_bio() 1066 char *host; in OSSL_HTTP_get() local 1085 rctx = OSSL_HTTP_open(host, port, proxy, no_proxy, in OSSL_HTTP_get() 1110 OPENSSL_free(host); in OSSL_HTTP_get() [all …]
|
/openssl-master/test/ |
A D | http_test.c | 206 char *user, *host, *port, *path, *query, *frag; in test_http_url_ok() local 212 res = TEST_true(OSSL_HTTP_parse_url(url, &ssl, &user, &host, &port, &num, in test_http_url_ok() 214 && TEST_str_eq(host, exp_host) in test_http_url_ok() 226 OPENSSL_free(host); in test_http_url_ok() 236 char *host, *path; in test_http_url_path_query_ok() local 239 res = TEST_true(OSSL_HTTP_parse_url(url, NULL, NULL, &host, NULL, NULL, in test_http_url_path_query_ok() 241 && TEST_str_eq(host, "host") in test_http_url_path_query_ok() 243 OPENSSL_free(host); in test_http_url_path_query_ok() 277 char *host = "1", *port = "1", *path = "1"; in test_http_url_invalid() local 283 && TEST_ptr_null(host) in test_http_url_invalid() [all …]
|
A D | servername_test.c | 29 static const char *host = "dummy-host"; variable 120 SSL_set_tlsext_host_name(con, host); in client_setup_sni_before_state() 138 if (!TEST_str_eq(hostname, host)) in client_setup_sni_before_state() 183 SSL_set_tlsext_host_name(con, host); in client_setup_sni_after_state() 191 if (!TEST_str_eq(hostname, host)) in client_setup_sni_after_state() 217 SSL_set_tlsext_host_name(serverssl, host); in server_setup_sni()
|
A D | v3nametest.c | 237 int host; member 301 } else if (fn->host) { in run_cert() 316 } else if (fn->host) { in run_cert()
|
/openssl-master/crypto/bio/ |
A D | bio_addr.c | 220 host, sizeof(host), serv, sizeof(serv), in addr_strings() 246 *hostname = OPENSSL_strdup(host); in addr_strings() 534 if (h != NULL && host != NULL) { in BIO_parse_hostserv() 537 *host = NULL; in BIO_parse_hostserv() 539 *host = OPENSSL_strndup(h, hl); in BIO_parse_hostserv() 540 if (*host == NULL) in BIO_parse_hostserv() 623 int BIO_lookup(const char *host, const char *service, in BIO_lookup() argument 676 if (addrinfo_wrap(family, socktype, host, strlen(host), 0, res)) in BIO_lookup_ex() 699 if (host != NULL && family == AF_UNSPEC) in BIO_lookup_ex() 790 if (host == NULL) { in BIO_lookup_ex() [all …]
|
A D | bio_sock.c | 213 int BIO_get_accept_socket(char *host, int bind_mode) in BIO_get_accept_socket() argument 219 if (!BIO_parse_hostserv(host, &h, &p, BIO_PARSE_PRIO_SERV)) in BIO_get_accept_socket() 266 char *host = BIO_ADDR_hostname_string(&res, 1); in BIO_accept() local 268 if (host != NULL && port != NULL) in BIO_accept() 269 *ip_port = OPENSSL_zalloc(strlen(host) + strlen(port) + 2); in BIO_accept() 278 strcpy(*ip_port, host); in BIO_accept() 282 OPENSSL_free(host); in BIO_accept()
|
A D | bss_conn.c | 458 char *host = BIO_ADDR_hostname_string(addr, 1); in conn_ctrl() local 461 ret = host != NULL && service != NULL; in conn_ctrl() 464 data->param_hostname = host; in conn_ctrl() 471 OPENSSL_free(host); in conn_ctrl()
|
/openssl-master/doc/man7/ |
A D | EVP_KEYEXCH-DH.pod | 37 The examples assume a host and peer both generate keys using the same 39 Both the host and peer transfer their public key to each other. 42 to transfer to the host: 52 To convert the received peer's public key from DER format on the host: 59 To derive a shared secret on the host using the host's key and the peer's public 90 using the host's public key and the peer's generated key pair.
|
A D | EVP_KEYEXCH-ECDH.pod | 73 Keys for the host and peer must be generated as shown in 79 To derive a shared secret on the host using the host's key and the peer's public
|
/openssl-master/apps/ |
A D | s_time.c | 35 static SSL *doConnection(SSL *scon, const char *host, SSL_CTX *ctx); 124 char *host = SSL_CONNECT_NAME, *certfile = NULL, *keyfile = NULL, *prog; in s_time_main() local 148 host = opt_arg(); in s_time_main() 280 if ((scon = doConnection(NULL, host, ctx)) == NULL) in s_time_main() 333 if ((scon = doConnection(NULL, host, ctx)) == NULL) { in s_time_main() 362 if ((doConnection(scon, host, ctx)) == NULL) in s_time_main() 415 static SSL *doConnection(SSL *scon, const char *host, SSL_CTX *ctx) in doConnection() argument 424 if (BIO_set_conn_hostname(conn, host) <= 0 in doConnection()
|
A D | s_client.c | 75 static int is_dNS_name(const char *host); 1524 if (tmp_host != host) in s_client_main() 1546 thost = OPENSSL_strdup(host); in s_client_main() 1554 if (tmp_host != host) in s_client_main() 1974 if (host == NULL || is_dNS_name(host)) in s_client_main() 1975 servername = (host == NULL) ? "localhost" : host; in s_client_main() 3061 OPENSSL_free(host); in s_client_main() 3436 size_t length = strlen(host); in is_dNS_name() 3448 char c = host[i]; in is_dNS_name() 3475 && host[i + 1] != '.' in is_dNS_name() [all …]
|
A D | s_server.c | 451 char *host, *path, *port; member 502 host = srctx->host; in get_ocsp_resp_from_responder() 558 OPENSSL_free(host); in get_ocsp_resp_from_responder() 1009 char *host = NULL; in s_server_main() local 1110 OPENSSL_free(host); host = NULL; in s_server_main() 1121 OPENSSL_free(host); host = NULL; in s_server_main() 1139 OPENSSL_free(host); host = NULL; in s_server_main() 1154 OPENSSL_free(host); host = NULL; in s_server_main() 1165 OPENSSL_free(host); host = OPENSSL_strdup(opt_arg()); in s_server_main() 2229 unlink(host); in s_server_main() [all …]
|
A D | ocsp.c | 238 char *host = NULL, *port = NULL, *path = "/", *outfile = NULL; in ocsp_main() local 290 &host, &port, NULL /* port_num */, in ocsp_main() 295 thost = host; in ocsp_main() 300 host = opt_arg(); in ocsp_main() 677 || host != NULL || add_nonce || ridx_filename != NULL)) { in ocsp_main() 729 } else if (host != NULL) { in ocsp_main() 731 resp = process_responder(req, host, port, path, opt_proxy, opt_no_proxy, in ocsp_main() 1222 OCSP_RESPONSE *process_responder(OCSP_REQUEST *req, const char *host, in process_responder() argument 1240 app_http_post_asn1(host, port, path, proxy, no_proxy, in process_responder()
|
A D | cmp.c | 675 static int truststore_set_host_etc(X509_STORE *ts, const char *host) in truststore_set_host_etc() argument 687 return (host != NULL && X509_VERIFY_PARAM_set1_ip_asc(ts_vpm, host)) in truststore_set_host_etc() 688 || X509_VERIFY_PARAM_set1_host(ts_vpm, host, 0); in truststore_set_host_etc() 1183 static SSL_CTX *setup_ssl_ctx(OSSL_CMP_CTX *ctx, const char *host, in setup_ssl_ctx() argument 1762 char *host = NULL, *port = NULL, *path = NULL, *used_path; in setup_client_ctx() local 1772 if (!OSSL_HTTP_parse_url(opt_server, &ssl, NULL /* user */, &host, &port, in setup_client_ctx() 1783 if (!OSSL_CMP_CTX_set1_server(ctx, host) in setup_client_ctx() 1792 opt_tls_used ? "s" : "", host, port, in setup_client_ctx() 1795 proxy_host = OSSL_HTTP_adapt_proxy(opt_proxy, opt_no_proxy, host, ssl); in setup_client_ctx() 1873 info->ssl_ctx = setup_ssl_ctx(ctx, host, engine); in setup_client_ctx() [all …]
|
/openssl-master/providers/implementations/kdfs/ |
A D | kbkdf.c | 86 static uint32_t be32(uint32_t host) in be32() argument 92 return host; in be32() 94 big |= (host & 0xff000000) >> 24; in be32() 95 big |= (host & 0x00ff0000) >> 8; in be32() 96 big |= (host & 0x0000ff00) << 8; in be32() 97 big |= (host & 0x000000ff) << 24; in be32()
|
/openssl-master/apps/lib/ |
A D | s_socket.c | 77 int init_client(int *sock, const char *host, const char *port, in init_client() argument 91 ret = BIO_lookup_ex(host, port, BIO_LOOKUP_CLIENT, family, type, protocol, in init_client() 266 int do_server(int *accept_sock, const char *host, const char *port, in do_server() argument 285 if (!BIO_lookup_ex(host, port, BIO_LOOKUP_SERVER, family, type, protocol, in do_server() 434 unlink(host); in do_server()
|
/openssl-master/apps/include/ |
A D | s_apps.h | 23 int do_server(int *accept_sock, const char *host, const char *port, 36 int init_client(int *sock, const char *host, const char *port,
|
/openssl-master/doc/man1/ |
A D | openssl-s_client.pod.in | 13 [B<-connect> I<host:port>] 14 [B<-host> I<hostname>] 16 [B<-bind> I<host:port>] 17 [B<-proxy> I<host:port>] 129 [I<host>:I<port>] 154 =item B<-connect> I<host>:I<port> 159 is made to connect to the local host on port 4433. 161 =item B<-host> I<hostname> 169 =item B<-bind> I<host:port> 175 =item B<-proxy> I<host:port> [all …]
|
A D | openssl-s_time.pod.in | 12 [B<-connect> I<host>:I<port>] 36 connects to a remote host using SSL/TLS. It can request a page from the server 50 =item B<-connect> I<host>:I<port> 52 This specifies the host and optional port to connect to.
|
/openssl-master/doc/internal/man3/ |
A D | ossl_punycode_decode.pod | 22 representation of host names in ASCII-only format. Some specifications, 23 such as RFC 8398, require comparison of host names encoded in UTF-8 charset.
|
/openssl-master/Configurations/ |
A D | 15-android.conf | 107 my $host=$1; 115 . "/$tritools-4.9/prebuilt/$host";
|