[gnutls-devel] [PATCH] Fix unused variable warning without PKCS#11 support.

Hani Benhabiles kroosec at gmail.com
Tue May 27 01:17:16 CEST 2014


Signed-off-by: Hani Benhabiles <hani at linux.com>
---
 lib/x509/verify-high.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/x509/verify-high.c b/lib/x509/verify-high.c
index 9bae145..dd2e2b4 100644
--- a/lib/x509/verify-high.c
+++ b/lib/x509/verify-high.c
@@ -677,9 +677,9 @@ int gnutls_x509_trust_list_get_issuer(gnutls_x509_trust_list_t list,
 				      gnutls_x509_crt_t * issuer,
 				      unsigned int flags)
 {
+#ifdef ENABLE_PKCS11
 	int ret;
 
-#ifdef ENABLE_PKCS11
 	if (list->pkcs11_token) {
 		gnutls_datum_t der = {NULL, 0};
 		/* use the token for verification */
-- 
1.8.3.2




More information about the Gnutls-devel mailing list