/openssl/crypto/bio/ |
H A D | bio_sock2.c | 44 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 D | bio_sock.c | 103 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 D | quic-client-non-block.c | 33 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 D | tls-client-non-block.c | 32 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 D | quic-client-block.c | 32 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 D | quic-multi-stream.c | 32 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 D | quic-hq-interop.c | 105 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 D | tls-client-block.c | 31 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 D | s_socket.c | 130 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 D | quicserver.c | 33 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 D | BIO_connect.pod | 13 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 D | BIO_s_socket.pod | 13 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 D | Proxy.pm | 203 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 D | ossl-guide-quic-client-block.pod | 114 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 D | ossl-guide-tls-client-block.pod | 137 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 D | ossl-guide-tls-client-non-block.pod | 55 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 D | 50-cppbuilder.conf | 43 push @ex_libs, "ws2_32.lib" unless $disabled{sock};
|
/openssl/apps/ |
H A D | s_client.c | 2177 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 D | ssltestlib.h | 33 int wait_until_sock_readable(int sock);
|
H A D | ssltestlib.c | 994 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 D | e_afalg.c | 852 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 D | 16-dtls-certstatus.cnf.in | 96 push @tests, @tests_sctp unless disabled("sctp") || disabled("sock");
|
/openssl/.github/workflows/ |
H A D | run-checker-ci.yml | 32 no-sock,
|
/openssl/include/openssl/ |
H A D | bio.h.in | 848 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 D | s_apps.h | 37 int init_client(int *sock, const char *host, const char *port,
|