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:
+4
-4
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user