gnutls-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug: lib/gnutlsxx.cpp missing various ENABLE_XXX ifdefs


From: Bill Randle
Subject: bug: lib/gnutlsxx.cpp missing various ENABLE_XXX ifdefs
Date: Sun, 27 Dec 2009 20:54:26 -0800

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?).

        -Bill

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 @@
                   params_size);
 }
 
+#ifdef ENABLE_PKI
+
 /* Extracts DSA and RSA parameters from a certificate.
  */
 int
@@ -348,6 +350,8 @@
                   params_size);
 }
 
+#endif
+
 /*
  * some x509 certificate functions that relate to MPI parameter
  * setting. This writes the BIT STRING subjectPublicKey.






reply via email to

[Prev in Thread] Current Thread [Next in Thread]