components/gnutls-3/patches/03_pkcs11_common.patch
author Vladimir Marek <Vladimir.Marek@oracle.com>
Sun, 02 Apr 2017 08:28:31 +0200
changeset 7845 04bd13eb1a17
parent 5143 9b4a483bf8d9
permissions -rw-r--r--
25818337 Missing packages in developer/opensolaris/userland

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.4.6/src/tpmtool.c	Tue Jul 21 02:42:08 2015
+++ gnutls-3.4.6/src/tpmtool.c	Thu Nov 19 13:43:02 2015
@@ -184,7 +184,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;