[Bug 30719] SmartFTP 4.0 crashes on startup (crypt32 CertCreateSelfSignCertificate failure)

wine-bugs at winehq.org wine-bugs at winehq.org
Fri May 18 17:55:13 CDT 2012


http://bugs.winehq.org/show_bug.cgi?id=30719

--- Comment #2 from Juan Lang <juan.lang at gmail.com> 2012-05-18 17:55:13 CDT ---
(In reply to comment #1)
> Thanks AF.  Does this patch help?  The app still crashes for me, and for
> whatever reason I don't get a backtrace here.

Answering my own question: no, it doesn't.  I looked through my own seh,relay
log and now I see instead:

--- snip ---
0009:Call advapi32.CryptGenKey(001711e8,00000001,04000001,0032fa20)
ret=00723eb3
0009:Call rsaenh.CPGenKey(00000003,00000001,04000001,00171470) ret=7eb3cb1a
--- snip ---

--- snip ---
0009:Ret  rsaenh.CPGenKey() retval=00000001 ret=7eb3cb1a
0009:Ret  advapi32.CryptGenKey() retval=00000001 ret=00723eb3
0009:Call KERNEL32.FileTimeToSystemTime(0032fa18,0032fa84) ret=0072401a
0009:Ret  KERNEL32.FileTimeToSystemTime() retval=00000001 ret=0072401a
0009:Call
crypt32.CertCreateSelfSignCertificate(001711e8,0032fa5c,00000000,0032fa40,00000000,00000000,0032fa84,00000000)
ret=0072405a
0009:Call advapi32.CryptGetUserKey(001711e8,00000002,0032f70c) ret=7edbcaee
0009:Call rsaenh.CPGetUserKey(00000003,00000002,00171488) ret=7eb3c9db
0009:Ret  rsaenh.CPGetUserKey() retval=00000000 ret=7eb3c9db
0009:Ret  advapi32.CryptGetUserKey() retval=00000000 ret=7edbcaee
0009:Call ntdll.RtlAllocateHeap(00110000,00000000,00000000) ret=7edc78d6
0009:Ret  ntdll.RtlAllocateHeap() retval=00171480 ret=7edc78d6
0009:Call advapi32.CryptGetUserKey(001711e8,00000002,0032f70c) ret=7edbcaee
0009:Call rsaenh.CPGetUserKey(00000003,00000002,00174b30) ret=7eb3c9db
0009:Ret  rsaenh.CPGetUserKey() retval=00000000 ret=7eb3c9db
0009:Ret  advapi32.CryptGetUserKey() retval=00000000 ret=7edbcaee
0009:Call ntdll.RtlFreeHeap(00110000,00000000,00171480) ret=7edc7866
0009:Ret  ntdll.RtlFreeHeap() retval=00000001 ret=7edc7866
0009:Ret  crypt32.CertCreateSelfSignCertificate() retval=00000000 ret=0072405a
0009:Call KERNEL32.GetLastError() ret=004096e6
0009:Ret  KERNEL32.GetLastError() retval=8009000d ret=004096e6
0009:Call KERNEL32.RaiseException(e06d7363,00000001,00000003,0032f9c0)
ret=78ac872d
--- snip ---

In other words, the app generates an AT_KEYEXCHANGE key, but when it calls
CertCreateSelfSignCertificate, it specifies the AT_SIGNATURE key, leading to a
failure of NTE_NO_KEY. I'll have to have a closer look.

-- 
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