1
0
mirror of https://github.com/MariaDB/server.git synced 2025-08-01 03:47:19 +03:00

MDEV-10054 Secure login fails when CIPHER is required

SSL: do not require client certificate to exist,
if GRANT didn't require that
This commit is contained in:
Sergei Golubchik
2016-06-28 15:38:41 +02:00
parent 8354c0c4d6
commit 341e5f4411
3 changed files with 13 additions and 0 deletions

View File

@ -12199,6 +12199,9 @@ static bool acl_check_ssl(THD *thd, const ACL_USER *acl_user)
return 1;
}
}
if (!acl_user->x509_issuer && !acl_user->x509_subject)
return 0; // all done
/* Prepare certificate (if exists) */
if (!(cert= SSL_get_peer_certificate(ssl)))
return 1;