[gnutls-dev]openssl.h
Ivo Timmermans
ivo@o2w.nl
Mon Oct 14 21:43:02 2002
--Qxx1br4bt0+wmkIi
Content-Type: text/plain; charset=utf-8
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable
Hi,
openssl.h needs to be enclosed in an extern "C" {} block. (Patch
attached.)
Ivo
--=20
Um den Elefanten durch den Zoll zu schmuggeln, hatte Rasmus ihn als
Sch=C3=A4ferhund verkleidet.
- Nichtlustig
--Qxx1br4bt0+wmkIi
Content-Type: text/plain; charset=utf-8
Content-Disposition: attachment; filename="openssl.h.diff"
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
--Qxx1br4bt0+wmkIi--