diff options
Diffstat (limited to 'src/libtls/tls_socket.h')
-rw-r--r-- | src/libtls/tls_socket.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/libtls/tls_socket.h b/src/libtls/tls_socket.h index ac714a385..413380716 100644 --- a/src/libtls/tls_socket.h +++ b/src/libtls/tls_socket.h @@ -55,6 +55,13 @@ struct tls_socket_t { bool (*write)(tls_socket_t *this, chunk_t data); /** + * Get the underlying file descriptor passed to the constructor. + * + * @return file descriptor + */ + int (*get_fd)(tls_socket_t *this); + + /** * Destroy a tls_socket_t. */ void (*destroy)(tls_socket_t *this); |