From: Nikos Mavrogiannopoulos Date: Fri, 10 Feb 2012 15:09:21 +0000 (+0100) Subject: disabled dead code when PKCS11 is not there X-Git-Tag: gnutls_3_0_13~68 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=aecc53b83c682214e523b01d7b35555dd207bda6;p=thirdparty%2Fgnutls.git disabled dead code when PKCS11 is not there --- diff --git a/lib/gnutls_x509.c b/lib/gnutls_x509.c index d270650f36..56b3e73919 100644 --- a/lib/gnutls_x509.c +++ b/lib/gnutls_x509.c @@ -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 */