From: Juliusz Sosinowicz Date: Thu, 26 Aug 2021 09:25:34 +0000 (+0200) Subject: wolfSSL: Implement tls_connection_get_own_cert_used() X-Git-Tag: hostap_2_11~2038 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d9c716400105e57b2957db59d644eb364bf68e5f;p=thirdparty%2Fhostap.git wolfSSL: Implement tls_connection_get_own_cert_used() This is needed for EAP-TEAP client implementation. This needs wolfSSL 5.0.0 or newer. Signed-off-by: Juliusz Sosinowicz --- diff --git a/src/crypto/tls_wolfssl.c b/src/crypto/tls_wolfssl.c index e483b8027..56f5e4669 100644 --- a/src/crypto/tls_wolfssl.c +++ b/src/crypto/tls_wolfssl.c @@ -2146,3 +2146,11 @@ tls_connection_get_success_data(struct tls_connection *conn) return NULL; return wolfSSL_SESSION_get_ex_data(sess, tls_ex_idx_session); } + + +bool tls_connection_get_own_cert_used(struct tls_connection *conn) +{ + if (conn) + return wolfSSL_get_certificate(conn->ssl) != NULL; + return false; +}