Re: [PATCH] Fill a SECBUFFER_MISSING buffer if the message is not complete

2010-09-07 Thread Mikko Rasa
On 07.09.2010 22:37, Hans Leidekker wrote: Hi Mikko, diff --git a/dlls/secur32/schannel.c b/dlls/secur32/schannel.c index 78757ac..192f9cb 100644 --- a/dlls/secur32/schannel.c +++ b/dlls/secur32/schannel.c @@ -1244,6 +1244,15 @@ static SECURITY_STATUS SEC_ENTRY schan_DecryptMessage(PCtxtHandle

Re: [PATCH] Fill a SECBUFFER_MISSING buffer if the message is not complete

2010-09-07 Thread Mikko Rasa
On 07.09.2010 21:29, Juan Lang wrote: Hi Mikko, +// This is a bit weird, but windows does it too You can't use C++-style comments in Wine. You do the same in your tests patch, too. Sorry, my bad. I'll fix them up. -- Mikko

Re: [PATCH] Add some more schannel tests

2010-09-07 Thread Mikko Rasa
On 07.09.2010 22:37, Hans Leidekker wrote: @@ -116,6 +128,10 @@ static void InitFunctionPtrs(void) if(!secdll) secdll = LoadLibraryA("security.dll"); advapi32dll = GetModuleHandleA("advapi32.dll"); +wsockdll = LoadLibraryA("ws2_32.dll"); + +if(!wsockdll) +

Re: [PATCH 1/3] Validate buffers passed to schan_DecryptMessage

2010-09-05 Thread Mikko Rasa
o see this patch applied soon as it's required to play several recent Ubisoft games. Mikko On 30.08.2010 19:37, Mikko Rasa wrote: --- dlls/secur32/schannel.c | 50 ++ 1 files changed, 45 insertions(+), 5 deletions(-)

Re: [PATCH 2/3] Store header and trailer byte counts in schan_context for future use

2010-08-31 Thread Mikko Rasa
On 31.08.2010 16:16, Henri Verbeet wrote: On 30 August 2010 18:37, Mikko Rasa wrote: +ctx->trailer_bytes = pgnutls_mac_get_key_size(pgnutls_mac_get(ctx->session)); ... -stream_sizes->cbHeader = 5; -stream_sizes->cbTrailer = mac_size + 256