File: 05_ssl.patch

package info (click to toggle)
python-mysqldb 1.2.3-2
  • links: PTS, VCS
  • area: main
  • in suites: wheezy
  • size: 568 kB
  • sloc: python: 2,725; ansic: 2,659; makefile: 46
file content (21 lines) | stat: -rw-r--r-- 817 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
Description: Force HAVE_OPENSSL if the client library is 5.5 or newer.
Origin: http://sourceforge.net/p/mysql-python/svn/656/tree//branches/MySQLdb-1.2/MySQLdb/_mysql.c?diff=5059d1f5bfc09e26e1a66617:655
Bug: http://sourceforge.net/p/mysql-python/bugs/323/
Reviewed-by: Eldon Koyle <ekoyle@gmail.com>
Last-Update: 2013-03-11

Index: python-mysqldb-argh/_mysql.c
===================================================================
--- python-mysqldb-argh.orig/_mysql.c	2010-06-17 09:21:56.000000000 +0200
+++ python-mysqldb-argh/_mysql.c	2013-03-11 18:30:38.839269635 +0100
@@ -102,6 +102,10 @@
 #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)
 {