You've already forked mariadb-connector-c
mirror of
https://github.com/mariadb-corporation/mariadb-connector-c.git
synced 2025-08-07 02:42:49 +03:00
Save the result of peer certificate verification
Since the MARIADB_TLS_VERIFY_TRUST flag might be cleared in my_auth, we store the original result of peer certificate verification in mysql->extension->tls_validation. This value can be obtained via mariadb_get_infov API function using option MARIADB_TLS_VERIFY_STATUS.
This commit is contained in:
@@ -4552,7 +4552,7 @@ my_bool mariadb_get_infov(MYSQL *mysql, enum mariadb_value value, void *arg, ...
|
||||
*((MARIADB_X509_INFO **)arg)= NULL;
|
||||
break;
|
||||
case MARIADB_TLS_VERIFY_STATUS:
|
||||
*((unsigned int *)arg)= (unsigned int)mysql->net.tls_verify_status;
|
||||
*((unsigned int *)arg)= (unsigned int)mysql->extension->tls_validation;
|
||||
break;
|
||||
#endif
|
||||
case MARIADB_MAX_ALLOWED_PACKET:
|
||||
|
Reference in New Issue
Block a user