diff options
author | Martin Willi <martin@revosec.ch> | 2011-12-24 11:02:57 +0100 |
---|---|---|
committer | Martin Willi <martin@revosec.ch> | 2011-12-24 12:42:25 +0100 |
commit | 6b0121642282d3a2006e07aeb26363fc491db5d3 (patch) | |
tree | 2d02f93f5947fc444329865a78d8c54e9bb5c3f3 /src/libtls/tls_socket.h | |
parent | e86b685da500f58caf1a59dceee0a2c91be275d6 (diff) | |
download | strongswan-6b0121642282d3a2006e07aeb26363fc491db5d3.tar.bz2 strongswan-6b0121642282d3a2006e07aeb26363fc491db5d3.tar.xz |
Added a getter for the tls_socket file descriptor
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); |