Exemple #1
0
 public static extern uint AcquireCredentialsHandle(
     string principal,
     string package,
     SecurityCredentialUse credentialUsage,
     IntPtr logonId,
     IntPtr identity,
     int keyCallback,
     IntPtr keyArgument,
     ref SspiHandle credentialHandle,
     out long timestamp);
Exemple #2
0
 public static extern uint InitializeSecurityContext(
     ref SspiHandle credentialHandle,
     ref SspiHandle inContextHandle,
     string targetName,
     SspiContextFlags flags,
     int reserved1,
     DataRepresentation dataRepresentation,
     ref SecurityBufferDescriptor inputBuffer,
     int reserved2,
     ref SspiHandle outContext,
     ref SecurityBufferDescriptor outputBuffer,
     out SspiContextFlags outAttributes,
     out long timestamp);
Exemple #3
0
 public static extern uint QueryContextAttributes(
     ref SspiHandle inContextHandle,
     QueryContextAttributes attribute,
     out SecurityPackageContextSizes sizes);
Exemple #4
0
 public static extern int FreeCredentialsHandle(ref SspiHandle sspiHandle);
Exemple #5
0
 public static extern uint EncryptMessage(ref SspiHandle context,
                                          EncryptQualityOfProtection quality,
                                          ref SecurityBufferDescriptor pMessage,
                                          uint sequenceNumber);
Exemple #6
0
 public static extern uint DecryptMessage(ref SspiHandle context,
                                          ref SecurityBufferDescriptor pMessage,
                                          uint sequenceNumber,
                                          out uint quality);
Exemple #7
0
 public static extern uint DeleteSecurityContext(ref SspiHandle context);
Exemple #8
0
 public static extern uint DeleteSecurityContext(ref SspiHandle context);
 // constructors
 /// <summary>
 /// Initializes a new instance of the <see cref="SecurityCredential" /> class.
 /// </summary>
 public SecurityCredential()
     : base(IntPtr.Zero, true)
 {
     _sspiHandle = new SspiHandle();
 }
 // constructors
 /// <summary>
 /// Initializes a new instance of the <see cref="SecurityCredential" /> class.
 /// </summary>
 public SecurityCredential()
     : base(IntPtr.Zero, true)
 {
     _sspiHandle = new SspiHandle();
 }
Exemple #11
0
 public static extern uint QueryContextAttributes(
     ref SspiHandle inContextHandle,
     QueryContextAttributes attribute,
     out SecurityPackageContextSizes sizes);
Exemple #12
0
 public static extern uint InitializeSecurityContext(
     ref SspiHandle credentialHandle,
     ref SspiHandle inContextHandle,
     string targetName,
     SspiContextFlags flags,
     int reserved1,
     DataRepresentation dataRepresentation,
     ref SecurityBufferDescriptor inputBuffer,
     int reserved2,
     ref SspiHandle outContext,
     ref SecurityBufferDescriptor outputBuffer,
     out SspiContextFlags outAttributes,
     out long timestamp);
Exemple #13
0
 public static extern int FreeCredentialsHandle(ref SspiHandle sspiHandle);
Exemple #14
0
 public static extern uint EncryptMessage(ref SspiHandle context,
     EncryptQualityOfProtection quality,
     ref SecurityBufferDescriptor pMessage,
     uint sequenceNumber);
Exemple #15
0
 public static extern uint DecryptMessage(ref SspiHandle context,
     ref SecurityBufferDescriptor pMessage,
     uint sequenceNumber,
     out uint quality);
 /// <summary>
 /// Initializes a new instance of the <see cref="SecurityContext" /> class.
 /// </summary>
 public SecurityContext()
     : base(IntPtr.Zero, true)
 {
     _sspiHandle = new SspiHandle();
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="SecurityContext" /> class.
 /// </summary>
 public SecurityContext()
     : base(IntPtr.Zero, true)
 {
     _sspiHandle = new SspiHandle();
 }
Exemple #18
0
 public static extern uint AcquireCredentialsHandle(
     string principal,
     string package,
     SecurityCredentialUse credentialUsage,
     IntPtr logonId,
     IntPtr identity,
     int keyCallback,
     IntPtr keyArgument,
     ref SspiHandle credentialHandle,
     out long timestamp);