Skip to content

Commit d4da808

Browse files
committed
Merge remote-tracking branch 'origin/wl13162'
# Conflicts: # cdk/foundation/connection_openssl.cc # cdk/include/mysql/cdk.h # jdbc
2 parents 6acf35b + 78e482e commit d4da808

File tree

3 files changed

+20
-16
lines changed

3 files changed

+20
-16
lines changed

cdk/cmake/DepFindSSL.cmake

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -219,13 +219,13 @@ function(find_openssl)
219219

220220

221221
find_library(OPENSSL_LIBRARY
222-
NAMES ssl ssleay32 ssleay32MD
222+
NAMES ssl ssleay32 ssleay32MD libssl
223223
PATH_SUFFIXES lib
224224
${hints}
225225
)
226226

227227
find_library(CRYPTO_LIBRARY
228-
NAMES crypto libeay32 libeay32MD
228+
NAMES crypto libeay32 libeay32MD libcrypto
229229
PATH_SUFFIXES lib
230230
${hints}
231231
)

cdk/foundation/connection_openssl.cc

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,24 @@ POP_SYS_WARNINGS_CDK
4444
#include "connection_tcpip_base.h"
4545

4646

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+
4765
static const char tls_ciphers_list[]="ECDHE-ECDSA-AES128-GCM-SHA256:"
4866
"ECDHE-ECDSA-AES256-GCM-SHA384:"
4967
"ECDHE-RSA-AES128-GCM-SHA256:"

cdk/include/mysql/cdk.h

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -38,20 +38,6 @@
3838
#include "cdk/cursor.h"
3939
#include "cdk/codec.h"
4040

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-
5541
namespace cdk {
5642

5743
typedef Cursor::Row_processor Row_processor;

0 commit comments

Comments
 (0)