aboutsummaryrefslogtreecommitdiffstats
path: root/src/libtls/tls_handshake.h
diff options
context:
space:
mode:
authorMartin Willi <martin@revosec.ch>2013-03-07 14:10:50 +0100
committerMartin Willi <martin@revosec.ch>2013-03-07 14:10:50 +0100
commit7d70a14779b2dc897bc46559e6475a9bd01b2be6 (patch)
tree746bdedefd60fae4e6b010e5415919cff4140e32 /src/libtls/tls_handshake.h
parent9d9042d6d95b0ecb292d77e7d8350fcd28e1aa27 (diff)
parent1db6bf2f3f8fe0240a63dbd7c79323140daa622e (diff)
downloadstrongswan-7d70a14779b2dc897bc46559e6475a9bd01b2be6.tar.bz2
strongswan-7d70a14779b2dc897bc46559e6475a9bd01b2be6.tar.xz
Merge branch 'pt-tls'
Diffstat (limited to 'src/libtls/tls_handshake.h')
-rw-r--r--src/libtls/tls_handshake.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/libtls/tls_handshake.h b/src/libtls/tls_handshake.h
index bea0024eb..7fa660c58 100644
--- a/src/libtls/tls_handshake.h
+++ b/src/libtls/tls_handshake.h
@@ -84,6 +84,20 @@ struct tls_handshake_t {
bool (*finished)(tls_handshake_t *this);
/**
+ * Get the peer identity authenticated/to authenticate during handshake.
+ *
+ * @return peer identity
+ */
+ identification_t* (*get_peer_id)(tls_handshake_t *this);
+
+ /**
+ * Get the server identity authenticated/to authenticate during handshake.
+ *
+ * @return server identity
+ */
+ identification_t* (*get_server_id)(tls_handshake_t *this);
+
+ /**
* Destroy a tls_handshake_t.
*/
void (*destroy)(tls_handshake_t *this);