Skip to content

Commit 7e5e0ba

Browse files
Tor Didriksendahlerlend
authored andcommitted
Bug#27689570 WL#11659 : CONNECTION FAILS AND TEST EXITS WHEN RSA PUBLIC KEY IS SPECIFIED
For OpenSSL we do #include <openssl/applink.c> in client_authentication.cc This is to ensure that the function OPENSSL_Applink is visible both in the client library, and in the server. For clients linking with libmysql.dll, openssl/applink.c must be built into the application, hence we install it as a Development component. Change-Id: Ic7d0661c40253ea1851b4de8e5ce3473abd9ef4d
1 parent 19381a6 commit 7e5e0ba

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

include/CMakeLists.txt

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Copyright (c) 2006, 2017, Oracle and/or its affiliates. All rights reserved.
1+
# Copyright (c) 2006, 2018, Oracle and/or its affiliates. All rights reserved.
22
#
33
# This program is free software; you can redistribute it and/or modify
44
# it under the terms of the GNU General Public License, version 2.0,
@@ -45,3 +45,11 @@ SET(HEADERS_MYSQL_DIR
4545

4646
INSTALL(FILES ${HEADERS} DESTINATION ${INSTALL_INCLUDEDIR} COMPONENT Development)
4747
INSTALL(FILES ${HEADERS_MYSQL_DIR} DESTINATION ${INSTALL_INCLUDEDIR}/mysql COMPONENT Development)
48+
49+
# openssl/applink.c must be built into applications linking with libmysql.dll
50+
IF (WIN32 AND OPENSSL_APPLINK_C)
51+
INSTALL(FILES ${OPENSSL_APPLINK_C}
52+
DESTINATION ${INSTALL_INCLUDEDIR}/openssl
53+
COMPONENT Development
54+
)
55+
ENDIF()

0 commit comments

Comments
 (0)