You've already forked mariadb-connector-c
mirror of
https://github.com/mariadb-corporation/mariadb-connector-c.git
synced 2025-08-08 14:02:17 +03:00
TLS/SSL test fixes:
- create ssluser to prevent failing test on new db instance - skip tls_version test when using OpenSSL 1.1.1
This commit is contained in:
@@ -117,6 +117,8 @@ static int test_ssl(MYSQL *mysql)
|
|||||||
|
|
||||||
mysql_ssl_set(my,0, 0, 0, 0, 0);
|
mysql_ssl_set(my,0, 0, 0, 0, 0);
|
||||||
|
|
||||||
|
create_ssl_user("ssluser", 0);
|
||||||
|
|
||||||
FAIL_IF(!mysql_real_connect(my, hostname, ssluser, sslpw, schema,
|
FAIL_IF(!mysql_real_connect(my, hostname, ssluser, sslpw, schema,
|
||||||
port, socketname, 0), mysql_error(my));
|
port, socketname, 0), mysql_error(my));
|
||||||
|
|
||||||
@@ -1255,6 +1257,11 @@ static int test_mdev14101(MYSQL *my __attribute__((unused)))
|
|||||||
bool skip_tlsv12= !have_openssl;
|
bool skip_tlsv12= !have_openssl;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#if defined(HAVE_OPENSSL) && defined(TLS1_3_VERSION)
|
||||||
|
diag("Test fails with TLS v1.3");
|
||||||
|
return(SKIP);
|
||||||
|
#endif
|
||||||
|
|
||||||
for (i=0; combinations[i].expected; i++)
|
for (i=0; combinations[i].expected; i++)
|
||||||
{
|
{
|
||||||
MYSQL *mysql;
|
MYSQL *mysql;
|
||||||
|
Reference in New Issue
Block a user