Commit a77de8c8 authored by Paul Bakker's avatar Paul Bakker
Browse files

Prevent warnings in ssl_check_cert_usage() if keyUsage checks are off

parent 59366213
...@@ -4769,6 +4769,12 @@ int ssl_check_cert_usage( const x509_crt *cert, ...@@ -4769,6 +4769,12 @@ int ssl_check_cert_usage( const x509_crt *cert,
const ssl_ciphersuite_t *ciphersuite, const ssl_ciphersuite_t *ciphersuite,
int cert_endpoint ) int cert_endpoint )
{ {
#if !defined(POLARSSL_X509_CHECK_KEY_USAGE)
((void) cert);
((void) ciphersuite);
((void) cert_endpoint);
#endif
#if defined(POLARSSL_X509_CHECK_KEY_USAGE) #if defined(POLARSSL_X509_CHECK_KEY_USAGE)
int usage = 0; int usage = 0;
#endif #endif
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment