Bug #33897 | ODBC Driver 5.1.1 Beta fails to connect using SSL when SSL-Key set on ODBC Dlg | ||
---|---|---|---|
Submitted: | 17 Jan 2008 14:47 | Modified: | 14 Feb 2008 16:39 |
Reporter: | Tony Whyman | Email Updates: | |
Status: | Closed | Impact on me: | |
Category: | Connector / ODBC | Severity: | S2 (Serious) |
Version: | 5.1.1 Beta | OS: | Windows |
Assigned to: | Jess Balint | CPU Architecture: | Any |
[17 Jan 2008 14:47]
Tony Whyman
[17 Jan 2008 15:17]
Tony Whyman
Digging around deeper, I think I found the underlying bug. When you set an SSL Key in the ODBC dialog, the SSLCIPHER entry in the registry is also set to the path to the SSL Key. Deleting the registry entry SSLCIPHER allows the ODBC driver to work with SSL. Indeed, setting the SSL Cipher in the ODBC configuration dialog always causes the setting of the SSLKEY entry to be copied to the SSLCIPHER. Looks like a very basic source code typo.
[17 Jan 2008 16:33]
Jess Balint
Index: setupgui/windows/odbcdialogparams.cpp =================================================================== --- setupgui/windows/odbcdialogparams.cpp (revision 999) +++ setupgui/windows/odbcdialogparams.cpp (working copy) @@ -254,7 +254,7 @@ getStrFieldData(¶ms.sslcert , 5, IDC_EDIT_sslcert); getStrFieldData(¶ms.sslca , 5, IDC_EDIT_sslca); getStrFieldData(¶ms.sslcapath , 5, IDC_EDIT_sslcapath); - getStrFieldData(¶ms.sslcipher , 5, IDC_EDIT_sslkey); + getStrFieldData(¶ms.sslcipher , 5, IDC_EDIT_sslcipher); } void syncTabs(HWND hwnd, DataSource ¶ms)
[23 Jan 2008 21:18]
Jess Balint
Patch committed into svn rev1008. Will be released in version 5.1.2.
[14 Feb 2008 16:39]
MC Brown
A note has been added to the 5.1.2 changelog: The SSLCIPHER option would be incorrectly recorded within the SSL configuration on Windows.