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;

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1027075

Title:
  SSL support broken, despite SSL support in command line mysql client

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/python-mysqldb/+bug/1027075/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to