Home
last modified time | relevance | path

Searched refs:fd (Results 1 – 25 of 43) sorted by relevance

12

/openssl-master/include/internal/
A Dktls.h50 static ossl_inline int ktls_enable(int fd) in ktls_enable() argument
68 return setsockopt(fd, IPPROTO_TCP, TCP_TXTLS_ENABLE, in ktls_start()
71 return setsockopt(fd, IPPROTO_TCP, TCP_RXTLS_ENABLE, tls_en, in ktls_start()
108 return sendmsg(fd, &msg, 0); in ktls_send_ctrl_message()
152 ret = recvmsg(fd, &msg, 0); in ktls_read_record()
194 ret = sendfile(fd, s, off, size, NULL, &sbytes, flags); in ktls_sendfile()
271 static ossl_inline int ktls_enable(int fd) in ktls_enable() argument
287 return setsockopt(fd, SOL_TLS, is_tx ? TLS_TX : TLS_RX, in ktls_start()
325 return sendmsg(fd, &msg, 0); in ktls_send_ctrl_message()
334 return sendfile(s, fd, &off, size); in ktls_sendfile()
[all …]
/openssl-master/crypto/async/
A Dasync_wait.c33 curr->cleanup(ctx, curr->key, curr->fd, curr->custom_data); in ASYNC_WAIT_CTX_free()
44 OSSL_ASYNC_FD fd, void *custom_data, in ASYNC_WAIT_CTX_set_wait_fd() argument
56 fdlookup->fd = fd; in ASYNC_WAIT_CTX_set_wait_fd()
67 OSSL_ASYNC_FD *fd, void **custom_data) in ASYNC_WAIT_CTX_get_fd() argument
79 *fd = curr->fd; in ASYNC_WAIT_CTX_get_fd()
88 int ASYNC_WAIT_CTX_get_all_fds(ASYNC_WAIT_CTX *ctx, OSSL_ASYNC_FD *fd, in ASYNC_WAIT_CTX_get_all_fds() argument
101 if (fd != NULL) { in ASYNC_WAIT_CTX_get_all_fds()
102 *fd = curr->fd; in ASYNC_WAIT_CTX_get_all_fds()
103 fd++; in ASYNC_WAIT_CTX_get_all_fds()
127 *delfd = curr->fd; in ASYNC_WAIT_CTX_get_changed_fds()
[all …]
A Dasync_local.h51 OSSL_ASYNC_FD fd; member
/openssl-master/crypto/rand/
A Drand_egd.c115 int mybuffer, ret = -1, i, numbytes, fd; in RAND_query_egd_bytes() local
129 fd = hpns_socket(AF_UNIX, SOCK_STREAM, 0, AF_UNIX_COMPATIBILITY); in RAND_query_egd_bytes()
131 fd = socket(AF_UNIX, SOCK_STREAM, 0); in RAND_query_egd_bytes()
133 if (fd == -1 || (fp = fdopen(fd, "r+")) == NULL) in RAND_query_egd_bytes()
139 if (connect(fd, (struct sockaddr *)&addr, i) == 0) in RAND_query_egd_bytes()
164 close(fd); in RAND_query_egd_bytes()
165 fd = hpns_socket(AF_UNIX, SOCK_STREAM, 0, AF_UNIX_PORTABILITY); in RAND_query_egd_bytes()
166 if (fd == -1) in RAND_query_egd_bytes()
A Drandfile.c210 int fd = open(file, O_WRONLY | O_CREAT | O_BINARY, 0600); in RAND_write_file() local
211 if (fd != -1) in RAND_write_file()
212 out = fdopen(fd, "wb"); in RAND_write_file()
/openssl-master/providers/implementations/rands/seeding/
A Drand_unix.c411 int fd; member
439 int shm_id, fd, r; in wait_random_seeded() local
516 return rd->fd != -1 in check_random_device()
534 return rd->fd; in get_random_device()
538 return rd->fd; in get_random_device()
547 close(rd->fd); in get_random_device()
548 rd->fd = -1; in get_random_device()
551 return rd->fd; in get_random_device()
562 close(rd->fd); in close_random_device()
563 rd->fd = -1; in close_random_device()
[all …]
/openssl-master/doc/man3/
A DSSL_set_fd.pod11 int SSL_set_fd(SSL *ssl, int fd);
12 int SSL_set_rfd(SSL *ssl, int fd);
13 int SSL_set_wfd(SSL *ssl, int fd);
17 SSL_set_fd() sets the file descriptor B<fd> as the input/output facility
18 for the TLS/SSL (encrypted) side of B<ssl>. B<fd> will typically be the
22 interface between the B<ssl> and B<fd>. The BIO and hence the SSL engine
23 inherit the behaviour of B<fd>. If B<fd> is nonblocking, the B<ssl> will
52 passing the socket handle to SSL_set_*fd(). For the time being, this warning can
A DBIO_s_fd.pod13 int BIO_set_fd(BIO *b, int fd, int c);
16 BIO *BIO_new_fd(int fd, int close_flag);
30 such as by using B<lseek(fd, 0, 0)>.
33 such as by using B<lseek(fd, ofs, 0)>.
36 B<lseek(fd, 0, 1)>.
38 BIO_set_fd() sets the file descriptor of BIO B<b> to B<fd> and the close
44 BIO_new_fd() returns a file descriptor BIO using B<fd> and B<close_flag>.
A DASYNC_WAIT_CTX_new.pod26 OSSL_ASYNC_FD fd,
31 OSSL_ASYNC_FD *fd, void **custom_data);
32 int ASYNC_WAIT_CTX_get_all_fds(ASYNC_WAIT_CTX *ctx, OSSL_ASYNC_FD *fd,
66 associated with that job in I<*fd>. The number of file descriptors returned will
68 sufficient memory has been allocated in I<*fd> to receive all the file
69 descriptors. Calling ASYNC_WAIT_CTX_get_all_fds() with a NULL I<fd> value will
74 ever return one fd. If multiple asynchronous engines are being used then more
87 stable fd for the lifetime of the B<ASYNC_WAIT_CTX> in order to reduce the
110 the fd or any other resources. Note: The "cleanup" routine does not get called
111 if the fd is cleared directly via a call to ASYNC_WAIT_CTX_clear_fd().
A DBIO_socket_wait.pod15 int BIO_socket_wait(int fd, int for_read, time_t max_time);
22 BIO_socket_wait() waits on the socket B<fd> for reading if B<for_read> is not 0,
/openssl-master/crypto/bio/
A Dbss_file.c233 int fd = _fileno((FILE *)ptr); in file_ctrl() local
235 _setmode(fd, _O_TEXT); in file_ctrl()
237 _setmode(fd, _O_BINARY); in file_ctrl()
248 int fd = fileno((FILE *)ptr); in file_ctrl()
251 _setmode(fd, _O_TEXT); in file_ctrl()
254 if (fd == STDIN_FILENO || fd == STDOUT_FILENO) { in file_ctrl()
255 if (isatty(fd) <= 0) in file_ctrl()
256 _setmode(fd, _O_BINARY); in file_ctrl()
258 _setmode(fd, _O_BINARY); in file_ctrl()
261 int fd = fileno((FILE *)ptr); in file_ctrl()
[all …]
A Dbio_sock.c173 int BIO_socket_ioctl(int fd, long type, void *arg) in BIO_socket_ioctl() argument
178 i = ioctlsocket(fd, type, (char *)arg); in BIO_socket_ioctl()
204 i = ioctlsocket(fd, type, ARG); in BIO_socket_ioctl()
391 int BIO_socket_wait(int fd, int for_read, time_t max_time) in BIO_socket_wait() argument
397 if (fd < 0 || fd >= FD_SETSIZE) in BIO_socket_wait()
407 openssl_fdset(fd, &confds); in BIO_socket_wait()
410 return select(fd + 1, for_read ? &confds : NULL, in BIO_socket_wait()
A Dbss_fd.c19 BIO *BIO_new_fd(int fd, int close_flag) in BIO_new_fd() argument
80 BIO *BIO_new_fd(int fd, int close_flag) in BIO_new_fd() argument
86 BIO_set_fd(ret, fd, close_flag); in BIO_new_fd()
A Dbss_sock.c58 BIO *BIO_new_socket(int fd, int close_flag) in BIO_new_socket() argument
65 BIO_set_fd(ret, fd, close_flag); in BIO_new_socket()
74 ktls_enable(fd); in BIO_new_socket()
A Dbss_dgram.c144 BIO *BIO_new_dgram(int fd, int close_flag) in BIO_new_dgram() argument
151 BIO_set_fd(ret, fd, close_flag); in BIO_new_dgram()
817 BIO *BIO_new_dgram_sctp(int fd, int close_flag) in BIO_new_dgram_sctp() argument
837 BIO_set_fd(bio, fd, close_flag); in BIO_new_dgram_sctp()
842 setsockopt(fd, IPPROTO_SCTP, SCTP_AUTH_CHUNK, &auth, in BIO_new_dgram_sctp()
852 setsockopt(fd, IPPROTO_SCTP, SCTP_AUTH_CHUNK, &auth, in BIO_new_dgram_sctp()
873 ret = getsockopt(fd, IPPROTO_SCTP, SCTP_LOCAL_AUTH_CHUNKS, authchunks, in BIO_new_dgram_sctp()
907 setsockopt(fd, IPPROTO_SCTP, SCTP_EVENT, &event, in BIO_new_dgram_sctp()
915 ret = getsockopt(fd, IPPROTO_SCTP, SCTP_EVENTS, &event, &sockopt_len); in BIO_new_dgram_sctp()
924 setsockopt(fd, IPPROTO_SCTP, SCTP_EVENTS, &event, in BIO_new_dgram_sctp()
[all …]
/openssl-master/apps/
A Ds_time.c130 int min_version = 0, max_version = 0, ver, buf_len, fd; in s_time_main() local
346 if ((fd = SSL_get_fd(scon)) >= 0) in s_time_main()
347 BIO_closesocket(fd); in s_time_main()
374 if ((fd = SSL_get_fd(scon)) >= 0) in s_time_main()
375 BIO_closesocket(fd); in s_time_main()
460 int fd; in doConnection() local
464 fd = SSL_get_fd(serverCon); in doConnection()
465 if (fd >= 0) in doConnection()
466 (void)setsockopt(fd, SOL_SOCKET, SO_LINGER, (char*)&no_linger, in doConnection()
/openssl-master/include/openssl/
A Dasync.h59 OSSL_ASYNC_FD fd,
64 OSSL_ASYNC_FD *fd, void **custom_data);
65 int ASYNC_WAIT_CTX_get_all_fds(ASYNC_WAIT_CTX *ctx, OSSL_ASYNC_FD *fd,
/openssl-master/test/
A Dasynctest.c256 OSSL_ASYNC_FD fd = OSSL_BAD_ASYNC_FD, delfd = OSSL_BAD_ASYNC_FD; in test_ASYNC_WAIT_CTX_get_all_fds() local
275 || !ASYNC_WAIT_CTX_get_all_fds(waitctx, &fd, &numfds) in test_ASYNC_WAIT_CTX_get_all_fds()
276 || fd != MAGIC_WAIT_FD in test_ASYNC_WAIT_CTX_get_all_fds()
277 || (fd = OSSL_BAD_ASYNC_FD, 0) /* Assign to something else */ in test_ASYNC_WAIT_CTX_get_all_fds()
282 || !ASYNC_WAIT_CTX_get_changed_fds(waitctx, &fd, &numfds, NULL, in test_ASYNC_WAIT_CTX_get_all_fds()
284 || fd != MAGIC_WAIT_FD in test_ASYNC_WAIT_CTX_get_all_fds()
A Ddrbgtest.c334 int fd[2]; in test_drbg_reseed_in_child() local
338 if (!TEST_int_ge(pipe(fd), 0)) in test_drbg_reseed_in_child()
342 close(fd[0]); in test_drbg_reseed_in_child()
343 close(fd[1]); in test_drbg_reseed_in_child()
348 close(fd[1]); in test_drbg_reseed_in_child()
353 && TEST_true(read(fd[0], &random[0], sizeof(random)) in test_drbg_reseed_in_child()
370 close(fd[0]); in test_drbg_reseed_in_child()
377 close(fd[0]); in test_drbg_reseed_in_child()
383 && TEST_true(write(fd[1], random, sizeof(random)) in test_drbg_reseed_in_child()
390 close(fd[1]); in test_drbg_reseed_in_child()
/openssl-master/test/recipes/30-test_evp_pkey_provided/
A DDSA.pub.txt7 13:1c:b2:52:15:fd:9b:d5:40:4a:1a:da:29:4c:92:
17 2c:50:41:f1:7e:c6:81:c4:51:f1:fd:d6:86:f7:69:
36 6c:c5:72:eb:b7:56:f5:6b:60:8f:c2:fd:3f:46:5c:
46 d2:92:5b:29:5c:61:b8:c9:2b:d6:f7:59:fd:d8:70:
A DDSA.priv.txt11 13:1c:b2:52:15:fd:9b:d5:40:4a:1a:da:29:4c:92:
21 2c:50:41:f1:7e:c6:81:c4:51:f1:fd:d6:86:f7:69:
40 6c:c5:72:eb:b7:56:f5:6b:60:8f:c2:fd:3f:46:5c:
50 d2:92:5b:29:5c:61:b8:c9:2b:d6:f7:59:fd:d8:70:
A DED448.pub.txt3 5f:d7:44:9b:59:b4:61:fd:2c:e7:87:ec:61:6a:d4:
A DED25519.priv.txt3 9d:61:b1:9d:ef:fd:5a:60:ba:84:4a:f4:92:ec:2c:
A DED448.priv.txt8 5f:d7:44:9b:59:b4:61:fd:2c:e7:87:ec:61:6a:d4:
/openssl-master/crypto/
A Dmem_sec.c484 int fd; in sh_init() local
487 if ((fd = open("/dev/zero", O_RDWR)) >= 0) { in sh_init()
489 PROT_READ|PROT_WRITE, MAP_PRIVATE, fd, 0); in sh_init()
490 close(fd); in sh_init()

Completed in 47 milliseconds

12