Bug: Use of srp with gnutlsxx

Adda Rathbone addarathbone at googlemail.com
Thu Apr 8 12:32:24 CEST 2010


Hello,
if you compile version 2.8.5 or 2.8.6 and try to use
gnutls::srp_server_credentials or gnutls::srp_client_credentials
the compiler will complain about the constructor and
destructor of the srp class

Fix is descriped here: http://markmail.org/message/vu3da76lrlz6icvl

For people who don't follow links in an email:

diff -u a/lib/gnutlsxx.cpp b/lib/gnutlsxx.cpp 
--- a/lib/gnutlsxx.cpp  2010-04-08 12:22:37.000000000 +0200
+++ b/lib/gnutlsxx.cpp  2010-04-08 00:27:08.000000000 +0200
@@ -1,3 +1,7 @@
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif 
+
 #include <gnutls/gnutlsxx.h>
 
 namespace gnutls

diff -u a/lib/libgnutlsxx.map b/lib/libgnutlsxx.map 
--- a/lib/libgnutlsxx.map       2010-04-08 12:22:28.000000000 +0200
+++ b/lib/libgnutlsxx.map       2010-04-08 00:29:18.000000000 +0200
@@ -24,7 +24,9 @@
 {
   global:
     extern "C++" {
-      gnutls*;
+      gnutls::*;
   };
+  # export typeinfo names and structures
+  _ZTI*;
   local: *;
 };


 Adda





More information about the Gnutls-help mailing list