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 <juliusz@wolfssl.com>
This commit is contained in:
parent
d677b9dc65
commit
d9c7164001
1 changed files with 8 additions and 0 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue