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:
@ -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;
|
||||
|
Reference in New Issue
Block a user