Home
last modified time | relevance | path

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

123

/openssl-master/crypto/http/
A Dhttp_lib.c47 const char *port, *port_end; in OSSL_parse_url() local
108 port = "0"; /* default */ in OSSL_parse_url()
110 port = ++p; in OSSL_parse_url()
120 p += port_end - port; in OSSL_parse_url()
188 char *scheme, *port; in OSSL_HTTP_parse_url() local
206 OPENSSL_free(port); in OSSL_HTTP_parse_url()
211 if (strcmp(port, "0") == 0) { in OSSL_HTTP_parse_url()
213 OPENSSL_free(port); in OSSL_HTTP_parse_url()
220 *pport = OPENSSL_strdup(port); in OSSL_HTTP_parse_url()
226 *pport = port; in OSSL_HTTP_parse_url()
[all …]
A Dhttp_client.c132 OPENSSL_free(rctx->port); in OSSL_HTTP_REQ_CTX_free()
192 if (port != NULL && BIO_printf(rctx->mem, ":%s", port) <= 0) in OSSL_HTTP_REQ_CTX_set_request_line()
358 if (port != NULL in http_req_ctx_new()
359 && (rctx->port = OPENSSL_strdup(port)) == NULL) in http_req_ctx_new()
805 port = proxy_port; in http_new_bio()
814 if (port != NULL) in http_new_bio()
894 if (port != NULL && *port == '\0') in OSSL_HTTP_open()
895 port = NULL; in OSSL_HTTP_open()
1020 rctx->port != NULL ? rctx->port : ""); in OSSL_HTTP_exchange()
1067 char *port; in OSSL_HTTP_get() local
[all …]
/openssl-master/test/recipes/80-test_cmp_http_data/
A Dtest_connection.csv9 0,wrong server port, -section,, -server,_SERVER_HOST:99,,,,,BLANK,,,, -msg_timeout,1,BLANK,,BLANK,
10 0,server default port, -section,, -server,_SERVER_HOST,,,,,BLANK,,,, -msg_timeout,1,BLANK,,BLANK,
11 0,server port out of range, -section,, -server,_SERVER_HOST:65536,,,,,BLANK,,,,BLANK,,BLANK,,BLANK,
12 0,server port negative, -section,, -server,_SERVER_HOST:-10,,,,,BLANK,,,,BLANK,,BLANK,,BLANK,
14 0,server with default port, -section,, -server,_SERVER_HOST,,,,,BLANK,,,,BLANK,,BLANK,,BLANK,
15 0,server port bad syntax: leading garbage, -section,, -server,_SERVER_HOST:x/+80,,,,,BLANK,,,,BLANK…
16 0,server port bad synatx: trailing garbage, -section,, -server,_SERVER_HOST:_SERVER_PORT+/x.,,,,,BL…
17 0,server with wrong port, -section,, -server,_SERVER_HOST:999,,,,,BLANK,,,,-msg_timeout,1,BLANK,,BL…
18 TBD,server IP address with TLS port, -section,, -server,_SERVER_IP:_SERVER_TLS,,,,,BLANK,,,,BLANK,,…
21 0,proxy port out of range, -section,, -server,_SERVER_HOST:_SERVER_PORT, -proxy,127.0.0.1:65536, -n…
[all …]
/openssl-master/doc/man3/
A DBIO_s_accept.pod20 long BIO_set_accept_port(BIO *b, char *port);
49 and the port (see below) is set up properly then the BIO
67 where "host" is the interface to use and "port" is the port.
71 same syntax as the port specified in BIO_set_conn_port() for
72 connect BIOs, that is it can be a numerical port string or a
76 port of BIO I<b>. "port" has the same syntax as the port specified in
80 If the given port is C<0> then a random available port is chosen.
84 a single call: that is it creates a new accept BIO with port
105 then another socket cannot be bound to the same port. If
107 same port. If B<BIO_BIND_REUSEADDR_IF_UNUSED> is set then and
[all …]
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.
53 The port component is optional and defaults to C<0>.
55 the integer value of the port number is assigned to I<*pport_num> on success.
63 For absent scheme, userinfo, port, query, and fragment components
70 The port component is optional and defaults to C<443> if the scheme is C<https>,
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).
A DBIO_s_connect.pod21 long BIO_set_conn_port(BIO *b, char *port);
44 and the port and hostname (see below) is set up properly then
63 The hostname can also include the port in the form hostname:port;
66 BIO_set_conn_port() sets the port to B<port>. B<port> can be the
68 will be mapped to a port number using the system function getservbyname().
70 BIO_set_conn_address() sets the address and port information using
79 BIO_get_conn_port() returns the port as a string.
110 If the port name is supplied as part of the hostname then this will
157 port or NULL if not set.
A DBIO_ADDR.pod21 const void *where, size_t wherelen, unsigned short port);
47 by B<where> and a port number in network byte order in B<port> (except
48 for the B<AF_UNIX> protocol family, where B<port> is meaningless and
72 BIO_ADDR_rawport() returns the raw port of the given B<BIO_ADDR>.
73 The raw port will be in network byte order.
83 service name of the port of the given B<BIO_ADDR>. If B<numeric>
84 is 1, the string will contain the port number. This only works
/openssl-master/demos/bio/
A Dsaccept.c50 char *port = NULL; in main() local
58 port = "*:4433"; in main()
60 port = argv[1]; in main()
73 if ((in = BIO_new_accept(port)) == NULL) in main()
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()
A Dserver-conf.c26 char *port = "*:4433"; in main() local
75 port = cnf->value; in main()
91 if ((in = BIO_new_accept(port)) == NULL) in main()
A Dserver-cmod.c25 char *port = "*:4433"; in main() local
46 if ((in = BIO_new_accept(port)) == NULL) in main()
/openssl-master/test/
A Dhttp_test.c206 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()
215 && TEST_str_eq(port, exp_port) in test_http_url_ok()
227 OPENSSL_free(port); in test_http_url_ok()
277 char *host = "1", *port = "1", *path = "1"; in test_http_url_invalid() local
281 res = TEST_false(OSSL_HTTP_parse_url(url, &ssl, NULL, &host, &port, &num, in test_http_url_invalid()
284 && TEST_ptr_null(port) in test_http_url_invalid()
288 OPENSSL_free(port); in test_http_url_invalid()
/openssl-master/include/openssl/
A Dhttp.h43 const char *server, const char *port,
64 OSSL_HTTP_REQ_CTX *OSSL_HTTP_open(const char *server, const char *port,
69 int OSSL_HTTP_proxy_connect(BIO *bio, const char *server, const char *port,
85 const char *server, const char *port,
/openssl-master/test/recipes/80-test_cmp_http_data/Mock/
A Dserver.cnf3 port = 0 # 0 means that the server should choose a random available port
/openssl-master/crypto/bio/
A Dbio_sock.c267 char *port = BIO_ADDR_service_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()
280 strcat(*ip_port, port); in BIO_accept()
283 OPENSSL_free(port); in BIO_accept()
A Dbio_addr.c104 unsigned short port) in BIO_ADDR_rawmake() argument
121 ap->s_in.sin_port = port; in BIO_ADDR_rawmake()
131 ap->s_in6.sin6_port = port; in BIO_ADDR_rawmake()
578 unsigned short port, in addrinfo_wrap() argument
604 BIO_ADDR_rawmake(addr, family, where, wherelen, port); in addrinfo_wrap()
/openssl-master/apps/include/
A Dhttp_server.h64 BIO *http_server_init_bio(const char *prog, const char *port);
89 const char *prog, const char *port,
A Ds_apps.h23 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/apps/
A Docsp.c79 const char *port, int timeout);
238 char *host = NULL, *port = NULL, *path = "/", *outfile = NULL; in ocsp_main() local
296 tport = port; in ocsp_main()
303 port = opt_arg(); in ocsp_main()
555 && respin == NULL && !(port != NULL && ridx_filename != NULL)) in ocsp_main()
577 if (req == NULL && port != NULL) { in ocsp_main()
579 acbio = http_server_init_bio(prog, port); in ocsp_main()
660 res = do_responder(&req, &cbio, acbio, port, req_timeout); in ocsp_main()
1191 const char *port, int timeout) in do_responder() argument
1223 const char *port, const char *path, in process_responder() argument
[all …]
A Ds_server.c451 char *host, *path, *port; member
504 port = srctx->port; in get_ocsp_resp_from_responder()
560 OPENSSL_free(port); in get_ocsp_resp_from_responder()
1111 OPENSSL_free(port); port = NULL; in s_server_main()
1122 OPENSSL_free(port); port = NULL; in s_server_main()
1138 OPENSSL_free(port); port = NULL; in s_server_main()
1143 port); in s_server_main()
1153 OPENSSL_free(port); port = NULL; in s_server_main()
1158 port); in s_server_main()
1166 OPENSSL_free(port); port = NULL; in s_server_main()
[all …]
/openssl-master/apps/lib/
A Ds_socket.c77 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()
A Dhttp_server.c219 BIO *http_server_init_bio(const char *prog, const char *port) in http_server_init_bio() argument
230 || BIO_set_accept_port(acbio, port) < 0) { in http_server_init_bio()
286 const char *prog, const char *port, in http_server_get_asn1_req() argument
302 "Awaiting new connection on port %s...", port); in http_server_get_asn1_req()
/openssl-master/doc/man1/
A Dopenssl-ocsp.pod.in32 [B<-host> I<host>:I<port>]
34 [B<-proxy> I<[http[s]://][userinfo@]host[:port][/path]>]
50 [B<-port> I<num>]
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.
174 =item B<-proxy> I<[http[s]://][userinfo@]host[:port][/path]>
178 The proxy port defaults to 80 or 443 if the scheme is C<https>; apart from that
317 or via external OCSP clients (if B<-port> or B<-url> is specified).
370 =item B<-port> I<portnum>
[all …]
A Dopenssl-s_client.pod.in13 [B<-connect> I<host:port>]
15 [B<-port> I<port>]
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>
165 =item B<-port> I<port>
169 =item B<-bind> I<host:port>
175 =item B<-proxy> I<host:port>
802 =item I<host>:I<port>
[all …]
/openssl-master/demos/certs/
A Docsprun.sh13 $OPENSSL ocsp -port $PORT -index index.txt -CA intca.pem \

Completed in 34 milliseconds

123