http://bugs.winehq.org/show_bug.cgi?id=3254
--- Comment #68 from Sisir myspecialids-wine@yahoo.co.in 2009-06-04 10:58:01 --- Thanks Dan for pointing out the link
Here is the result of my earlier experiment with Hans and Henri's patch both together.
0009:Call secur32.DecryptMessage(05449850,0032e498,00000000,00000000) ret=004cdbd5 trace:secur32:DecryptMessage 0x5449850 0x32e498 0 (nil) trace:secur32:schan_DecryptMessage context_handle 0x2cf8bd8, message 0x32e498, message_seq_no 0, quality (nil) trace:secur32:dump_buffer_desc Buffer desc 0x32e498: trace:secur32:dump_buffer_desc buffer 0: cbBuffer 623, BufferType 0x1 pvBuffer 0x5459378 trace:secur32:dump_buffer_desc buffer 1: cbBuffer 0, BufferType 0 pvBuffer (nil) trace:secur32:dump_buffer_desc buffer 2: cbBuffer 0, BufferType 0 pvBuffer (nil) trace:secur32:dump_buffer_desc buffer 3: cbBuffer 0, BufferType 0 pvBuffer (nil) 0009:Call ntdll.RtlAllocateHeap(00110000,00000000,0000026f) ret=6055b149 0009:Ret ntdll.RtlAllocateHeap() retval=02c08900 ret=6055b149 trace:secur32:schan_pull Pull 5 bytes trace:secur32:schan_get_buffer Using buffer 0: cbBuffer 623, BufferType 0x1, pvBuffer 0x5459378 trace:secur32:schan_pull Read 5 bytes trace:secur32:schan_gnutls_log <4> REC[7d09bc20]: Expected Packet[25] Application Data(23) with length: 124 trace:secur32:schan_gnutls_log <4> REC[7d09bc20]: Received Packet[25] Application Data(23) with length: 128 trace:secur32:schan_pull Pull 128 bytes trace:secur32:schan_get_buffer Using buffer 0: cbBuffer 623, BufferType 0x1, pvBuffer 0x5459378 trace:secur32:schan_pull Read 128 bytes trace:secur32:schan_gnutls_log <2> ASSERT: gnutls_cipher.c:578 trace:secur32:schan_gnutls_log <2> ASSERT: gnutls_record.c:1001 GNUTLS ERROR: Decryption has failed. 0009:Call ntdll.RtlFreeHeap(00110000,00000000,02c08900) ret=6055b326 0009:Ret ntdll.RtlFreeHeap() retval=00000001 ret=6055b326 err:secur32:schan_DecryptMessage Returning SEC_E_INTERNAL_ERROR
I'll apply the new patch that Hans provided and see if it works.