libtls: Add getters for TLS handshake authentication details

This commit is contained in:
Martin Willi
2015-03-03 14:08:00 +01:00
parent aba5b76ce1
commit 666c552381
7 changed files with 49 additions and 0 deletions
+7
View File
@@ -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,
},
},