| Bug #33897 | ODBC Driver 5.1.1 Beta fails to connect using SSL when SSL-Key set on ODBC Dlg | ||
|---|---|---|---|
| Submitted: | 17 Jan 2008 15:47 | Modified: | 14 Feb 2008 17:39 |
| Reporter: | Tony Whyman | ||
| Status: | Closed | ||
| Category: | Connector/ODBC | Severity: | S2 (Serious) |
| Version: | 5.1.1 Beta | OS: | Microsoft Windows |
| Assigned to: | Bugs System | Target Version: | |
| Triage: | D2 (Serious) | ||
[17 Jan 2008 15:47]
Tony Whyman
[17 Jan 2008 16: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 17: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 22:18]
Jess Balint
Patch committed into svn rev1008. Will be released in version 5.1.2.
[14 Feb 2008 17: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.
