[gnutls-devel] [PATCH] build: condition pkcs11 block

Alon Bar-Lev alon.barlev at gmail.com
Sun Aug 24 20:26:19 CEST 2014


Signed-off-by: Alon Bar-Lev <alon.barlev at gmail.com>
---
 lib/gnutls_privkey.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/lib/gnutls_privkey.c b/lib/gnutls_privkey.c
index 24ed6f2..647777e 100644
--- a/lib/gnutls_privkey.c
+++ b/lib/gnutls_privkey.c
@@ -198,6 +198,7 @@ _gnutls_privkey_get_mpis(gnutls_privkey_t key, gnutls_pk_params_st * params)
 	case GNUTLS_PRIVKEY_X509:
 		ret = _gnutls_pk_params_copy(params, &key->key.x509->params);
 		break;
+#ifdef ENABLE_PKCS11
 	case GNUTLS_PRIVKEY_PKCS11: {
 		gnutls_pubkey_t pubkey;
 
@@ -210,6 +211,7 @@ _gnutls_privkey_get_mpis(gnutls_privkey_t key, gnutls_pk_params_st * params)
 
 		break;
 		}
+#endif
 	default:
 		gnutls_assert();
 		return GNUTLS_E_INVALID_REQUEST;
-- 
1.8.5.5




More information about the Gnutls-devel mailing list