From bd1ee5bdc43979824e883f0c11d509700d8e9d4c Mon Sep 17 00:00:00 2001 From: Andreas Steffen Date: Sun, 20 Jan 2013 23:36:31 +0100 Subject: make AR identities available to IMVs via IF-IMV 1.4 draft --- src/libtls/tls.h | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'src/libtls/tls.h') diff --git a/src/libtls/tls.h b/src/libtls/tls.h index 6b4876f73..c8186b829 100644 --- a/src/libtls/tls.h +++ b/src/libtls/tls.h @@ -192,6 +192,20 @@ struct tls_t { */ bool (*is_server)(tls_t *this); + /** + * Return the server identity + * + * @return Server identity + */ + identification_t* (*get_server_id)(tls_t *this); + + /** + * Return the peer identity + * + * @return Peer identity + */ + identification_t* (*get_peer_id)(tls_t *this); + /** * Get the negotiated TLS/SSL version. * -- cgit v1.2.3