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.
This commit is contained in:
@@ -204,9 +204,9 @@ namespace NSspi.Contexts
|
|||||||
{
|
{
|
||||||
status = ContextNativeMethods.EncryptMessage(
|
status = ContextNativeMethods.EncryptMessage(
|
||||||
ref handle.rawHandle,
|
ref handle.rawHandle,
|
||||||
0,
|
qualityOfProtection,
|
||||||
bufferAdapter.Handle,
|
bufferAdapter.Handle,
|
||||||
0
|
sequenceNumber
|
||||||
);
|
);
|
||||||
|
|
||||||
handle.DangerousRelease();
|
handle.DangerousRelease();
|
||||||
@@ -247,8 +247,8 @@ namespace NSspi.Contexts
|
|||||||
status = ContextNativeMethods.DecryptMessage(
|
status = ContextNativeMethods.DecryptMessage(
|
||||||
ref handle.rawHandle,
|
ref handle.rawHandle,
|
||||||
bufferAdapter.Handle,
|
bufferAdapter.Handle,
|
||||||
0,
|
sequenceNumber,
|
||||||
0
|
qualityOfProtection
|
||||||
);
|
);
|
||||||
|
|
||||||
handle.DangerousRelease();
|
handle.DangerousRelease();
|
||||||
@@ -288,9 +288,9 @@ namespace NSspi.Contexts
|
|||||||
{
|
{
|
||||||
status = ContextNativeMethods.MakeSignature(
|
status = ContextNativeMethods.MakeSignature(
|
||||||
ref handle.rawHandle,
|
ref handle.rawHandle,
|
||||||
0,
|
qualityOfProtection,
|
||||||
adapter.Handle,
|
adapter.Handle,
|
||||||
0
|
sequenceNumber
|
||||||
);
|
);
|
||||||
|
|
||||||
handle.DangerousRelease();
|
handle.DangerousRelease();
|
||||||
@@ -331,8 +331,8 @@ namespace NSspi.Contexts
|
|||||||
status = ContextNativeMethods.VerifySignature(
|
status = ContextNativeMethods.VerifySignature(
|
||||||
ref handle.rawHandle,
|
ref handle.rawHandle,
|
||||||
adapter.Handle,
|
adapter.Handle,
|
||||||
0,
|
sequenceNumber,
|
||||||
0
|
qualityOfProtection
|
||||||
);
|
);
|
||||||
|
|
||||||
handle.DangerousRelease();
|
handle.DangerousRelease();
|
||||||
|
|||||||
Reference in New Issue
Block a user