File tree 1 file changed +3
-3
lines changed
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -491,10 +491,10 @@ _mysql_ConnectionObject_Initialize(
491
491
492
492
#ifdef MARIADB_BASE_VERSION
493
493
if (ssl_mode ) {
494
- if (strcmp (ssl_mode , "PREFERRED" ) != 0 )
494
+ if (strcasecmp (ssl_mode , "PREFERRED" ) != 0 )
495
495
{
496
496
int enforce_tls = 0 ;
497
- if (strcmp (ssl_mode , "REQUIRED" ) == 0 )
497
+ if (strcasecmp (ssl_mode , "REQUIRED" ) == 0 )
498
498
enforce_tls = 1 ;
499
499
#ifdef MYSQL_OPT_SSL_ENFORCE
500
500
mysql_optionsv (& (self -> connection ), MYSQL_OPT_SSL_ENFORCE , (void * )& enforce_tls );
@@ -540,7 +540,7 @@ _mysql_ConnectionObject_Initialize(
540
540
#ifdef HAVE_ENUM_MYSQL_OPT_SSL_MODE
541
541
if (ssl_mode ) {
542
542
char * corrected_ssl_mode = NULL ;
543
- if (strcmp (ssl_mode , "REQUIRED" ) == 0 || strcmp (ssl_mode , "VERIFY_CA" ))
543
+ if (strcasecmp (ssl_mode , "REQUIRED" ) == 0 || strcasecmp (ssl_mode , "VERIFY_CA" ) == 0 )
544
544
corrected_ssl_mode = "VERIFY_IDENTITY" ;
545
545
else
546
546
corrected_ssl_mode = ssl_mode ;
You can’t perform that action at this time.
0 commit comments