Home
last modified time | relevance | path

Searched refs:host (Results 1 – 25 of 59) sorted by relevance

123

/openssl/doc/man3/
H A DBIO_parse_hostserv.pod7 - 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 …]
H A DBIO_ADDRINFO.pod24 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.
H A DOSSL_HTTP_parse_url.pod49 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/crypto/http/
H A Dhttp_lib.c46 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 …]
H A Dhttp_client.c347 int add_host = host != NULL && *host != '\0'; in add1_headers()
358 if (add_host && !OSSL_HTTP_REQ_CTX_add1_header(rctx, "Host", host)) in add1_headers()
881 const char *host = server; in http_new_bio() local
889 host = proxy; in http_new_bio()
893 if (port == NULL && strchr(host, ':') == NULL) in http_new_bio()
896 cbio = BIO_new_connect(host /* optionally includes ":port" */); in http_new_bio()
1152 char *host; in OSSL_HTTP_get() local
1172 rctx = OSSL_HTTP_open(host, port, proxy, no_proxy, in OSSL_HTTP_get()
1197 OPENSSL_free(host); in OSSL_HTTP_get()
1206 OPENSSL_free(host); in OSSL_HTTP_get()
[all …]
/openssl/crypto/bio/
H A Dbio_addr.c232 host, sizeof(host), serv, sizeof(serv), in addr_strings()
258 *hostname = OPENSSL_strdup(host); in addr_strings()
546 if (h != NULL && host != NULL) { in BIO_parse_hostserv()
549 *host = NULL; in BIO_parse_hostserv()
551 *host = OPENSSL_strndup(h, hl); in BIO_parse_hostserv()
552 if (*host == NULL) in BIO_parse_hostserv()
635 int BIO_lookup(const char *host, const char *service, in BIO_lookup() argument
688 if (addrinfo_wrap(family, socktype, host, strlen(host), 0, res)) in BIO_lookup_ex()
711 if (host != NULL && family == AF_UNSPEC) in BIO_lookup_ex()
802 if (host == NULL) { in BIO_lookup_ex()
[all …]
H A Dbio_sock.c215 int BIO_get_accept_socket(char *host, int bind_mode) in BIO_get_accept_socket() argument
221 if (!BIO_parse_hostserv(host, &h, &p, BIO_PARSE_PRIO_SERV)) in BIO_get_accept_socket()
268 char *host = BIO_ADDR_hostname_string(&res, 1); in BIO_accept() local
270 if (host != NULL && port != NULL) in BIO_accept()
271 *ip_port = OPENSSL_zalloc(strlen(host) + strlen(port) + 2); in BIO_accept()
280 strcpy(*ip_port, host); in BIO_accept()
284 OPENSSL_free(host); in BIO_accept()
H A Dbss_conn.c485 char *host = BIO_ADDR_hostname_string(addr, 1); in conn_ctrl() local
488 ret = host != NULL && service != NULL; in conn_ctrl()
491 data->param_hostname = host; in conn_ctrl()
498 OPENSSL_free(host); in conn_ctrl()
/openssl/test/
H A Dhttp_test.c255 char *user, *host, *port, *path, *query, *frag; in test_http_url_ok() local
261 res = TEST_true(OSSL_HTTP_parse_url(url, &ssl, &user, &host, &port, &num, in test_http_url_ok()
263 && TEST_str_eq(host, exp_host) in test_http_url_ok()
275 OPENSSL_free(host); in test_http_url_ok()
285 char *host, *path; in test_http_url_path_query_ok() local
288 res = TEST_true(OSSL_HTTP_parse_url(url, NULL, NULL, &host, NULL, NULL, in test_http_url_path_query_ok()
290 && TEST_str_eq(host, "host") in test_http_url_path_query_ok()
292 OPENSSL_free(host); in test_http_url_path_query_ok()
326 char *host = "1", *port = "1", *path = "1"; in test_http_url_invalid() local
332 && TEST_ptr_null(host) in test_http_url_invalid()
[all …]
H A Dservername_test.c29 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()
H A Dv3nametest.c233 int host; member
299 } else if (fn->host) { in run_cert()
314 } else if (fn->host) { in run_cert()
/openssl/apps/
H A Ds_time.c35 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()
279 if ((scon = doConnection(NULL, host, ctx)) == NULL) in s_time_main()
332 if ((scon = doConnection(NULL, host, ctx)) == NULL) { in s_time_main()
361 if ((doConnection(scon, host, ctx)) == NULL) in s_time_main()
414 static SSL *doConnection(SSL *scon, const char *host, SSL_CTX *ctx) in doConnection() argument
423 if (BIO_set_conn_hostname(conn, host) <= 0 in doConnection()
H A Ds_client.c75 static int is_dNS_name(const char *host);
1542 if (tmp_host != host) in s_client_main()
1572 thost = OPENSSL_strdup(host); in s_client_main()
1580 if (tmp_host != host) in s_client_main()
2011 if (host == NULL || is_dNS_name(host)) in s_client_main()
2012 servername = (host == NULL) ? "localhost" : host; in s_client_main()
3164 OPENSSL_free(host); in s_client_main()
3539 size_t length = strlen(host); in is_dNS_name()
3551 char c = host[i]; in is_dNS_name()
3578 && host[i + 1] != '.' in is_dNS_name()
[all …]
H A Ds_server.c450 char *host, *path, *port; member
501 host = srctx->host; in get_ocsp_resp_from_responder()
557 OPENSSL_free(host); in get_ocsp_resp_from_responder()
1012 char *host = NULL; in s_server_main() local
1115 OPENSSL_free(host); host = NULL; in s_server_main()
1126 OPENSSL_free(host); host = NULL; in s_server_main()
1144 OPENSSL_free(host); host = NULL; in s_server_main()
1159 OPENSSL_free(host); host = NULL; in s_server_main()
1170 OPENSSL_free(host); host = OPENSSL_strdup(opt_arg()); in s_server_main()
2255 unlink(host); in s_server_main()
[all …]
H A Docsp.c240 char *host = NULL, *port = NULL, *path = "/", *outfile = NULL; in ocsp_main() local
293 &host, &port, NULL /* port_num */, in ocsp_main()
298 thost = host; in ocsp_main()
303 host = opt_arg(); in ocsp_main()
681 || host != NULL || add_nonce || ridx_filename != NULL)) { in ocsp_main()
733 } else if (host != NULL) { in ocsp_main()
735 resp = process_responder(req, host, port, path, opt_proxy, opt_no_proxy, in ocsp_main()
1233 OCSP_RESPONSE *process_responder(OCSP_REQUEST *req, const char *host, in process_responder() argument
1251 app_http_post_asn1(host, port, path, proxy, no_proxy, in process_responder()
H A Dcmp.c723 static int truststore_set_host_etc(X509_STORE *ts, const char *host) in truststore_set_host_etc() argument
735 return (host != NULL && X509_VERIFY_PARAM_set1_ip_asc(ts_vpm, host)) in truststore_set_host_etc()
736 || X509_VERIFY_PARAM_set1_host(ts_vpm, host, 0); in truststore_set_host_etc()
1240 static SSL_CTX *setup_ssl_ctx(OSSL_CMP_CTX *ctx, const char *host, in setup_ssl_ctx() argument
1379 opt_tls_host != NULL ? opt_tls_host : host)) in setup_ssl_ctx()
1826 char *host = NULL, *port = NULL, *path = NULL, *used_path = opt_path; in setup_client_ctx() local
1871 if (!OSSL_CMP_CTX_set1_server(ctx, host) in setup_client_ctx()
1879 opt_tls_used ? "s" : "", host, port, in setup_client_ctx()
1882 proxy_host = OSSL_HTTP_adapt_proxy(opt_proxy, opt_no_proxy, host, use_ssl); in setup_client_ctx()
1954 info->ssl_ctx = setup_ssl_ctx(ctx, host, engine); in setup_client_ctx()
[all …]
/openssl/doc/man7/
H A DEVP_KEYEXCH-DH.pod57 The examples assume a host and peer both generate keys using the same
59 Both the host and peer transfer their public key to each other.
62 to transfer to the host:
72 To convert the received peer's public key from DER format on the host:
79 To derive a shared secret on the host using the host's key and the peer's public
111 using the host's public key and the peer's generated key pair.
H A DEVP_KEYEXCH-ECDH.pod58 Keys for the host and peer must be generated as shown in
64 To derive a shared secret on the host using the host's key and the peer's public
/openssl/apps/lib/
H A Ds_socket.c79 int init_client(int *sock, const char *host, const char *port, in init_client() argument
98 ret = BIO_lookup_ex(host, port, BIO_LOOKUP_CLIENT, family, type, protocol, in init_client()
294 int do_server(int *accept_sock, const char *host, const char *port, in do_server() argument
314 if (!BIO_lookup_ex(host, port, BIO_LOOKUP_SERVER, family, type, protocol, in do_server()
465 unlink(host); in do_server()
/openssl/providers/implementations/kdfs/
H A Dkbkdf.c88 static uint32_t be32(uint32_t host) in be32() argument
94 return host; in be32()
96 big |= (host & 0xff000000) >> 24; in be32()
97 big |= (host & 0x00ff0000) >> 8; in be32()
98 big |= (host & 0x0000ff00) << 8; in be32()
99 big |= (host & 0x000000ff) << 24; in be32()
/openssl/doc/internal/man3/
H A Dossl_punycode_decode.pod22 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/apps/include/
H A Ds_apps.h24 int do_server(int *accept_sock, const char *host, const char *port,
37 int init_client(int *sock, const char *host, const char *port,
/openssl/doc/man1/
H A Dopenssl-s_client.pod.in13 [B<-connect> I<host:port>]
14 [B<-host> I<hostname>]
16 [B<-bind> I<host:port>]
17 [B<-proxy> I<host:port>]
133 [I<host>:I<port>]
158 =item B<-connect> I<host>:I<port>
163 is made to connect to the local host on port 4433.
165 =item B<-host> I<hostname>
173 =item B<-bind> I<host:port>
179 =item B<-proxy> I<host:port>
[all …]
H A Dopenssl-s_time.pod.in12 [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/Configurations/
H A D15-android.conf107 my $host=$1;
115 . "/$tritools-4.9/prebuilt/$host";

Completed in 96 milliseconds

123