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
@@ -415,6 +415,12 @@ METHOD(tls_t, get_eap_msk, chunk_t,
return this->crypto->get_eap_msk(this->crypto);
}
METHOD(tls_t, get_auth, auth_cfg_t*,
private_tls_t *this)
{
return this->handshake->get_auth(this->handshake);
}
METHOD(tls_t, destroy, void,
private_tls_t *this)
{
@@ -465,6 +471,7 @@ tls_t *tls_create(bool is_server, identification_t *server,
.get_purpose = _get_purpose,
.is_complete = _is_complete,
.get_eap_msk = _get_eap_msk,
.get_auth = _get_auth,
.destroy = _destroy,
},
.is_server = is_server,