diff options
author | Martin Willi <martin@revosec.ch> | 2013-02-28 11:44:33 +0100 |
---|---|---|
committer | Martin Willi <martin@revosec.ch> | 2013-02-28 16:46:08 +0100 |
commit | 257c80cb5b9fb8225043052f51010abf8c7bdf75 (patch) | |
tree | c2974775f2c4b57baff159e750789b702c3c8f2f /src/libtls/tls_socket.h | |
parent | 2de481e32b95c558b96237c25a15bf2baa375e93 (diff) | |
download | strongswan-257c80cb5b9fb8225043052f51010abf8c7bdf75.tar.bz2 strongswan-257c80cb5b9fb8225043052f51010abf8c7bdf75.tar.xz |
Wrap tls_t.get_{server,peer}_id methods in tls_socket_t
Diffstat (limited to 'src/libtls/tls_socket.h')
-rw-r--r-- | src/libtls/tls_socket.h | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/src/libtls/tls_socket.h b/src/libtls/tls_socket.h index 4ddddc19e..75130a4d3 100644 --- a/src/libtls/tls_socket.h +++ b/src/libtls/tls_socket.h @@ -77,6 +77,20 @@ struct tls_socket_t { int (*get_fd)(tls_socket_t *this); /** + * Return the server identity. + * + * @return server identity + */ + identification_t* (*get_server_id)(tls_socket_t *this); + + /** + * Return the peer identity. + * + * @return peer identity + */ + identification_t* (*get_peer_id)(tls_socket_t *this); + + /** * Destroy a tls_socket_t. */ void (*destroy)(tls_socket_t *this); |