Hi, attached is a patch to support the four SSL related config options
in SQLObject's connection DNS, which allows to connect to MySQL servers
over SSL, and correctly pass them to mysql-python.
I hope this can make it into the next release, happy new year to all!
-- 
Best regards,
Luca Longinotti aka CHTEKK

LongiTEKK Networks Admin: [EMAIL PROTECTED]
Gentoo Dev: [EMAIL PROTECTED]
SysCP Dev: [EMAIL PROTECTED]
TILUG Supporter: [EMAIL PROTECTED]

--- mysql/mysqlconnection.py	2007-09-26 23:18:28.000000000 +0200
+++ mysql/mysqlconnection.py	2007-12-29 22:16:32.193490428 +0100
@@ -40,6 +40,11 @@
                 "client_flag", "local_infile"):
             if key in kw:
                 self.kw[key] = int(col.popKey(kw, key))
+        for key in ("ssl_key", "ssl_cert", "ssl_ca", "ssl_capath"):
+            if key in kw:
+                if "ssl" not in self.kw:
+                    self.kw["ssl"] = {}
+                self.kw["ssl"][key[4:]] = col.popKey(kw, key)
         if "charset" in kw:
             self.dbEncoding = self.kw["charset"] = col.popKey(kw, "charset")
         else:
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
sqlobject-discuss mailing list
sqlobject-discuss@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sqlobject-discuss

Reply via email to