From 57c2e8cc5297eafa9e75029aa2f353b08dc13803 Mon Sep 17 00:00:00 2001 From: antiduh Date: Tue, 1 Jul 2014 21:59:42 +0000 Subject: [PATCH] Add usage of the sequenceNumber and qualityOfProtection parameters, at least at the bottom layer. Upper layers don't right now, but we can change that later. --- NSspi/Contexts/ContextNativeMethods.cs | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/NSspi/Contexts/ContextNativeMethods.cs b/NSspi/Contexts/ContextNativeMethods.cs index 5f3d330..08f845d 100644 --- a/NSspi/Contexts/ContextNativeMethods.cs +++ b/NSspi/Contexts/ContextNativeMethods.cs @@ -204,9 +204,9 @@ namespace NSspi.Contexts { status = ContextNativeMethods.EncryptMessage( ref handle.rawHandle, - 0, + qualityOfProtection, bufferAdapter.Handle, - 0 + sequenceNumber ); handle.DangerousRelease(); @@ -247,8 +247,8 @@ namespace NSspi.Contexts status = ContextNativeMethods.DecryptMessage( ref handle.rawHandle, bufferAdapter.Handle, - 0, - 0 + sequenceNumber, + qualityOfProtection ); handle.DangerousRelease(); @@ -288,9 +288,9 @@ namespace NSspi.Contexts { status = ContextNativeMethods.MakeSignature( ref handle.rawHandle, - 0, + qualityOfProtection, adapter.Handle, - 0 + sequenceNumber ); handle.DangerousRelease(); @@ -331,8 +331,8 @@ namespace NSspi.Contexts status = ContextNativeMethods.VerifySignature( ref handle.rawHandle, adapter.Handle, - 0, - 0 + sequenceNumber, + qualityOfProtection ); handle.DangerousRelease();