From 1577d2de66777ed0d88ec0e0273c4428745b3484 Mon Sep 17 00:00:00 2001 From: antiduh Date: Wed, 25 Jun 2014 01:30:03 +0000 Subject: [PATCH] More reliability contracts for CERs. --- Contexts/ContextNativeMethods.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Contexts/ContextNativeMethods.cs b/Contexts/ContextNativeMethods.cs index 70436cb..15a5eb7 100644 --- a/Contexts/ContextNativeMethods.cs +++ b/Contexts/ContextNativeMethods.cs @@ -102,7 +102,7 @@ namespace NSspi ref long expiry ); - + [ReliabilityContract(Consistency.WillNotCorruptState, Cer.Success )] [DllImport( "Secur32.dll", EntryPoint = "DeleteSecurityContext", CharSet = CharSet.Unicode )] internal static extern SecurityStatus DeleteSecurityContext( ref RawSspiHandle contextHandle );