Source: Internal

Info: This patch fixes the issue of pkcs11_common(NULL) being called
when PKCS11 is not enabled.

Status: This patch has been submitted to upstream, not yet accepted.

--- gnutls-3.8.1/src/tpmtool.c.orig
+++ gnutls-3.8.1/src/tpmtool.c
@@ -194,7 +194,9 @@
 	gnutls_datum_t data, sig = { NULL, 0 };
 	int pk;
 
+#ifdef ENABLE_PKCS11
 	pkcs11_common(NULL);
+#endif
 
 	data.data = (void *)TEST_DATA;
 	data.size = sizeof(TEST_DATA) - 1;