From d6ad8e949b3dce716601ea269e095db1b617533a Mon Sep 17 00:00:00 2001
From: Paul Bakker
Date: Wed, 9 Apr 2014 17:24:14 +0200
Subject: [PATCH] Make ssl_check_cert_usage() dependent on
POLARSSL_X509_CRT_PARSE_C
---
library/ssl_tls.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/library/ssl_tls.c b/library/ssl_tls.c
index 6e01494b6..857518126 100644
--- a/library/ssl_tls.c
+++ b/library/ssl_tls.c
@@ -4765,6 +4765,7 @@ int ssl_curve_is_acceptable( const ssl_context *ssl, ecp_group_id grp_id )
}
#endif
+#if defined(POLARSSL_X509_CRT_PARSE_C)
int ssl_check_cert_usage( const x509_crt *cert,
const ssl_ciphersuite_t *ciphersuite,
int cert_endpoint )
@@ -4821,3 +4822,4 @@ int ssl_check_cert_usage( const x509_crt *cert,
return( 0 );
}
+#endif /* POLARSSL_X509_CRT_PARSE_C */