Wrap tls_t.get_{server,peer}_id methods in tls_socket_t

This commit is contained in:
Martin Willi
2013-02-28 16:46:08 +01:00
parent 2de481e32b
commit 257c80cb5b
2 changed files with 28 additions and 0 deletions
+14
View File
@@ -76,6 +76,20 @@ struct tls_socket_t {
*/
int (*get_fd)(tls_socket_t *this);
/**
* Return the server identity.
*
* @return server identity
*/
identification_t* (*get_server_id)(tls_socket_t *this);
/**
* Return the peer identity.
*
* @return peer identity
*/
identification_t* (*get_peer_id)(tls_socket_t *this);
/**
* Destroy a tls_socket_t.
*/