diff options
author | msvensson@pilot.blaudden <> | 2007-03-29 11:38:48 +0200 |
---|---|---|
committer | msvensson@pilot.blaudden <> | 2007-03-29 11:38:48 +0200 |
commit | f47c4368dedc320ffaea7736e4908f7a96281da2 (patch) | |
tree | 4b3bc285f56cfa295ed268ca03ffff1150edc101 /vio | |
parent | a49d6c5f51d3a043aed1a2b8f166e3e9cc89bd26 (diff) | |
parent | aec7927c8e688ecb42683714f095deb6e95f1384 (diff) | |
download | mariadb-git-f47c4368dedc320ffaea7736e4908f7a96281da2.tar.gz |
Merge pilot.blaudden:/home/msvensson/mysql/bug25309/my50-bug25309
into pilot.blaudden:/home/msvensson/mysql/bug25309/my51-bug25309
Diffstat (limited to 'vio')
-rw-r--r-- | vio/viosslfactories.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/vio/viosslfactories.c b/vio/viosslfactories.c index 9b407d08b3b..5d7d722f0c9 100644 --- a/vio/viosslfactories.c +++ b/vio/viosslfactories.c @@ -301,6 +301,14 @@ new_VioSSLConnectorFd(const char *key_file, const char *cert_file, { struct st_VioSSLFd *ssl_fd; int verify= SSL_VERIFY_PEER; + + /* + Turn off verification of servers certificate if both + ca_file and ca_path is set to NULL + */ + if (ca_file == 0 && ca_path == 0) + verify= SSL_VERIFY_NONE; + if (!(ssl_fd= new_VioSSLFd(key_file, cert_file, ca_file, ca_path, cipher, TLSv1_client_method()))) { |