Re: Crypto API

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Whoa, you're totally right, that'll still crash.  Whoops!
Does the attached patch work for you?  You'll need to compile from source and apply the pach to test it, I'm afraid.

--Juan

----- Original Message ----
From: Andrew Senff <andrew@xxxxxxxxxxxx>
To: Juan Lang <juan_lang@xxxxxxxxx>; Andrew Senff <andrew@xxxxxxxxxxxx>
Cc: wine-users@xxxxxxxxxx
Sent: Wednesday, August 2, 2006 4:39:44 PM
Subject: RE: Crypto API

Juan,

    Thanks for the information I greatly appreciate it. I have updated
the appdb with a link to where the instructions are kept. I wanted to make
sure that it was logging in 100% of the time before it was updatedb in the
appdb. I will go back to update the appdb with complete set of instructions
and probably an easier way to get this accomplished.

    I tried to set the rsaenh.dll to builtin with wine0.9.18 and this
crashes the game. What I get is a different error that the symbol engine
couldn't be started (error from the game) and in the wine debug log I get
the follow errors that are at the end of this email.

Because of how large the debug log is I attached it to this email for a
complete look on what is happening. 

A little background on the box that I am using, FC5 (2.6.17) AMD_64 with
nvidia 5700... Let me know if there is any other information that you need.
Please note there is a 7 day free trial so if anyone wants to help me out
with these please do so! :)   

Thank you for the help!

andrew

WineDbg starting on pid 0x8
Unhandled exception: page fault on write access to 0x00000000 in 32-bit code
(0x7c328b21).
Register dump:
 CS:0023 SS:002b DS:002b ES:002b FS:006b GS:0063
 EIP:7c328b21 ESP:7c70976c EBP:7c709780 EFLAGS:00010a92(   - 00      ROISA1)
 EAX:000000d3 EBX:7c33d258 ECX:00000038 EDX:08d1d488
 ESI:08d1d489 EDI:00000000
Stack dump:
0x7c70976c:  00000239 590197a0 08d1d488 00006801
0x7c70977c:  00000001 7c7097a0 7c320ec9 00000000
0x7c70978c:  00000239 08d1d480 7c33d258 7c33f6e0
0x7c70979c:  7c33d258 7c709850 7c32e684 00006801
0x7c7097ac:  08d1d480 00000000 00000239 00002aa8
0x7c7097bc:  7c70980c 7efb5930 0002b4a0 7c709848
fixme:ntdll:RtlNtStatusToDosErrorNoTeb no mapping for c0000119
Backtrace:
=>1 0x7c328b21 rc4_read+0x61(buf=0x0, len=0x239, prng=0x8d1d480)
[/home/senob/downloads/wine/dlls/rsaenh/rc4.c:103] in rsaenh (0x7c328b21)
  2 0x7c320ec9 encrypt_stream_impl+0x49(aiAlgid=0x6801,
pKeyContext=0x8d1d480, stream=0x0, dwLen=0x239)
[/home/senob/downloads/wine/dlls/rsaenh/implglue.c:338] in rsaenh
(0x7c320ec9)
  3 0x7c32e684 RSAENH_CPEncrypt+0x314(hProv=0x1, hKey=0x4, hHash=0x0,
Final=0x1, dwFlags=0x0, pbData=0x0, pdwDataLen=0x7c7098e8, dwBufLen=0x239)
[/home/senob/downloads/wine/dlls/rsaenh/rsaenh.c:1958] in rsaenh
(0x7c32e684)
  4 0x7ea396ac CryptEncrypt+0x10c(hKey=0x1f8610, hHash=0x0, Final=0x1,
dwFlags=0x0, pbData=0x0, pdwDataLen=0x7c7098e8, dwBufLen=0x239)
[/home/senob/downloads/wine/dlls/advapi32/crypt.c:971] in advapi32
(0x7ea396ac)
  5 0x008acb53 in dndclient (+0x4acb53) (0x008acb53)
  6 0x00000002 (0x00000002)
  7 0x008ac790 in dndclient (+0x4ac790) (0x008ac790)
  8 0xc9761406 (0xc9761406)
  9 0x00000000 (0x00000000)
0x7c328b21 rc4_read+0x61 [/home/senob/downloads/wine/dlls/rsaenh/rc4.c:103]
in rsaenh: xorb    %al,0x0(%edi)
103          *buf++ ^= s[tmp];


Index: dlls/rsaenh/rsaenh.c
===================================================================
RCS file: /home/wine/wine/dlls/rsaenh/rsaenh.c,v
retrieving revision 1.42
diff -u -r1.42 rsaenh.c
--- dlls/rsaenh/rsaenh.c	28 Jul 2006 12:17:06 -0000	1.42
+++ dlls/rsaenh/rsaenh.c	2 Aug 2006 23:46:47 -0000
@@ -1940,6 +1940,10 @@
             memcpy(in, out, pCryptKey->dwBlockLen); 
         }
     } else if (GET_ALG_TYPE(pCryptKey->aiAlgid) == ALG_TYPE_STREAM) {
+        if (pbData == NULL) {
+            *pdwDataLen = dwBufLen;
+            return TRUE;
+        }
         encrypt_stream_impl(pCryptKey->aiAlgid, &pCryptKey->context, pbData, *pdwDataLen);
     } else if (GET_ALG_TYPE(pCryptKey->aiAlgid) == ALG_TYPE_RSA) {
         if (pCryptKey->aiAlgid == CALG_RSA_SIGN) {
_______________________________________________
wine-users mailing list
wine-users@xxxxxxxxxx
http://www.winehq.org/mailman/listinfo/wine-users

[Index of Archives]     [Gimp for Windows]     [Red Hat]     [Samba]     [Yosemite Camping]     [Graphics Cards]     [Wine Home]

  Powered by Linux