Delegate tls_t.get_{peer,server}_id to handshake layer
[strongswan.git] / src / libtls / tls_handshake.h
index bea0024..7fa660c 100644 (file)
@@ -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);