fix strict C++ compiling linkage

pull/1/head
toddouska 2012-03-23 12:20:26 -07:00
parent 36529ad873
commit 53c7f4d5a9
3 changed files with 18 additions and 5 deletions

View File

@ -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 File

@ -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 File

@ -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 {