Exemple #1
0
 public static extern int AcceptSecurityContext(CredHandle phCredential, CtxHandle phContext,
                                                ref SecBufferDesc pInput,
                                                uint fContextReq,
                                                uint TargetDataRep,
                                                CtxHandle phNewContext,
                                                out SecBufferDesc pOutput,
                                                out uint pfContextAttr, //managed ulong == 64 bits!!!
                                                TimeStamp ptsTimeStamp);
Exemple #2
0
 public static extern int AcquireCredentialsHandle(
     string pszPrincipal,      //SEC_CHAR*
     string pszPackage,        //SEC_CHAR* //"Kerberos","NTLM","Negotiative"
     int fCredentialUse,
     IntPtr PAuthenticationID, //_LUID AuthenticationID,//pvLogonID, //PLUID
     IntPtr pAuthData,         //PVOID
     IntPtr pGetKeyFn,         //SEC_GET_KEY_FN
     IntPtr pvGetKeyArgument,  //PVOID
     CredHandle phCredential,  //SecHandle //PCtxtHandle ref
     TimeStamp ptsExpiry);     //PTimeStamp //TimeStamp ref
Exemple #3
0
 internal static unsafe partial int AcceptSecurityContext(
     ref CredHandle credentialHandle,
     void *inContextPtr,
     SecBufferDesc *inputBuffer,
     ContextFlags inFlags,
     Endianness endianness,
     ref CredHandle outContextPtr,
     ref SecBufferDesc outputBuffer,
     ref ContextFlags attributes,
     out long timeStamp);
Exemple #4
0
 internal static unsafe partial int AcquireCredentialsHandleW(
     string?principal,
     string moduleName,
     int usage,
     void *logonID,
     SCH_CREDENTIALS *authData,
     void *keyCallback,
     void *keyArgument,
     ref CredHandle handlePtr,
     out long timeStamp);
Exemple #5
0
 internal unsafe static extern int AcquireCredentialsHandleW(
     [In] string principal,
     [In] string moduleName,
     [In] int usage,
     [In] void *logonID,
     [In] ref SEC_WINNT_AUTH_IDENTITY_W authdata,
     [In] void *keyCallback,
     [In] void *keyArgument,
     ref CredHandle handlePtr,
     [Out] out long timeStamp
     );
Exemple #6
0
 internal static extern unsafe int AcceptSecurityContext(
     ref CredHandle credentialHandle,
     [In] void *inContextPtr,
     [In] SecBufferDesc *inputBuffer,
     [In] ContextFlags inFlags,
     [In] Endianness endianness,
     ref CredHandle outContextPtr,
     [In, Out] ref SecBufferDesc outputBuffer,
     [In, Out] ref ContextFlags attributes,
     out long timeStamp
     );
Exemple #7
0
 internal static extern unsafe int AcquireCredentialsHandleW(
     [In] string principal,
     [In] string moduleName,
     [In] int usage,
     [In] void *logonID,
     [In] IntPtr zero,
     [In] void *keyCallback,
     [In] void *keyArgument,
     ref CredHandle handlePtr,
     [Out] out long timeStamp
     );
Exemple #8
0
 internal static extern unsafe int AcquireCredentialsHandleW(
     [In] string?principal,
     [In] string moduleName,
     [In] int usage,
     [In] void *logonID,
     [In] SCH_CREDENTIALS *authData,
     [In] void *keyCallback,
     [In] void *keyArgument,
     ref CredHandle handlePtr,
     [Out] out long timeStamp
     );
Exemple #9
0
 internal unsafe static extern int AcquireCredentialsHandleW(
     [In] string principal,
     [In] string moduleName,
     [In] int usage,
     [In] void *logonID,
     [In] ref SCHANNEL_CRED authData,
     [In] void *keyCallback,
     [In] void *keyArgument,
     ref CredHandle handlePtr,
     [Out] out long timeStamp
     );
Exemple #10
0
 internal static unsafe partial int InitializeSecurityContextW(
     ref CredHandle credentialHandle,
     void *inContextPtr,
     byte *targetName,
     ContextFlags inFlags,
     int reservedI,
     Endianness endianness,
     SecBufferDesc *inputBuffer,
     int reservedII,
     ref CredHandle outContextPtr,
     ref SecBufferDesc outputBuffer,
     ref ContextFlags attributes,
     out long timeStamp);
Exemple #11
0
 internal static extern unsafe int InitializeSecurityContextW(
     ref CredHandle credentialHandle,
     [In] void *inContextPtr,
     [In] byte *targetName,
     [In] ContextFlags inFlags,
     [In] int reservedI,
     [In] Endianness endianness,
     [In] SecBufferDesc *inputBuffer,
     [In] int reservedII,
     ref CredHandle outContextPtr,
     [In, Out] ref SecBufferDesc outputBuffer,
     [In, Out] ref ContextFlags attributes,
     out long timeStamp
     );
Exemple #12
0
 internal static extern int SetContextAttributesW(
     ref CredHandle contextHandle,
     [In] ContextAttribute attribute,
     [In] byte[] buffer,
     [In] int bufferSize);
Exemple #13
0
 internal static extern unsafe int QueryContextAttributesW(
     ref CredHandle contextHandle,
     [In] ContextAttribute attribute,
     [In] void *buffer);
Exemple #14
0
 internal static partial int EncryptMessage(
     ref CredHandle contextHandle,
     uint qualityOfProtection,
     ref SecBufferDesc inputOutput,
     uint sequenceNumber);
Exemple #15
0
 internal static extern int DeleteSecurityContext(
     ref CredHandle handlePtr
     );
Exemple #16
0
 internal static extern int FreeCredentialsHandle(
     ref CredHandle handlePtr
     );
Exemple #17
0
 internal static partial int DeleteSecurityContext(
     ref CredHandle handlePtr);
Exemple #18
0
 internal static extern int EncryptMessage(
       ref CredHandle contextHandle,
       [In] uint qualityOfProtection,
       [In, Out] ref SecBufferDesc inputOutput,
       [In] uint sequenceNumber
       );
Exemple #19
0
 internal unsafe static extern int AcquireCredentialsHandleW(
           [In] string principal,
           [In] string moduleName,
           [In] int usage,
           [In] void* logonID,
           [In] ref SCHANNEL_CRED authData,
           [In] void* keyCallback,
           [In] void* keyArgument,
           ref CredHandle handlePtr,
           [Out] out long timeStamp
           );
Exemple #20
0
 internal unsafe static extern int SetContextAttributesW(
     ref CredHandle contextHandle,
     [In] ContextAttribute attribute,
     [In] byte[] buffer,
     [In] int bufferSize);
Exemple #21
0
 internal unsafe static extern int AcceptSecurityContext(
           ref CredHandle credentialHandle,
           [In] void* inContextPtr,
           [In] SecBufferDesc* inputBuffer,
           [In] ContextFlags inFlags,
           [In] Endianness endianness,
           ref CredHandle outContextPtr,
           [In, Out] ref SecBufferDesc outputBuffer,
           [In, Out] ref ContextFlags attributes,
           out long timeStamp
           );
Exemple #22
0
 internal static extern int FreeCredentialsHandle(
       ref CredHandle handlePtr
       );
Exemple #23
0
 internal static partial int SetContextAttributesW(
     ref CredHandle contextHandle,
     ContextAttribute attribute,
     byte[] buffer,
     int bufferSize);
Exemple #24
0
 internal static unsafe partial int QueryContextAttributesW(
     ref CredHandle contextHandle,
     ContextAttribute attribute,
     void *buffer);
Exemple #25
0
 internal static partial int QuerySecurityContextToken(
     ref CredHandle phContext,
     out SecurityContextTokenHandle handle);
Exemple #26
0
 internal static extern SECURITY_STATUS SetCredentialsAttributesW(
     [In] ref CredHandle handlePtr,
     [In] long ulAttribute,
     [In] ref SecPkgCred_ClientCertPolicy pBuffer,
     [In] long cbBuffer);
Exemple #27
0
 internal static unsafe partial int DecryptMessage(
     ref CredHandle contextHandle,
     ref SecBufferDesc inputOutput,
     uint sequenceNumber,
     uint *qualityOfProtection);
Exemple #28
0
 internal static extern int QuerySecurityContextToken(
     ref CredHandle phContext,
     [Out] out SecurityContextTokenHandle handle);
Exemple #29
0
 internal static extern int QuerySecurityContextToken(
     ref CredHandle phContext,
     [Out] out SecurityContextTokenHandle handle);
Exemple #30
0
 internal static partial int FreeCredentialsHandle(
     ref CredHandle handlePtr);
Exemple #31
0
 internal static extern int DeleteSecurityContext(
       ref CredHandle handlePtr
       );
 internal static extern uint QueryContextAttributes(ref CredHandle contextHandle, [In] ContextAttribute attribute, [In] IntPtr buffer);
Exemple #33
0
 internal unsafe static extern int QueryContextAttributesW(
     ref CredHandle contextHandle,
     [In] ContextAttribute attribute,
     [In] void* buffer);
Exemple #34
0
 internal static extern int EncryptMessage(
     ref CredHandle contextHandle,
     [In] uint qualityOfProtection,
     [In, Out] ref SecBufferDesc inputOutput,
     [In] uint sequenceNumber
     );
Exemple #35
0
 internal unsafe static extern int AcquireCredentialsHandleW(
           [In] string principal,
           [In] string moduleName,
           [In] int usage,
           [In] void* logonID,
           [In] ref SEC_WINNT_AUTH_IDENTITY_W authdata,
           [In] void* keyCallback,
           [In] void* keyArgument,
           ref CredHandle handlePtr,
           [Out] out long timeStamp
           );
Exemple #36
0
 internal static extern unsafe int DecryptMessage(
     [In] ref CredHandle contextHandle,
     [In, Out] ref SecBufferDesc inputOutput,
     [In] uint sequenceNumber,
     uint *qualityOfProtection
     );
Exemple #37
0
 internal unsafe static extern int InitializeSecurityContextW(
           ref CredHandle credentialHandle,
           [In] void* inContextPtr,
           [In] byte* targetName,
           [In] ContextFlags inFlags,
           [In] int reservedI,
           [In] Endianness endianness,
           [In] SecBufferDesc* inputBuffer,
           [In] int reservedII,
           ref CredHandle outContextPtr,
           [In, Out] ref SecBufferDesc outputBuffer,
           [In, Out] ref ContextFlags attributes,
           out long timeStamp
           );
Exemple #38
0
 internal static extern unsafe int AcquireCredentialsHandleW(
           [In] string principal,
           [In] string moduleName,
           [In] int usage,
           [In] void* logonID,
           [In] SafeSspiAuthDataHandle authdata,
           [In] void* keyCallback,
           [In] void* keyArgument,
           ref CredHandle handlePtr,
           [Out] out long timeStamp
           );