libtls: Add getters for TLS handshake authentication details
[strongswan.git] / src / libtls / tls_handshake.h
index 7fa660c..7edb49b 100644 (file)
@@ -98,6 +98,13 @@ struct tls_handshake_t {
        identification_t* (*get_server_id)(tls_handshake_t *this);
 
        /**
+        * Get the peers authentication information after completing the handshake.
+        *
+        * @return                      authentication data, internal data
+        */
+       auth_cfg_t* (*get_auth)(tls_handshake_t *this);
+
+       /**
         * Destroy a tls_handshake_t.
         */
        void (*destroy)(tls_handshake_t *this);