[gnutls-devel] pkcs11_common(NULL) issue in 3.4.6

Jenny Yung jenny.yung at oracle.com
Mon Nov 30 23:47:16 CET 2015


Hi,

This issue is found in 3.4.6.

Currently in src/tpmtool.c, pkcs11_common(NULL) is being called when 
PKCS11 is not enabled. We have p11 disabled in our configure options, so 
it was unable to build.

I have the suggested patch here:

--- 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;


Thanks,
Jenny Yung
Oracle Solaris Security



More information about the Gnutls-devel mailing list