Home
last modified time | relevance | path

Searched refs:sock (Results 1 – 25 of 34) sorted by relevance

12

/openssl/crypto/bio/
H A Dbio_sock2.c44 int sock = -1; in BIO_socket() local
49 sock = socket(domain, socktype, protocol); in BIO_socket()
50 if (sock == -1) { in BIO_socket()
57 return sock; in BIO_socket()
85 if (sock == -1) { in BIO_connect()
191 ktls_enable(sock); in BIO_connect()
218 if (sock == -1) { in BIO_bind()
293 if (sock == -1) { in BIO_listen()
348 if (!BIO_bind(sock, addr, options)) in BIO_listen()
447 int BIO_closesocket(int sock) in BIO_closesocket() argument
[all …]
H A Dbio_sock.c103 int BIO_sock_error(int sock) in BIO_sock_error() argument
114 i = getsockopt(sock, SOL_SOCKET, SO_ERROR, (void *)&j, &size); in BIO_sock_error()
287 int BIO_accept(int sock, char **ip_port) in BIO_accept() argument
292 ret = BIO_accept_ex(sock, &res, 0); in BIO_accept()
396 int BIO_sock_info(int sock, in BIO_sock_info() argument
405 ret = getsockname(sock, BIO_ADDR_sockaddr_noconst(info->addr), in BIO_sock_info()
/openssl/demos/guide/
H A Dquic-client-non-block.c33 int sock = -1; in create_socket_bio() local
58 if (sock == -1) in create_socket_bio()
64 sock = -1; in create_socket_bio()
71 sock = -1; in create_socket_bio()
78 if (sock != -1) { in create_socket_bio()
90 if (sock == -1) in create_socket_bio()
96 BIO_closesocket(sock); in create_socket_bio()
120 sock = SSL_get_fd(ssl); in wait_for_activity()
130 FD_SET(sock, &wfds); in wait_for_activity()
132 FD_SET(sock, &rfds); in wait_for_activity()
[all …]
H A Dtls-client-non-block.c32 int sock = -1; in create_socket_bio() local
57 if (sock == -1) in create_socket_bio()
62 BIO_closesocket(sock); in create_socket_bio()
63 sock = -1; in create_socket_bio()
69 sock = -1; in create_socket_bio()
81 if (sock == -1) in create_socket_bio()
87 BIO_closesocket(sock); in create_socket_bio()
106 int width, sock; in wait_for_activity() local
109 sock = SSL_get_fd(ssl); in wait_for_activity()
112 FD_SET(sock, &fds); in wait_for_activity()
[all …]
H A Dquic-client-block.c32 int sock = -1; in create_socket_bio() local
57 if (sock == -1) in create_socket_bio()
62 BIO_closesocket(sock); in create_socket_bio()
63 sock = -1; in create_socket_bio()
69 BIO_closesocket(sock); in create_socket_bio()
70 sock = -1; in create_socket_bio()
77 if (sock != -1) { in create_socket_bio()
80 BIO_closesocket(sock); in create_socket_bio()
89 if (sock == -1) in create_socket_bio()
95 BIO_closesocket(sock); in create_socket_bio()
[all …]
H A Dquic-multi-stream.c32 int sock = -1; in create_socket_bio() local
57 if (sock == -1) in create_socket_bio()
62 BIO_closesocket(sock); in create_socket_bio()
63 sock = -1; in create_socket_bio()
69 BIO_closesocket(sock); in create_socket_bio()
70 sock = -1; in create_socket_bio()
77 if (sock != -1) { in create_socket_bio()
80 BIO_closesocket(sock); in create_socket_bio()
89 if (sock == -1) in create_socket_bio()
95 BIO_closesocket(sock); in create_socket_bio()
[all …]
H A Dquic-hq-interop.c105 int sock = -1; in create_socket_bio() local
130 if (sock == -1) in create_socket_bio()
136 sock = -1; in create_socket_bio()
147 sock = -1; in create_socket_bio()
154 if (sock != -1) { in create_socket_bio()
166 if (sock == -1) in create_socket_bio()
172 BIO_closesocket(sock); in create_socket_bio()
219 sock = SSL_get_fd(ssl); in wait_for_activity()
229 FD_SET(sock, &wfds); in wait_for_activity()
231 FD_SET(sock, &rfds); in wait_for_activity()
[all …]
H A Dtls-client-block.c31 int sock = -1; in create_socket_bio() local
55 sock = BIO_socket(BIO_ADDRINFO_family(ai), SOCK_STREAM, 0, 0); in create_socket_bio()
56 if (sock == -1) in create_socket_bio()
60 if (!BIO_connect(sock, BIO_ADDRINFO_address(ai), BIO_SOCK_NODELAY)) { in create_socket_bio()
61 BIO_closesocket(sock); in create_socket_bio()
62 sock = -1; in create_socket_bio()
74 if (sock == -1) in create_socket_bio()
80 BIO_closesocket(sock); in create_socket_bio()
91 BIO_set_fd(bio, sock, BIO_CLOSE); in create_socket_bio()
/openssl/apps/lib/
H A Ds_socket.c130 if (*sock == INVALID_SOCKET) { in init_client()
140 BIO_closesocket(*sock); in init_client()
141 *sock = INVALID_SOCKET; in init_client()
170 BIO_closesocket(*sock); in init_client()
171 *sock = INVALID_SOCKET; in init_client()
183 if (*sock == INVALID_SOCKET) { in init_client()
293 int sock; in do_server() local
408 } while (sock < 0 && BIO_sock_should_retry(sock)); in do_server()
409 if (sock < 0) { in do_server()
414 BIO_set_tcp_ndelay(sock, 1); in do_server()
[all …]
/openssl/util/
H A Dquicserver.c33 int sock; in wait_for_activity() local
37 BIO_get_fd(bio, &sock); in wait_for_activity()
42 openssl_fdset(sock, readfdsp); in wait_for_activity()
48 openssl_fdset(sock, writefdsp); in wait_for_activity()
59 width = sock + 1; in wait_for_activity()
70 int sock = -1; in create_dgram_bio() local
92 if (sock == -1) in create_dgram_bio()
97 BIO_closesocket(sock); in create_dgram_bio()
103 BIO_closesocket(sock); in create_dgram_bio()
120 BIO_closesocket(sock); in create_dgram_bio()
[all …]
/openssl/doc/man3/
H A DBIO_connect.pod13 int BIO_bind(int sock, const BIO_ADDR *addr, int options);
14 int BIO_connect(int sock, const BIO_ADDR *addr, int options);
15 int BIO_listen(int sock, const BIO_ADDR *addr, int options);
17 int BIO_closesocket(int sock);
29 BIO_connect() connects B<sock> to the address and service given by
34 BIO_listen() has B<sock> start listening on the address and service
46 BIO_closesocket() closes B<sock>.
90 BIO_connect(sock, addr, BIO_SOCK_KEEPALIVE | BIO_SOCK_NONBLOCK);
H A DBIO_s_socket.pod13 BIO *BIO_new_socket(int sock, int close_flag);
26 BIO_new_socket() returns a socket BIO using B<sock> and B<close_flag>.
/openssl/util/perl/TLSProxy/
H A DProxy.pm203 my $sock = $IP_factory->(PeerAddr => $servaddr,
206 if (!defined($sock)) {
212 $self->{server_sock} = $sock;
245 if (my $sock = $IP_factory->(@proxyargs)) {
246 $self->{proxy_sock} = $sock;
247 $self->{proxy_port} = $sock->sockport();
248 $self->{proxy_addr} = $sock->sockhost();
/openssl/doc/man7/
H A Dossl-guide-quic-client-block.pod114 if (sock == -1)
118 if (!BIO_connect(sock, BIO_ADDRINFO_address(ai), 0)) {
119 BIO_closesocket(sock);
120 sock = -1;
125 if (!BIO_socket_nbio(sock, 1)) {
126 BIO_closesocket(sock);
127 sock = -1;
134 if (sock != -1) {
137 BIO_closesocket(sock);
171 BIO_closesocket(sock);
[all …]
H A Dossl-guide-tls-client-block.pod137 int sock;
139 sock = socket(AF_INET, SOCK_STREAM, 0);
140 if (sock == -1)
152 close(sock);
163 close(sock);
170 int sock = -1;
194 if (sock == -1)
199 BIO_closesocket(sock);
200 sock = -1;
230 BIO_closesocket(sock);
[all …]
H A Dossl-guide-tls-client-non-block.pod55 if (!BIO_socket_nbio(sock, 1)) {
56 sock = -1;
92 int width, sock;
95 sock = SSL_get_fd(ssl);
98 FD_SET(sock, &fds);
99 width = sock + 1;
/openssl/Configurations/
H A D50-cppbuilder.conf43 push @ex_libs, "ws2_32.lib" unless $disabled{sock};
/openssl/apps/
H A Ds_client.c2177 BIO_closesocket(sock); in s_client_main()
2187 if (!BIO_socket_nbio(sock, 1)) { in s_client_main()
2206 sbio = BIO_new_dgram(sock, BIO_NOCLOSE); in s_client_main()
2211 BIO_closesocket(sock); in s_client_main()
2219 BIO_closesocket(sock); in s_client_main()
2258 sbio = BIO_new_dgram(sock, BIO_NOCLOSE); in s_client_main()
2265 sbio = BIO_new_socket(sock, BIO_NOCLOSE); in s_client_main()
2270 BIO_closesocket(sock); in s_client_main()
3311 openssl_fdset(sock, &readfds); in s_client_main()
3518 int sock; in print_stuff() local
[all …]
/openssl/test/helpers/
H A Dssltestlib.h33 int wait_until_sock_readable(int sock);
H A Dssltestlib.c994 int wait_until_sock_readable(int sock) in wait_until_sock_readable() argument
1000 width = sock + 1; in wait_until_sock_readable()
1002 openssl_fdset(sock, &readfds); in wait_until_sock_readable()
1008 return FD_ISSET(sock, &readfds); in wait_until_sock_readable()
1146 int wait_until_sock_readable(int sock) in wait_until_sock_readable() argument
/openssl/engines/
H A De_afalg.c852 int sock; in IMPLEMENT_DYNAMIC_BIND_FN() local
881 sock = socket(AF_ALG, SOCK_SEQPACKET, 0); in IMPLEMENT_DYNAMIC_BIND_FN()
882 if (sock == -1) { in IMPLEMENT_DYNAMIC_BIND_FN()
886 close(sock); in IMPLEMENT_DYNAMIC_BIND_FN()
/openssl/test/ssl-tests/
H A D16-dtls-certstatus.cnf.in96 push @tests, @tests_sctp unless disabled("sctp") || disabled("sock");
/openssl/.github/workflows/
H A Drun-checker-ci.yml32 no-sock,
/openssl/include/openssl/
H A Dbio.h.in848 int BIO_sock_error(int sock);
855 int BIO_set_tcp_ndelay(int sock, int turn_on);
861 OSSL_DEPRECATEDIN_1_1_0 int BIO_accept(int sock, char **ip_port);
870 int BIO_sock_info(int sock,
881 int BIO_connect(int sock, const BIO_ADDR *addr, int options);
882 int BIO_bind(int sock, const BIO_ADDR *addr, int options);
883 int BIO_listen(int sock, const BIO_ADDR *addr, int options);
885 int BIO_closesocket(int sock);
887 BIO *BIO_new_socket(int sock, int close_flag);
/openssl/apps/include/
H A Ds_apps.h37 int init_client(int *sock, const char *host, const char *port,

Completed in 49 milliseconds

12