Permalink
Browse files

fix strict C++ compiling linkage

  • Loading branch information...
1 parent 36529ad commit 53c7f4d5a97dc4de3482f14674ea331823eb48e6 @toddouska toddouska committed Mar 23, 2012
Showing with 18 additions and 5 deletions.
  1. +7 −1 ctaocrypt/src/asn.c
  2. +9 −2 ctaocrypt/src/logging.c
  3. +2 −2 cyassl/test.h
View
@@ -2078,7 +2078,13 @@ static void IsCa(DecodedCert* cert)
/* from SSL proper, for locking can't do find here anymore */
-CYASSL_LOCAL Signer* GetCA(Signer* signers, byte* hash);
+#ifdef __cplusplus
+ extern "C" {
+#endif
+ CYASSL_LOCAL Signer* GetCA(Signer* signers, byte* hash);
+#ifdef __cplusplus
+ }
+#endif
int ParseCertRelative(DecodedCert* cert, int type, int verify,
View
@@ -30,8 +30,15 @@
#include <cyassl/ctaocrypt/error.h>
-CYASSL_API int CyaSSL_Debugging_ON(void);
-CYASSL_API void CyaSSL_Debugging_OFF(void);
+#ifdef __cplusplus
+ extern "C" {
+#endif
+ CYASSL_API int CyaSSL_Debugging_ON(void);
+ CYASSL_API void CyaSSL_Debugging_OFF(void);
+#ifdef __cplusplus
+ }
+#endif
+
#ifdef DEBUG_CYASSL
View
@@ -117,8 +117,8 @@ typedef struct tcp_ready {
} tcp_ready;
-void InitTcpReady();
-void FreeTcpReady();
+void InitTcpReady(tcp_ready*);
+void FreeTcpReady(tcp_ready*);
typedef struct func_args {

0 comments on commit 53c7f4d

Please sign in to comment.