Searched refs:afd (Results 1 – 2 of 2) sorted by relevance
/openssl/test/ |
H A D | bio_tfo_test.c | 208 int afd = -1; /* accept socket */ in test_fd_tfo() local 268 if (!TEST_int_ge(afd = BIO_socket(ai->ai_family, ai->ai_socktype, ai->ai_protocol, 0), 0) in test_fd_tfo() 269 || !TEST_true(BIO_listen(afd, baddr, server_flags))) in test_fd_tfo() 274 if (!TEST_int_ge(getsockname(afd, (struct sockaddr *)&sstorage, &slen), 0)) in test_fd_tfo() 300 sfd = BIO_accept_ex(afd, NULL, 0); in test_fd_tfo() 329 if (!TEST_int_ge(BIO_socket_wait(afd, 1, time(NULL) + 2), 0)) { in test_fd_tfo() 336 sfd = BIO_accept_ex(afd, NULL, 0); in test_fd_tfo() 371 if (!TEST_int_ge(BIO_socket_wait(afd, 1, time(NULL) + 2), 0)) { in test_fd_tfo() 378 sfd = BIO_accept_ex(afd, NULL, 0); in test_fd_tfo() 408 BIO_closesocket(afd); in test_fd_tfo()
|
/openssl/test/helpers/ |
H A D | ssltestlib.c | 1017 int afd = -1, cfd = -1, sfd = -1; in create_test_sockets() local 1023 afd = BIO_socket(AF_INET, socktype, in create_test_sockets() 1025 if (afd == INVALID_SOCKET) in create_test_sockets() 1028 if (bind(afd, (struct sockaddr*)&sin, sizeof(sin)) < 0) in create_test_sockets() 1039 if (socktype == SOCK_STREAM && listen(afd, 1) < 0) in create_test_sockets() 1047 if (!BIO_socket_nbio(afd, 1)) in create_test_sockets() 1056 sfd = afd; in create_test_sockets() 1057 afd = -1; in create_test_sockets() 1061 sfd = accept(afd, NULL, 0); in create_test_sockets() 1084 if (afd != -1) in create_test_sockets() [all …]
|
Completed in 11 milliseconds