File tree Expand file tree Collapse file tree 3 files changed +20
-16
lines changed Expand file tree Collapse file tree 3 files changed +20
-16
lines changed Original file line number Diff line number Diff line change @@ -219,13 +219,13 @@ function(find_openssl)
219
219
220
220
221
221
find_library (OPENSSL_LIBRARY
222
- NAMES ssl ssleay32 ssleay32MD
222
+ NAMES ssl ssleay32 ssleay32MD libssl
223
223
PATH_SUFFIXES lib
224
224
${hints}
225
225
)
226
226
227
227
find_library (CRYPTO_LIBRARY
228
- NAMES crypto libeay32 libeay32MD
228
+ NAMES crypto libeay32 libeay32MD libcrypto
229
229
PATH_SUFFIXES lib
230
230
${hints}
231
231
)
Original file line number Diff line number Diff line change @@ -44,6 +44,24 @@ POP_SYS_WARNINGS_CDK
44
44
#include " connection_tcpip_base.h"
45
45
46
46
47
+ /*
48
+ On Windows, external dependencies can be declared using
49
+ #pragma comment directive.
50
+ */
51
+
52
+ #ifdef _WIN32
53
+ #pragma comment(lib,"ws2_32")
54
+ #if defined(WITH_SSL)
55
+ #if OPENSSL_VERSION_NUMBER < 0x10100000L
56
+ #pragma comment(lib,"ssleay32")
57
+ #pragma comment(lib,"libeay32")
58
+ #else
59
+ #pragma comment(lib,"libssl")
60
+ #pragma comment(lib,"libcrypto")
61
+ #endif
62
+ #endif
63
+ #endif
64
+
47
65
static const char tls_ciphers_list[]=" ECDHE-ECDSA-AES128-GCM-SHA256:"
48
66
" ECDHE-ECDSA-AES256-GCM-SHA384:"
49
67
" ECDHE-RSA-AES128-GCM-SHA256:"
Original file line number Diff line number Diff line change 38
38
#include " cdk/cursor.h"
39
39
#include " cdk/codec.h"
40
40
41
- /*
42
- On Windows, external dependencies can be declared using
43
- #pragma comment directive.
44
- */
45
-
46
- #ifdef _WIN32
47
- #pragma comment(lib,"ws2_32")
48
- #if defined(WITH_SSL)
49
- #pragma comment(lib,"ssleay32")
50
- #pragma comment(lib,"libeay32")
51
- #endif
52
- #endif
53
-
54
-
55
41
namespace cdk {
56
42
57
43
typedef Cursor::Row_processor Row_processor;
You can’t perform that action at this time.
0 commit comments