[CONC-635] named pipe transport must skip ssl Created: 2023-02-11  Updated: 2024-02-04  Resolved: 2023-04-05

Status: Closed
Project: MariaDB Connector/C
Component/s: TLS/SSL
Affects Version/s: 3.1, 3.3
Fix Version/s: 3.1.21, 3.3.5

Type: Bug Priority: Blocker
Reporter: Vladislav Vaintroub Assignee: Georg Richter
Resolution: Fixed Votes: 0
Labels: None

Issue Links:
Relates
relates to MDEV-30639 Upgrade to 10.6 and later does not wo... Closed

 Description   

SSL is not implemented for named pipe on the server, neither for MariaDB, nor for MySQL.
Therefore SSL settings must be ignored when connecting with named pipe "transport", regardless whether server indicates support for it in its capability flags

Otherwise

C:\work\10.11\xxx\client\Debug\mysqldump.exe  --protocol=pipe -uroot mysql
mysqldump.exe: Got error: 2026: "TLS/SSL error: The message received was unexpected or badly formatted. Error 0x80090326(SEC_E_ILLEGAL_MESSAGE)" when trying to connect

Note, recent versions of server even imply opt_ssl=1, meaning connect with ssl, if server is indicating it. In older versions, [client] section can contain ssl=1 or something else that enables ssl.

Whether the server should indicate SSL support when connection via named pipe, is debatable. The fact is there are versions of the server that do that, or maybe even all old versions do that


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