mirror of
https://github.com/MariaDB/server.git
synced 2025-01-16 03:52:35 +01:00
f9315b3321
Test fixes: Since fix for CONC-603 (wrong error handling in TLS read/write) in case of a read/write error client doesn't return always error 2013 (server has gone away), so in addition we need to check for error 2026 (TLS/SSL error) and 5014 (write error).
16 lines
528 B
Text
16 lines
528 B
Text
create procedure have_ssl()
|
|
select if(variable_value > '','yes','no') as 'have_ssl'
|
|
from information_schema.session_status
|
|
where variable_name='ssl_cipher';
|
|
mysql --ssl-ca=cacert.pem -e "call test.have_ssl()"
|
|
have_ssl
|
|
yes
|
|
mysql --ssl -e "call test.have_ssl()"
|
|
have_ssl
|
|
yes
|
|
mysql --ssl-ca=cacert.pem --ssl-verify-server-cert -e "call test.have_ssl()"
|
|
have_ssl
|
|
yes
|
|
mysql --ssl --ssl-verify-server-cert -e "call test.have_ssl()"
|
|
ERROR 2026 (HY000): TLS/SSL error: Failed to verify the server certificate
|
|
drop procedure have_ssl;
|