Skip to content

Commit c12e7cc

Browse files
author
adustman
committed
Force HAVE_OPENSSL if the client library is 5.5 or newer. Fixes #3535584.
1 parent e6d24c3 commit c12e7cc

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

MySQLdb/_mysql.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,10 @@ static int _mysql_server_init_done = 0;
100100
#define check_server_init(x) if (!_mysql_server_init_done) _mysql_server_init_done = 1
101101
#endif
102102

103+
#if MYSQL_VERSION_ID >= 50500
104+
#define HAVE_OPENSSL 1
105+
#endif
106+
103107
PyObject *
104108
_mysql_Exception(_mysql_ConnectionObject *c)
105109
{

0 commit comments

Comments
 (0)