]> git.ipfire.org Git - thirdparty/gnutls.git/commitdiff
disabled dead code when PKCS11 is not there
authorNikos Mavrogiannopoulos <nmav@gnutls.org>
Fri, 10 Feb 2012 15:09:21 +0000 (16:09 +0100)
committerNikos Mavrogiannopoulos <nmav@gnutls.org>
Fri, 10 Feb 2012 15:09:21 +0000 (16:09 +0100)
lib/gnutls_x509.c

index d270650f36e8e521315933998086ccf2c7379887..56b3e739194d2193d0b3b72261a07de1ab4f978f 100644 (file)
@@ -563,6 +563,7 @@ read_key_mem (gnutls_certificate_credentials_t res,
   return 0;
 }
 
+#ifdef ENABLE_PKCS11
 /* Reads a private key from a token.
  */
 static int
@@ -770,6 +771,7 @@ cleanup:
   gnutls_free (ccert);
   return ret;
 }
+#endif
 
 /* Reads a certificate file
  */