[gnutls-dev]openssl.h
Ivo Timmermans
ivo at o2w.nl
Mon Oct 14 21:43:02 CEST 2002
Hi,
openssl.h needs to be enclosed in an extern "C" {} block. (Patch
attached.)
Ivo
--
Um den Elefanten durch den Zoll zu schmuggeln, hatte Rasmus ihn als
Schäferhund verkleidet.
- Nichtlustig
-------------- next part --------------
diff -r -u gnutls5-0.5.6.old/includes/gnutls/openssl.h gnutls5-0.5.6/includes/gnutls/openssl.h
--- gnutls5-0.5.6.old/includes/gnutls/openssl.h 2002-10-05 12:00:56.000000000 +0200
+++ gnutls5-0.5.6/includes/gnutls/openssl.h 2002-10-05 12:02:42.000000000 +0200
@@ -51,6 +51,10 @@
#define SSL_MODE_ACCEPT_MOVING_WRITE_BUFFER (0x2)
#define SSL_MODE_AUTO_RETRY (0x4)
+#ifdef __cplusplus
+extern "C" {
+#endif /* __cplusplus */
+
typedef gnutls_x509_dn X509_NAME;
typedef gnutls_datum X509;
@@ -283,4 +287,8 @@
void RIPEMD160_Final(unsigned char *md, RIPEMD160_CTX *ctx);
unsigned char *RIPEMD160(const unsigned char *buf, unsigned long len,
unsigned char *md);
+#ifdef __cplusplus
+}
+#endif /* __cplusplus */
+
#endif
More information about the Gnutls-devel
mailing list