bug: lib/gnutlsxx.cpp missing various ENABLE_XXX ifdefs

Bill Randle billr at neocat.org
Mon Dec 28 05:54:26 CET 2009

I fixed my previous problem with the missing ifdef in mpi.c (see patch
below). A similar problem also exists in gnutlsxx.cpp where the only
ENABLE_XXX ifdefs are ENABLE_OPENPGP and ENABLE_SRP. There should also
be ifdefs for ENABLE_PKI and ENABLE_PSK (and perhaps others?).


P.S. I apologize if this has been reported already; I did look back
several months in the mailing list archives.

--- gnutls-2.8.5/lib/x509/mpi.c.dist	2009-06-02 11:59:32.000000000 -0700
+++ gnutls-2.8.5/lib/x509/mpi.c	2009-12-27 20:21:27.000000000 -0800
@@ -331,6 +331,8 @@
+#ifdef ENABLE_PKI
 /* Extracts DSA and RSA parameters from a certificate.
@@ -348,6 +350,8 @@
  * some x509 certificate functions that relate to MPI parameter
  * setting. This writes the BIT STRING subjectPublicKey.

More information about the Gnutls-devel mailing list