[Bug 33249] accept_invalid_certs not working
wine-bugs at winehq.org
wine-bugs at winehq.org
Wed Mar 20 14:28:36 CDT 2013
http://bugs.winehq.org/show_bug.cgi?id=33249
--- Comment #4 from Austin English <austinenglish at gmail.com> 2013-03-20 14:28:36 CDT ---
(In reply to comment #3)
> Is there a way to get something similar into it? It may be also helpful if you
> spot me some sourcefiles i should look into.
http://www.codeweavers.com/products/faq/source/
You can run a diff against the wine source.
diff -ur wine-git/dlls/wininet/netconnection.c
wine/dlls/wininet/netconnection.c
--- wine-git/dlls/wininet/netconnection.c 2013-03-13 16:03:27.521109103
-0700
+++ wine/dlls/wininet/netconnection.c 2013-02-28 11:41:52.000000000 -0800
@@ -78,6 +78,7 @@
#include "wine/library.h"
#include "windef.h"
#include "winbase.h"
+#include "winreg.h"
#include "wininet.h"
#include "winerror.h"
@@ -417,6 +418,23 @@
CertFreeCertificateContext(endCert);
CertCloseStore(store, 0);
}
+ if (!ret) /* CrossOver hack tracked by bug 6776 */
+ {
+ HKEY hkey;
+ DWORD type, value, size = sizeof(value);
+
+ /* @@ Wine registry key: HKCU\Software\Wine\wininet */
+ if (!RegOpenKeyA( HKEY_CURRENT_USER, "Software\\Wine\\wininet", &hkey
))
+ {
+ if (!RegQueryValueExA( hkey, "accept_invalid_certs", 0, &type,
(BYTE *)&value, &size ) &&
+ type == REG_DWORD && value)
+ {
+ WARN("certificate is invalid, accepting it anyway\n");
+ ret = TRUE;
+ }
+ RegCloseKey( hkey );
+ }
+ }
return ret;
}
--
Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email
Do not reply to this email, post in Bugzilla using the
above URL to reply.
------- You are receiving this mail because: -------
You are watching all bug changes.
More information about the wine-bugs
mailing list