]> git.ipfire.org Git - thirdparty/hostap.git/blobdiff - src/crypto/tls.h
OpenSSL: Add tls_connection_get_cipher_suite()
[thirdparty/hostap.git] / src / crypto / tls.h
index e199187e82a513eb62f3a09dca8e245303f62ee7..3e7e9c750c0a5ef9674e2d3b2f9447b6b2e0d0b8 100644 (file)
@@ -659,4 +659,11 @@ void tls_connection_remove_session(struct tls_connection *conn);
  */
 int tls_get_tls_unique(struct tls_connection *conn, u8 *buf, size_t max_len);
 
+/**
+ * tls_connection_get_cipher_suite - Get current TLS cipher suite
+ * @conn: Connection context data from tls_connection_init()
+ * Returns: TLS cipher suite of the current connection or 0 on error
+ */
+u16 tls_connection_get_cipher_suite(struct tls_connection *conn);
+
 #endif /* TLS_H */