Added a getter for the tls_socket file descriptor

This commit is contained in:
Martin Willi
2011-12-24 12:42:25 +01:00
parent e86b685da5
commit 6b01216422
2 changed files with 14 additions and 0 deletions
+7
View File
@@ -175,6 +175,12 @@ METHOD(tls_socket_t, write_, bool,
return FALSE;
}
METHOD(tls_socket_t, get_fd, int,
private_tls_socket_t *this)
{
return this->fd;
}
METHOD(tls_socket_t, destroy, void,
private_tls_socket_t *this)
{
@@ -195,6 +201,7 @@ tls_socket_t *tls_socket_create(bool is_server, identification_t *server,
.public = {
.read = _read_,
.write = _write_,
.get_fd = _get_fd,
.destroy = _destroy,
},
.app = {