Comment 3 for bug 1027075

Revision history for this message
C Filorux (breakfast) wrote :

I hacked mine to work by defining HAVE_OPENSSL in _mysql.c so that SSL is compiled despite what mysql_config doesn't say:

diff -ur MySQL-python-1.2.3/_mysql.c python-mysqldb-1.2.3/_mysql.c
--- MySQL-python-1.2.3/_mysql.c 2010-06-17 09:21:56.000000000 +0200
+++ python-mysqldb-1.2.3/_mysql.c 2012-08-16 08:23:36.567236117 +0200
@@ -475,6 +475,7 @@
        MYSQL *conn = NULL;
        PyObject *conv = NULL;
        PyObject *ssl = NULL;
+#define HAVE_OPENSSL 1
 #if HAVE_OPENSSL
        char *key = NULL, *cert = NULL, *ca = NULL,
                *capath = NULL, *cipher = NULL;