http://bugs.winehq.org/show_bug.cgi?id=20337
Summary: CryptImportKey fails in chromium's base_unittests.exe Product: Wine Version: 1.1.31 Platform: PC OS/Version: Linux Status: NEW Keywords: download, source Severity: normal Priority: P2 Component: advapi32 AssignedTo: wine-bugs@winehq.org ReportedBy: dank@kegel.com
Running base_unittests.exe from chromium fails with, among other errors,
[ RUN ] HMACTest.HmacSafeBrowsingResponseTest ... [27:28:1012/152253:233208:FATAL:hmac_win.cc(70)] Check failed: false.
Although the Chromium testcase is pretty minimal, I've boiled this testcase down to the attached standalone C program and executable, which fail in the same way.
http://bugs.winehq.org/show_bug.cgi?id=20337
--- Comment #1 from Dan Kegel dank@kegel.com 2009-10-12 23:28:29 --- Created an attachment (id=24065) --> (http://bugs.winehq.org/attachment.cgi?id=24065) boiled-down test case
http://bugs.winehq.org/show_bug.cgi?id=20337
--- Comment #2 from Dan Kegel dank@kegel.com 2009-10-12 23:29:23 --- Created an attachment (id=24066) --> (http://bugs.winehq.org/attachment.cgi?id=24066) compiled with visual c++ 2008 express
http://bugs.winehq.org/show_bug.cgi?id=20337
Dmitry Timoshkov dmitry@codeweavers.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Component|advapi32 |crypt32
--- Comment #3 from Dmitry Timoshkov dmitry@codeweavers.com 2009-10-13 01:49:05 --- Thanks for the test case, I sent the patch: http://www.winehq.org/pipermail/wine-patches/2009-October/079879.html
http://bugs.winehq.org/show_bug.cgi?id=20337
Dan Kegel dank@kegel.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Summary|CryptImportKey fails in |CryptImportKey fails in |chromium's |chromium's |base_unittests.exe |base_unittests.exe in | |HMACTest.HmacSafeBrowsingRe | |sponseTest
--- Comment #4 from Dan Kegel dank@kegel.com 2009-10-13 06:47:35 --- Patch works, thanks.
http://bugs.winehq.org/show_bug.cgi?id=20337
Dmitry Timoshkov dmitry@codeweavers.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED
--- Comment #5 from Dmitry Timoshkov dmitry@codeweavers.com 2009-10-13 10:58:57 --- The patch has been committed.
http://bugs.winehq.org/show_bug.cgi?id=20337
Juan Lang juan_lang@yahoo.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Blocks| |20340
http://bugs.winehq.org/show_bug.cgi?id=20337
--- Comment #6 from Juan Lang juan_lang@yahoo.com 2009-10-21 16:25:14 --- I believe the patch was incorrect, and I sent a patch that I hope demonstrates that. The test case was correct, of course, but the fix was not. I also sent a patch to revert the fix portion of this patch.
http://bugs.winehq.org/show_bug.cgi?id=20337
Juan Lang juan_lang@yahoo.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Blocks|20340 |
http://bugs.winehq.org/show_bug.cgi?id=20337
Juan Lang juan_lang@yahoo.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Resolution|FIXED |DUPLICATE
--- Comment #7 from Juan Lang juan_lang@yahoo.com 2009-10-22 10:36:48 --- I believe this bug is not about the length of the input key, but about Wine not supporting the CRYPT_IPSEC_HMAC_KEY flag. I described the problem in more detail in bug 20340, so I'm marking this as a dup of it.
*** This bug has been marked as a duplicate of bug 20340 ***
http://bugs.winehq.org/show_bug.cgi?id=20337
Dmitry Timoshkov dmitry@codeweavers.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED
--- Comment #8 from Dmitry Timoshkov dmitry@codeweavers.com 2009-10-24 11:13:38 --- Closing duplicate.