<html>
<head>
<base href="https://bugs.documentfoundation.org/">
</head>
<body><span class="vcard"><a class="email" href="mailto:serval2412@yahoo.fr" title="Julien Nabet <serval2412@yahoo.fr>"> <span class="fn">Julien Nabet</span></a>
</span> changed
<a class="bz_bug_link
bz_status_NEW "
title="NEW - LO 6.4.6.1 and 7.0.1 fail with error 1045 when accessing MySQL database using native connector"
href="https://bugs.documentfoundation.org/show_bug.cgi?id=135202">bug 135202</a>
<br>
<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>What</th>
<th>Removed</th>
<th>Added</th>
</tr>
<tr>
<td style="text-align:right;">CC</td>
<td>
</td>
<td>michael.stahl@cib.de
</td>
</tr></table>
<p>
<div>
<b><a class="bz_bug_link
bz_status_NEW "
title="NEW - LO 6.4.6.1 and 7.0.1 fail with error 1045 when accessing MySQL database using native connector"
href="https://bugs.documentfoundation.org/show_bug.cgi?id=135202#c43">Comment # 43</a>
on <a class="bz_bug_link
bz_status_NEW "
title="NEW - LO 6.4.6.1 and 7.0.1 fail with error 1045 when accessing MySQL database using native connector"
href="https://bugs.documentfoundation.org/show_bug.cgi?id=135202">bug 135202</a>
from <span class="vcard"><a class="email" href="mailto:serval2412@yahoo.fr" title="Julien Nabet <serval2412@yahoo.fr>"> <span class="fn">Julien Nabet</span></a>
</span></b>
<pre>Michael: digging into Mariadb sources, I found this in
plugins/auth/CMakeLists.txt
69 # SHA256 caching plugin for MySQL 8.0 connection
70 REGISTER_PLUGIN(TARGET caching_sha2_password
71 TYPE MARIADB_CLIENT_PLUGIN_AUTH
72 CONFIGURATIONS DYNAMIC STATIC OFF
73 DEFAULT DYNAMIC
74 SOURCES ${CC_SOURCE_DIR}/plugins/auth/caching_sha2_pw.c
75 ${CRYPT_SOURCE}
76 LIBRARIES ${CRYPT_LIBS})
then searching about CRYPT_SOURCE, I find in the same file:
7 IF(WIN32)
8 SET(CRYPT_SOURCE ${CC_SOURCE_DIR}/libmariadb/secure/win_crypt.c)
9 SET(CRYPT_LIBS crypt32)
10 ELSEIF(WITH_SSL STREQUAL "OPENSSL")
11 SET(CRYPT_SOURCE ${CC_SOURCE_DIR}/libmariadb/secure/openssl_crypt.c)
12 SET(CRYPT_LIBS ${SSL_LIBRARIES})
13 ELSEIF(WITH_SSL STREQUAL "GNUTLS")
14 SET(CRYPT_SOURCE ${CC_SOURCE_DIR}/libmariadb/secure/gnutls_crypt.c)
15 IF (NOT SSL_LIBRARIES MATCHES "^.*\\.a$")
16 SET(CRYPT_LIBS ${SSL_LIBRARIES})
17 ENDIF()
18 ELSE()
19 UNSET(CRYPTO_PLUGIN)
20 ENDIF()
My last patch for this bugtracker contained:
add of "UnpackedTarball/mariadb-connector-c/plugins/auth/caching_sha2_pw" in
external/mariadb-connector-c/StaticLibrary_mariadb-connector-c.mk
but should we do this:
- add UnpackedTarball/mariadb-connector-c/libmariadb/secure/openssl_crypt in
external/mariadb-connector-c/StaticLibrary_mariadb-connector-c.mk
- add "#define WIN32 1" in external/mariadb-connector-c/configs/wnt_ma_config.h
- add "#define HAVE_OPENSSL 1" in
external/mariadb-connector-c/configs/linux_my_config.h and mac_my_config.h
?
since sha2 needs cryptographic libs.
At least it builds locally (pc Debian x86-64 with master sources updated today,
but can't really test since I use MariaDB not MySQL)
MariaDB proposes gnutls but it seems we use more often openssl</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are the assignee for the bug.</li>
</ul>
</body>
</html>