Delegate tls_t.get_{peer,server}_id to handshake layer

This allows to get updated peer identities if the peer can't authenticate,
or does when it is optional.
This commit is contained in:
Martin Willi
2013-02-28 16:46:08 +01:00
parent 2ae0c9e618
commit 2de481e32b
7 changed files with 78 additions and 29 deletions
+4 -4
View File
@@ -193,16 +193,16 @@ struct tls_t {
bool (*is_server)(tls_t *this);
/**
* Return the server identity
* Return the server identity.
*
* @return Server identity
* @return server identity
*/
identification_t* (*get_server_id)(tls_t *this);
/**
* Return the peer identity
* Return the peer identity.
*
* @return Peer identity
* @return peer identity
*/
identification_t* (*get_peer_id)(tls_t *this);