[CONC-613] mysql_real_query_start sends not encrypted requests to server Created: 2022-09-09  Updated: 2023-05-02

Status: Open
Project: MariaDB Connector/C
Component/s: Non blocking API, TLS/SSL
Affects Version/s: 3.3.2, 3.1.18
Fix Version/s: None

Type: New Feature Priority: Major
Reporter: Alex Assignee: Georg Richter
Resolution: Unresolved Votes: 0
Labels: None
Environment:

Windows (Windows 10 Pro, version - 21H2, build number - 19044.1889, arch - X86_64)


Attachments: Text File c-api.cpp    

 Description   

Hello!

I use libmariadb on Windows machine.

When I run mysql_real_query_start() after creating connection with ssl mode to mysq server (8.0.30) or mariadb server (10.9.2) 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 any version from 3.3.2, 3.2.7, 3.1.18 and build on Windonws 10 Pro;
2) Download mysql server (8.0.30) or mariadb server (10.9.2), install on the same machine where libmariadb was built and run;
3) Create c++ test project from the attached file;
4) Build project and execute the program;



 Comments   
Comment by Georg Richter [ 2023-05-02 ]

Reclassifying as a feature request, since schannel is not supported yet in non blocking IO.

Generated at Thu Feb 08 03:06:34 UTC 2024 using Jira 8.20.16#820016-sha1:9d11dbea5f4be3d4cc21f03a88dd11d8c8687422.