« on: January 21, 2012, 09:07:32 AM »
Source code from:
http://code.google.com/p/mongoose/--- a\mongoose.c Mon May 02 09:00:20 2011
+++ b\mongoose.c Fri Jan 20 16:56:11 2012
@@ -87,8 +87,10 @@
#define STRX(x) #x
#define STR(x) STRX(x)
#define __func__ "line " STR(__LINE__)
+#ifndef __POCC__
#define strtoull(x, y, z) strtoul(x, y, z)
#define strtoll(x, y, z) strtol(x, y, z)
+#endif
#else
#define __func__ __FUNCTION__
#define strtoull(x, y, z) _strtoui64(x, y, z)
@@ -258,6 +260,33 @@
#define CRYPTO_LOCK 1
#if defined(NO_SSL_DL)
+
+#ifdef USECYASSL
+#define SSL_free CyaSSL_free
+#define SSL_accept CyaSSL_accept
+#define SSL_connect CyaSSL_connect
+#define SSL_read CyaSSL_read
+#define SSL_write CyaSSL_write
+#define SSL_set_fd CyaSSL_set_fd
+#define SSL_new CyaSSL_new
+#define SSL_CTX_new CyaSSL_CTX_new
+#define SSLv23_server_method CyaSSLv23_server_method
+#define SSL_library_init CyaSSL_library_init
+#define SSL_load_error_strings CyaSSL_load_error_strings
+#ifndef NO_FILESYSTEM
+#define SSL_CTX_use_PrivateKey_file CyaSSL_CTX_use_PrivateKey_file
+#define SSL_CTX_use_certificate_file CyaSSL_CTX_use_certificate_file
+#define SSL_CTX_use_certificate_chain_file CyaSSL_CTX_use_certificate_chain_file
+#endif
+#define SSL_CTX_set_default_passwd_cb CyaSSL_CTX_set_default_passwd_cb
+#define SSL_CTX_free CyaSSL_CTX_free
+#define ERR_get_error CyaSSL_ERR_get_error
+#define ERR_error_string CyaSSL_ERR_error_string
+#define CRYPTO_num_locks CyaSSL_num_locks
+#define CRYPTO_set_locking_callback CyaSSL_set_locking_callback
+#define CRYPTO_set_id_callback CyaSSL_set_id_callback
+#endif
+
extern void SSL_free(SSL *);
extern int SSL_accept(SSL *);
extern int SSL_connect(SSL *);
« Last Edit: January 21, 2012, 09:18:02 AM by timovjl »
Logged
May the source be with you