mariadb/vio
Arun Kuruvila c7e68606c0 Bug#21920657: SSL-CA FAILS SILENTLY IF THE PATH CANNOT BE
FOUND

Description:- Failure during the validation of CA
certificate path which is provided as an option for 'ssl-ca'
returns two different errors for YaSSL and OPENSSL.

Analysis:- 'ssl-ca', option used for specifying the ssl ca
certificate path. Failing to validate this certificate with
OPENSSL returns an error, "ERROR 2026 (HY000): SSL
connection error: SSL_CTX_set_default_verify_paths failed".
While YASSL returns "ERROR 2026 (HY000): SSL connection
error: ASN: bad other signature confirmation". Error
returned by the OPENSSL is correct since
"SSL_CTX_load_verify_locations()" returns 0 (in case of
OPENSSL) for the failure and sets error as
"SSL_INITERR_BAD_PATHS". In case of YASSL,
"SSL_CTX_load_verify_locations()" returns an error number
which is less than or equal to 0 in case of error. Error
numbers for YASSL is mentioned in the file,
'extra/yassl/include/openssl/ssl.h'(line no : 292). Also
'ssl-ca' does not accept tilde home directory path
substitution.

Fix:- The condition which checks for the error in the
"SSL_CTX_load_verify_locations()" is changed in order to
accommodate YASSL as well. A logic is written in
"mysql_ssl_set()" in order accept the tilde home directory
path substitution for all ssl options.
2016-03-01 10:17:25 +05:30
..
docs Fixed searching after ssl directories. 2002-09-05 16:17:08 +03:00
CMakeLists.txt Backport from trunk: 2014-05-07 17:09:14 +02:00
test-ssl.c Bug 16395495 - OLD FSF ADDRESS IN GPL HEADER 2013-03-19 13:29:12 +01:00
test-sslclient.c Bug 16395495 - OLD FSF ADDRESS IN GPL HEADER 2013-03-19 13:29:12 +01:00
test-sslserver.c Bug 16395495 - OLD FSF ADDRESS IN GPL HEADER 2013-03-19 13:29:12 +01:00
vio.c Updated/added copyright headers 2011-06-30 17:46:53 +02:00
vio_priv.h Updated/added copyright headers 2011-06-30 17:46:53 +02:00
viosocket.c Updated/added copyright headers. 2013-02-25 15:26:00 +01:00
viossl.c Bug #16861371 SSL_OP_NO_COMPRESSION NOT DEFINED 2015-04-21 09:24:41 +05:30
viosslfactories.c Bug#21920657: SSL-CA FAILS SILENTLY IF THE PATH CANNOT BE 2016-03-01 10:17:25 +05:30
viotest-ssl.c Bug 16395495 - OLD FSF ADDRESS IN GPL HEADER 2013-03-19 13:29:12 +01:00
viotest-sslconnect.cc Updated/added copyright headers 2011-06-30 17:37:13 +02:00
viotest.cc Updated/added copyright headers 2011-06-30 17:37:13 +02:00