Bug #108433 C API. mysql_real_query_start sends not encrypted requests to server
Submitted: 8 Sep 2022 15:59 Modified: 9 Sep 2022 10:28
Reporter: Alex Geek Email Updates:
Status: Unsupported Impact on me:
None 
Category:MySQL Server: C API (client library) Severity:S1 (Critical)
Version:3.1.15 OS:Windows (Windows 10 Pro, version - 21H2, build number - 19044.1889, arch - X86_64)
Assigned to: MySQL Verification Team CPU Architecture:x86 (X86_64)

[8 Sep 2022 15:59] Alex Geek
Description:
Hello!

I use libmariadb version 3.1.15 from vcpkg on Windows machine.

When I run mysql_real_query_start() after creating connection with ssl mode it fails with error code 2013 and error msg "Lost connection to MySQL server during query".

If I run the same code on Centos7 it works fine.

The problem is in mysql_real_query_start(). It sends not encrypted request to server and therefore server closes the connection. As the result we get error msg "Lost connection to MySQL server during query".

How to repeat:
1) Download libmariadb version 3.1.15 and build on Windonws 10 Pro;
2) Download mysql server version 5.7.39, install on the same machine where libmariadb was built and run;
3) Create c++ test project with code from the private comment;
4) Build project and execute the program;
[9 Sep 2022 10:28] MySQL Verification Team
Hi,

> How to repeat:
> 1) Download libmariadb version 3.1.15 and build on Windonws 10 Pro;

This is not our product and we do not support it

kind regards