Import from yaSSL

parent 01faaacd
...@@ -32,12 +32,19 @@ ...@@ -32,12 +32,19 @@
#include "opensslv.h" /* for version number */ #include "opensslv.h" /* for version number */
#include "rsa.h" #include "rsa.h"
#if defined(__cplusplus)
extern "C" {
#endif
extern "C" void yaSSL_CleanUp(); /* call once at end of application use to void yaSSL_CleanUp(); /* call once at end of application use to
free static singleton memory holders, free static singleton memory holders,
not a leak per se, but helpful when not a leak per se, but helpful when
looking for them */ looking for them */
#if defined(__cplusplus)
} // extern
#endif
#if defined(__cplusplus) && !defined(YASSL_MYSQL_COMPATIBLE) #if defined(__cplusplus) && !defined(YASSL_MYSQL_COMPATIBLE)
namespace yaSSL { namespace yaSSL {
extern "C" { extern "C" {
......
...@@ -27,7 +27,7 @@ ...@@ -27,7 +27,7 @@
#endif /* _WIN32 */ #endif /* _WIN32 */
#if defined(__MACH__) || defined(_WIN32) #if !defined(_SOCKLEN_T) && (defined(__MACH__) || defined(_WIN32))
typedef int socklen_t; typedef int socklen_t;
#endif #endif
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment