aboutsummaryrefslogtreecommitdiffstats
path: root/src/libtls/tls_socket.c
diff options
context:
space:
mode:
authorMartin Willi <martin@revosec.ch>2013-02-28 11:44:33 +0100
committerMartin Willi <martin@revosec.ch>2013-02-28 16:46:08 +0100
commit257c80cb5b9fb8225043052f51010abf8c7bdf75 (patch)
treec2974775f2c4b57baff159e750789b702c3c8f2f /src/libtls/tls_socket.c
parent2de481e32b95c558b96237c25a15bf2baa375e93 (diff)
downloadstrongswan-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.c')
-rw-r--r--src/libtls/tls_socket.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/libtls/tls_socket.c b/src/libtls/tls_socket.c
index 52e2cd629..58b511809 100644
--- a/src/libtls/tls_socket.c
+++ b/src/libtls/tls_socket.c
@@ -378,6 +378,18 @@ METHOD(tls_socket_t, get_fd, int,
return this->fd;
}
+METHOD(tls_socket_t, get_server_id, identification_t*,
+ private_tls_socket_t *this)
+{
+ return this->tls->get_server_id(this->tls);
+}
+
+METHOD(tls_socket_t, get_peer_id, identification_t*,
+ private_tls_socket_t *this)
+{
+ return this->tls->get_peer_id(this->tls);
+}
+
METHOD(tls_socket_t, destroy, void,
private_tls_socket_t *this)
{
@@ -403,6 +415,8 @@ tls_socket_t *tls_socket_create(bool is_server, identification_t *server,
.write = _write_,
.splice = _splice,
.get_fd = _get_fd,
+ .get_server_id = _get_server_id,
+ .get_peer_id = _get_peer_id,
.destroy = _destroy,
},
.app = {