From d9c716400105e57b2957db59d644eb364bf68e5f Mon Sep 17 00:00:00 2001 From: Juliusz Sosinowicz Date: Thu, 26 Aug 2021 11:25:34 +0200 Subject: [PATCH] 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 --- src/crypto/tls_wolfssl.c | 8 ++++++++ 1 file changed, 8 insertions(+) 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; +} -- 2.47.2