aboutsummaryrefslogtreecommitdiffstats
path: root/src/libtls/tls_server.c
diff options
context:
space:
mode:
authorMartin Willi <martin@revosec.ch>2015-01-29 11:13:42 +0100
committerMartin Willi <martin@revosec.ch>2015-03-03 14:08:00 +0100
commit666c5523818cbfc12ba69778ead929700245daed (patch)
treeb287abf44fdf8fa83cbf4cb034d9f494059307c2 /src/libtls/tls_server.c
parentaba5b76ce170deb486f7a1eb36282b3458545fba (diff)
downloadstrongswan-666c5523818cbfc12ba69778ead929700245daed.tar.bz2
strongswan-666c5523818cbfc12ba69778ead929700245daed.tar.xz
libtls: Add getters for TLS handshake authentication details
Diffstat (limited to 'src/libtls/tls_server.c')
-rw-r--r--src/libtls/tls_server.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/libtls/tls_server.c b/src/libtls/tls_server.c
index a861a267a..b6e706d23 100644
--- a/src/libtls/tls_server.c
+++ b/src/libtls/tls_server.c
@@ -1074,6 +1074,12 @@ METHOD(tls_handshake_t, get_server_id, identification_t*,
return this->server;
}
+METHOD(tls_handshake_t, get_auth, auth_cfg_t*,
+ private_tls_server_t *this)
+{
+ return this->peer_auth;
+}
+
METHOD(tls_handshake_t, destroy, void,
private_tls_server_t *this)
{
@@ -1108,6 +1114,7 @@ tls_server_t *tls_server_create(tls_t *tls,
.finished = _finished,
.get_peer_id = _get_peer_id,
.get_server_id = _get_server_id,
+ .get_auth = _get_auth,
.destroy = _destroy,
},
},