/openssl/ssl/quic/ |
H A D | quic_port.c | 102 QUIC_PORT *port; in ossl_quic_port_new() local 119 return port; in ossl_quic_port_new() 124 if (port == NULL) in ossl_quic_port_free() 139 if (port->engine == NULL || port->channel_ctx == NULL) in port_init() 154 if ((port->srtm = ossl_quic_srtm_new(port->engine->libctx, in port_init() 158 if ((port->lcidm = ossl_quic_lcidm_new(port->engine->libctx, in port_init() 166 ossl_list_port_insert_tail(&port->engine->port_list, port); in port_init() 207 ossl_list_port_remove(&port->engine->port_list, port); in port_cleanup() 462 user_ssl = port->get_conn_user_ssl(ch, port->user_ssl_arg); in port_new_handshake_layer() 507 args.port = port; in port_make_channel() [all …]
|
H A D | quic_engine.c | 24 DEFINE_LIST_OF_IMPL(port, QUIC_PORT); 127 QUIC_PORT *port; in ossl_quic_engine_update_poll_descriptors() local 139 OSSL_LIST_FOREACH(port, port, &qeng->port_list) in ossl_quic_engine_update_poll_descriptors() 140 ossl_quic_port_update_poll_descriptors(port, force); in ossl_quic_engine_update_poll_descriptors() 177 QUIC_PORT *port; in qeng_tick() local 188 OSSL_LIST_FOREACH(port, port, &qeng->port_list) { in qeng_tick() 191 ossl_quic_port_subtick(port, &subr, flags); in qeng_tick()
|
H A D | quic_obj.c | 21 QUIC_PORT *port) in ossl_quic_obj_init() argument 24 int is_port_leader = (port != NULL); in ossl_quic_obj_init() 42 obj->port = port; in ossl_quic_obj_init() 79 obj->port = (p != NULL) ? p->port : NULL; in obj_update_cache()
|
H A D | quic_impl.c | 667 qc->port = NULL; in qc_cleanup() 1107 QUIC_PORT *port; in quic_set0_net_rbio() local 1128 QUIC_PORT *port; in quic_set0_net_wbio() local 1173 QUIC_PORT *port; in ossl_quic_conn_get_net_rbio() local 1186 QUIC_PORT *port; in ossl_quic_conn_get_net_wbio() local 1827 QUIC_PORT *port; in quic_do_handshake() local 3187 QUIC_PORT *port; in SSL_inject_net_dgram() local 3195 if (port == NULL) { in SSL_inject_net_dgram() 4422 qc->port = ql->port; in ossl_quic_new_from_listener() 4627 qc->port = ql->port; in create_qc_from_incoming_conn() [all …]
|
/openssl/include/internal/ |
H A D | quic_port.h | 75 void ossl_quic_port_free(QUIC_PORT *port); 99 int ossl_quic_port_have_incoming(QUIC_PORT *port); 104 void ossl_quic_port_drop_incoming(QUIC_PORT *port); 112 BIO *ossl_quic_port_get_net_rbio(QUIC_PORT *port); 113 BIO *ossl_quic_port_get_net_wbio(QUIC_PORT *port); 116 SSL_CTX *ossl_quic_port_get_channel_ctx(QUIC_PORT *port); 132 QUIC_DEMUX *ossl_quic_port_get0_demux(QUIC_PORT *port); 138 OSSL_TIME ossl_quic_port_get_time(QUIC_PORT *port); 144 int ossl_quic_port_is_running(const QUIC_PORT *port); 169 int ossl_quic_port_is_addressed(const QUIC_PORT *port); [all …]
|
/openssl/test/recipes/ |
H A D | 82-test_ocsp_cert_chain.t | 69 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 D | 82-test_tfo_cli.t | 37 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 D | 70-test_sslkeylogfile.t | 42 my $port = "0"; 48 $port = $1; 51 $port = $1; 59 my $server_port = $port;
|
/openssl/crypto/http/ |
H A D | http_lib.c | 61 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 D | http_client.c | 201 if (port != NULL && BIO_printf(rctx->mem, ":%s", port) <= 0) in OSSL_HTTP_REQ_CTX_set_request_line() 415 if (port != NULL in http_req_ctx_new() 416 && (rctx->port = OPENSSL_strdup(port)) == NULL) in http_req_ctx_new() 976 if (port == NULL) { in explict_or_default_port() 985 return port; in explict_or_default_port() 1007 port = explict_or_default_port(host, port, use_ssl); in http_new_bio() 1012 if (port != NULL) in http_new_bio() 1092 if (port != NULL && *port == '\0') in OSSL_HTTP_open() 1217 rctx->port != NULL ? rctx->port : ""); in OSSL_HTTP_exchange() 1264 char *port; in OSSL_HTTP_get() local [all …]
|
/openssl/demos/quic/server/ |
H A D | server.c | 80 static int create_socket(uint16_t port) in create_socket() argument 91 sa.sin_port = htons(port); in create_socket() 94 fprintf(stderr, "cannot bind to %u\n", port); in create_socket() 206 unsigned long port; in main() local 218 port = strtoul(argv[1], NULL, 0); in main() 219 if (port == 0 || port > UINT16_MAX) { in main() 220 fprintf(stderr, "invalid port: %lu\n", port); in main() 225 if ((fd = create_socket((uint16_t)port)) < 0) in main()
|
/openssl/test/recipes/80-test_cmp_http_data/ |
H A D | test_connection.csv | 8 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/demos/guide/ |
H A D | quic-server-block.c | 157 static int create_socket(uint16_t port) in create_socket() argument 169 sa.sin_port = htons(port); in create_socket() 173 fprintf(stderr, "cannot bind to %u\n", port); in create_socket() 267 unsigned long port; in main() local 284 port = strtoul(argv[1], NULL, 0); in main() 285 if (port == 0 || port > UINT16_MAX) { in main() 291 if ((fd = create_socket((uint16_t)port)) < 0) { in main()
|
H A D | quic-server-non-block.c | 157 static int create_socket(uint16_t port) in create_socket() argument 169 sa.sin_port = htons(port); in create_socket() 173 fprintf(stderr, "cannot bind to %u\n", port); in create_socket() 453 unsigned long port; in main() local 469 port = strtoul(argv[1], NULL, 0); in main() 470 if (port == 0 || port > UINT16_MAX) { in main() 476 if ((fd = create_socket((uint16_t)port)) < 0) { in main()
|
H A D | tls-client-block.c | 29 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 D | quic-client-block.c | 29 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 D | tls-client-non-block.c | 30 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 D | quic-multi-stream.c | 29 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()
|
H A D | quic-client-non-block.c | 30 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()
|
/openssl/test/quic-openssl-docker/hq-interop/ |
H A D | quic-hq-interop-server.c | 269 static BIO *create_socket(uint16_t port) in create_socket() argument 311 if (!BIO_ADDR_rawmake(addr, AF_INET6, &in6addr_any, sizeof(in6addr_any), htons(port))) { in create_socket() 312 fprintf(stderr, "unable to bind to port %d\n", port); in create_socket() 318 fprintf(stderr, "cannot bind to %u\n", port); in create_socket() 746 unsigned long port; in main() local 767 port = strtoul(argv[1], NULL, 0); in main() 768 if (port == 0 || port > UINT16_MAX) { in main() 772 fprintf(stderr, "Binding to port %lu\n", port); in main() 775 if ((sock = create_socket((uint16_t)port)) == NULL) { in main()
|
/openssl/doc/man3/ |
H A D | BIO_s_accept.pod | 20 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 …]
|
/openssl/test/ |
H A D | bio_tfo_test.c | 59 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()
|
/openssl/demos/bio/ |
H A D | saccept.c | 54 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 D | server-arg.c | 25 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/include/openssl/ |
H A D | http.h | 48 const char *server, const char *port, 71 OSSL_HTTP_REQ_CTX *OSSL_HTTP_open(const char *server, const char *port, 76 int OSSL_HTTP_proxy_connect(BIO *bio, const char *server, const char *port, 92 const char *server, const char *port,
|