mirror of
https://github.com/yuzu-emu/mbedtls.git
synced 2025-02-26 10:36:59 +00:00
Guard mbedtls_ssl_get_peer_cert() by new compile-time option
This commit is contained in:
parent
8b6d2cd5af
commit
bfab9dfea1
|
@ -8967,7 +8967,11 @@ const mbedtls_x509_crt *mbedtls_ssl_get_peer_cert( const mbedtls_ssl_context *ss
|
||||||
if( ssl == NULL || ssl->session == NULL )
|
if( ssl == NULL || ssl->session == NULL )
|
||||||
return( NULL );
|
return( NULL );
|
||||||
|
|
||||||
|
#if defined(MBEDTLS_SSL_KEEP_PEER_CERTIFICATE)
|
||||||
return( ssl->session->peer_cert );
|
return( ssl->session->peer_cert );
|
||||||
|
#else
|
||||||
|
return( NULL );
|
||||||
|
#endif /* MBEDTLS_SSL_KEEP_PEER_CERTIFICATE */
|
||||||
}
|
}
|
||||||
#endif /* MBEDTLS_X509_CRT_PARSE_C */
|
#endif /* MBEDTLS_X509_CRT_PARSE_C */
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue