libtls: Add getters for TLS handshake authentication details
This commit is contained in:
@@ -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,
|
||||
},
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user