From c12e7cca7e5d494db1d01c02b2fd66e4e954c243 Mon Sep 17 00:00:00 2001 From: adustman Date: Fri, 7 Sep 2012 17:09:13 +0000 Subject: [PATCH] Force HAVE_OPENSSL if the client library is 5.5 or newer. Fixes #3535584. --- MySQLdb/_mysql.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/MySQLdb/_mysql.c b/MySQLdb/_mysql.c index 2c2d453..562dd88 100644 --- a/MySQLdb/_mysql.c +++ b/MySQLdb/_mysql.c @@ -100,6 +100,10 @@ static int _mysql_server_init_done = 0; #define check_server_init(x) if (!_mysql_server_init_done) _mysql_server_init_done = 1 #endif +#if MYSQL_VERSION_ID >= 50500 +#define HAVE_OPENSSL 1 +#endif + PyObject * _mysql_Exception(_mysql_ConnectionObject *c) {