Home
last modified time | relevance | path

Searched refs:port (Results 1 – 25 of 86) sorted by relevance

1234

/openssl/ssl/quic/
H A Dquic_port.c37 QUIC_PORT *port; in ossl_quic_port_new() local
51 return port; in ossl_quic_port_new()
56 if (port == NULL) in ossl_quic_port_free()
67 if (port->engine == NULL || port->channel_ctx == NULL) in port_init()
82 if ((port->srtm = ossl_quic_srtm_new(port->engine->libctx, in port_init()
86 if ((port->lcidm = ossl_quic_lcidm_new(port->engine->libctx, in port_init()
94 ossl_list_port_insert_tail(&port->engine->port_list, port); in port_init()
120 ossl_list_port_remove(&port->engine->port_list, port); in port_cleanup()
238 if (!port_update_poll_desc(port, port->net_rbio, /*for_write=*/0)) in ossl_quic_port_update_poll_descriptors()
311 args.port = port; in port_make_channel()
[all …]
H A Dquic_engine.c24 DEFINE_LIST_OF_IMPL(port, QUIC_PORT);
124 QUIC_PORT *port; in qeng_tick() local
134 OSSL_LIST_FOREACH(port, port, &qeng->port_list) { in qeng_tick()
137 ossl_quic_port_subtick(port, &subr, flags); in qeng_tick()
H A Dquic_engine_local.h28 DECLARE_LIST_OF(port, QUIC_PORT);
51 OSSL_LIST(port) port_list;
/openssl/include/internal/
H A Dquic_port.h62 void ossl_quic_port_free(QUIC_PORT *port);
85 BIO *ossl_quic_port_get_net_rbio(QUIC_PORT *port);
86 BIO *ossl_quic_port_get_net_wbio(QUIC_PORT *port);
94 int ossl_quic_port_update_poll_descriptors(QUIC_PORT *port);
97 QUIC_ENGINE *ossl_quic_port_get0_engine(QUIC_PORT *port);
100 QUIC_REACTOR *ossl_quic_port_get0_reactor(QUIC_PORT *port);
103 QUIC_DEMUX *ossl_quic_port_get0_demux(QUIC_PORT *port);
106 CRYPTO_MUTEX *ossl_quic_port_get0_mutex(QUIC_PORT *port);
109 OSSL_TIME ossl_quic_port_get_time(QUIC_PORT *port);
115 int ossl_quic_port_is_running(const QUIC_PORT *port);
[all …]
/openssl/test/recipes/
H A D82-test_ocsp_cert_chain.t69 my $port = "0";
74 $port = $1;
77 $port = $1;
83 ok($port ne "0", "ocsp server port check");
84 my $ocsp_port = $port;
98 $port = "0";
103 $port = $1;
106 $port = $1;
114 ok($port ne "0", "s_server port check");
115 my $server_port = $port;
H A D82-test_tfo_cli.t37 my $port = "0";
50 $port = $1;
54 print STDERR "Port: $port\n";
55 print STDERR "Invalid port\n" if ! ok($port);
58 my @c_cmd = ("s_client", "-connect", ":$port", "-no_tls1_3");
H A D70-test_sslkeylogfile.t42 my $port = "0";
48 $port = $1;
51 $port = $1;
59 my $server_port = $port;
/openssl/crypto/http/
H A Dhttp_lib.c61 const char *port, *port_end; in OSSL_parse_url() local
123 port = "0"; /* default */ in OSSL_parse_url()
125 port = ++p; in OSSL_parse_url()
135 p += port_end - port; in OSSL_parse_url()
203 char *scheme, *port; in OSSL_HTTP_parse_url() local
221 OPENSSL_free(port); in OSSL_HTTP_parse_url()
226 if (strcmp(port, "0") == 0) { in OSSL_HTTP_parse_url()
228 OPENSSL_free(port); in OSSL_HTTP_parse_url()
235 *pport = OPENSSL_strdup(port); in OSSL_HTTP_parse_url()
241 *pport = port; in OSSL_HTTP_parse_url()
[all …]
H A Dhttp_client.c198 if (port != NULL && BIO_printf(rctx->mem, ":%s", port) <= 0) in OSSL_HTTP_REQ_CTX_set_request_line()
412 if (port != NULL in http_req_ctx_new()
413 && (rctx->port = OPENSSL_strdup(port)) == NULL) in http_req_ctx_new()
933 if (port == NULL) { in explict_or_default_port()
942 return port; in explict_or_default_port()
964 port = explict_or_default_port(host, port, use_ssl); in http_new_bio()
969 if (port != NULL) in http_new_bio()
1049 if (port != NULL && *port == '\0') in OSSL_HTTP_open()
1174 rctx->port != NULL ? rctx->port : ""); in OSSL_HTTP_exchange()
1221 char *port; in OSSL_HTTP_get() local
[all …]
/openssl/test/recipes/80-test_cmp_http_data/
H A Dtest_connection.csv8 0,wrong server port, -section,, -server,_SERVER_HOST:99,,,,,BLANK,,,, -msg_timeout,1,BLANK,,BLANK,
9 0,server default port, -section,, -server,_SERVER_HOST,,,,,BLANK,,,, -msg_timeout,1,BLANK,,BLANK,
10 0,server port out of range, -section,, -server,_SERVER_HOST:65536,,,,,BLANK,,,,BLANK,,BLANK,,BLANK,
11 0,server port negative, -section,, -server,_SERVER_HOST:-10,,,,,BLANK,,,,BLANK,,BLANK,,BLANK,
13 0,server with default port, -section,, -server,_SERVER_HOST,,,,,BLANK,,,,BLANK,,BLANK,,BLANK,
14 0,server port bad syntax: leading garbage, -section,, -server,_SERVER_HOST:x/+80,,,,,BLANK,,,,BLANK…
15 0,server port bad syntax: trailing garbage, -section,, -server,_SERVER_HOST:_SERVER_PORT+/x.,,,,,BL…
16 0,server with wrong port, -section,, -server,_SERVER_HOST:999,,,,,BLANK,,,,-msg_timeout,1,BLANK,,BL…
17 TBD,server IP address with TLS port, -section,, -server,_SERVER_IP:_SERVER_TLS,,,,,BLANK,,,,BLANK,,…
20 0,proxy port out of range, -section,, -server,_SERVER_HOST:_SERVER_PORT, -proxy,127.0.0.1:65536, -n…
[all …]
/openssl/doc/man3/
H A DBIO_s_accept.pod20 long BIO_set_accept_port(BIO *b, char *port);
50 and the port (see below) is set up properly then the BIO
68 where "host" is the interface to use and "port" is the port.
72 same syntax as the port specified in BIO_set_conn_port() for
73 connect BIOs, that is it can be a numerical port string or a
77 port of BIO I<b>. "port" has the same syntax as the port specified in
81 If the given port is C<0> then a random available port is chosen.
85 a single call: that is it creates a new accept BIO with port
111 then another socket cannot be bound to the same port. If
113 same port. If B<BIO_BIND_REUSEADDR_IF_UNUSED> is set then and
[all …]
H A DOSSL_HTTP_parse_url.pod53 C<[scheme://][userinfo@]host[:port][/path][?query][#fragment]> and splits it up
54 into scheme, userinfo, host, port, path, query, and fragment components.
57 The port component is optional and defaults to C<0>.
59 the integer value of the port number is assigned to I<*pport_num> on success.
68 For absent scheme, userinfo, port, query, and fragment components
75 The port component is optional and defaults to C<443> if the scheme is C<https>,
80 Calling the deprecated function OCSP_parse_url(url, host, port, path, ssl)
82 OSSL_HTTP_parse_url(url, ssl, NULL, host, port, NULL, path, NULL, NULL).
H A DBIO_s_connect.pod22 long BIO_set_conn_port(BIO *b, char *port);
49 and the port and hostname (see below) is set up properly then
68 The hostname can also include the port in the form hostname:port;
71 BIO_set_conn_port() sets the port to B<port>. B<port> can be the
73 will be mapped to a port number using the system function getservbyname().
75 BIO_set_conn_address() sets the address and port information using
84 BIO_get_conn_port() returns the port as a string.
128 If the port name is supplied as part of the hostname then this will
175 port or NULL if not set.
/openssl/test/
H A Dbio_tfo_test.c59 const char *port; in test_bio_tfo() local
87 || !TEST_ptr(port = BIO_get_accept_port(abio))) { in test_bio_tfo()
96 || !TEST_long_gt(BIO_set_conn_port(cbio, port), 0) in test_bio_tfo()
216 unsigned short port; in test_fd_tfo() local
246 port = ((struct sockaddr_in *)ai->ai_addr)->sin_port; in test_fd_tfo()
252 port = ((struct sockaddr_in6 *)ai->ai_addr)->sin6_port; in test_fd_tfo()
263 || !TEST_true(BIO_ADDR_rawmake(baddr, ai->ai_family, addr, addrlen, port))) in test_fd_tfo()
279 port = ((struct sockaddr_in *)&sstorage)->sin_port; in test_fd_tfo()
284 port = ((struct sockaddr_in6 *)&sstorage)->sin6_port; in test_fd_tfo()
292 if(!TEST_true(BIO_ADDR_rawmake(baddr, sstorage.ss_family, addr, addrlen, port))) in test_fd_tfo()
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()
264 && TEST_str_eq(port, exp_port) in test_http_url_ok()
276 OPENSSL_free(port); in test_http_url_ok()
326 char *host = "1", *port = "1", *path = "1"; in test_http_url_invalid() local
330 res = TEST_false(OSSL_HTTP_parse_url(url, &ssl, NULL, &host, &port, &num, in test_http_url_invalid()
333 && TEST_ptr_null(port) in test_http_url_invalid()
337 OPENSSL_free(port); in test_http_url_invalid()
/openssl/demos/bio/
H A Dsaccept.c54 char *port = NULL; in main() local
62 port = "*:4433"; in main()
64 port = argv[1]; in main()
77 if ((in = BIO_new_accept(port)) == NULL) in main()
H A Dserver-arg.c25 char *port = "*:4433"; in main() local
59 port = args[1]; in main()
60 if (port == NULL) { in main()
99 if ((in = BIO_new_accept(port)) == NULL) in main()
/openssl/demos/guide/
H A Dtls-client-block.c29 static BIO *create_socket_bio(const char *hostname, const char *port, int family) in create_socket_bio() argument
39 if (!BIO_lookup_ex(hostname, port, BIO_LOOKUP_CLIENT, family, SOCK_STREAM, 0, in create_socket_bio()
111 char *hostname, *port; in main() local
129 port = argv[argnext]; in main()
175 bio = create_socket_bio(hostname, port, ipv6 ? AF_INET6 : AF_INET); in main()
H A Dquic-client-block.c29 static BIO *create_socket_bio(const char *hostname, const char *port, in create_socket_bio() argument
40 if (!BIO_lookup_ex(hostname, port, BIO_LOOKUP_CLIENT, family, SOCK_DGRAM, 0, in create_socket_bio()
130 char *hostname, *port; in main() local
148 port = argv[argnext]; in main()
185 bio = create_socket_bio(hostname, port, ipv6 ? AF_INET6 : AF_INET, &peer_addr); in main()
H A Dtls-client-non-block.c30 static BIO *create_socket_bio(const char *hostname, const char *port, int family) in create_socket_bio() argument
40 if (!BIO_lookup_ex(hostname, port, BIO_LOOKUP_CLIENT, family, SOCK_STREAM, 0, in create_socket_bio()
189 char *hostname, *port; in main() local
208 port = argv[argnext]; in main()
254 bio = create_socket_bio(hostname, port, ipv6 ? AF_INET6 : AF_INET); in main()
H A Dquic-client-non-block.c30 static BIO *create_socket_bio(const char *hostname, const char *port, in create_socket_bio() argument
41 if (!BIO_lookup_ex(hostname, port, BIO_LOOKUP_CLIENT, family, SOCK_DGRAM, 0, in create_socket_bio()
238 char *hostname, *port; in main() local
256 port = argv[argnext]; in main()
293 bio = create_socket_bio(hostname, port, ipv6 ? AF_INET6 : AF_INET, in main()
H A Dquic-multi-stream.c29 static BIO *create_socket_bio(const char *hostname, const char *port, in create_socket_bio() argument
40 if (!BIO_lookup_ex(hostname, port, BIO_LOOKUP_CLIENT, family, SOCK_DGRAM, 0, in create_socket_bio()
150 char *hostname, *port; in main() local
168 port = argv[argnext]; in main()
214 bio = create_socket_bio(hostname, port, ipv6 ? AF_INET6 : AF_INET, &peer_addr); in main()
/openssl/include/openssl/
H A Dhttp.h48 const char *server, const char *port,
69 OSSL_HTTP_REQ_CTX *OSSL_HTTP_open(const char *server, const char *port,
74 int OSSL_HTTP_proxy_connect(BIO *bio, const char *server, const char *port,
90 const char *server, const char *port,
/openssl/util/
H A Dquicserver.c68 static BIO *create_dgram_bio(int family, const char *hostname, const char *port) in create_dgram_bio() argument
81 if (!BIO_lookup_ex(hostname, port, BIO_LOOKUP_SERVER, family, SOCK_DGRAM, in create_dgram_bio()
148 char *hostname, *port, *certfile, *keyfile; in main() local
190 port = argv[argnext++]; in main()
194 bio = create_dgram_bio(ipv6 ? AF_INET6 : AF_INET, hostname, port); in main()
/openssl/apps/lib/
H A Dhttp_server.c192 BIO *http_server_init(const char *prog, const char *port, int verb) in http_server_init() argument
199 BIO_snprintf(name, sizeof(name), "*:%s", port); /* port may be "0" */ in http_server_init()
217 log_HTTP1(prog, LOG_ERR, "error setting accept on port %s", port); in http_server_init()
281 char *port; in http_server_get_asn1_req() local
283 get_sock_info_address(BIO_get_fd(acbio, NULL), NULL, &port); in http_server_get_asn1_req()
284 if (port == NULL) { in http_server_get_asn1_req()
289 "awaiting new connection on port %s ...", port); in http_server_get_asn1_req()
290 OPENSSL_free(port); in http_server_get_asn1_req()

Completed in 35 milliseconds

1234