From: Juliusz Sosinowicz Date: Thu, 26 Aug 2021 09:25:34 +0000 (+0200) Subject: wolfSSL: Implement tls_connection_get_cipher_suite() X-Git-Tag: hostap_2_11~2036 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a419fef367f08c728c404d06c2edba0eec349373;p=thirdparty%2Fhostap.git wolfSSL: Implement tls_connection_get_cipher_suite() This is needed for EAP-TEAP. Signed-off-by: Juliusz Sosinowicz --- diff --git a/src/crypto/tls_wolfssl.c b/src/crypto/tls_wolfssl.c index 0e62aaae4..395104f04 100644 --- a/src/crypto/tls_wolfssl.c +++ b/src/crypto/tls_wolfssl.c @@ -2107,6 +2107,12 @@ void tls_connection_remove_session(struct tls_connection *conn) } +u16 tls_connection_get_cipher_suite(struct tls_connection *conn) +{ + return (u16) wolfSSL_get_current_cipher_suite(conn->ssl); +} + + const char * tls_connection_get_peer_subject(struct tls_connection *conn) { if (conn)