Esempio n. 1
0
 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
     int pGetKeyFn,                                                         //SEC_GET_KEY_FN
     IntPtr pvGetKeyArgument,                                               //PVOID
     ref SECURITY_HANDLE phCredential,                                      //SecHandle //PCtxtHandle ref
     ref SECURITY_INTEGER ptsExpiry);                                       //PTimeStamp //TimeStamp ref
Esempio n. 2
0
 static extern int AcceptSecurityContext(
     ref SECURITY_HANDLE phCredential,
     ref SECURITY_HANDLE phContext,
     ref SecBufferDesc pInput,
     uint fContextReq,
     uint TargetDataRep,
     out SECURITY_HANDLE phNewContext,
     out SecBufferDesc pOutput,
     out uint pfContextAttr,
     out SECURITY_INTEGER ptsTimeStamp);
Esempio n. 3
0
 static extern int InitializeSecurityContext(
     ref SECURITY_HANDLE phCredential,                                       //PCredHandle
     ref SECURITY_HANDLE phContext,                                          //PCtxtHandle
     string pszTargetName,
     int fContextReq,
     int Reserved1,
     int TargetDataRep,
     ref SecBufferDesc SecBufferDesc,                                        //PSecBufferDesc SecBufferDesc
     int Reserved2,
     out SECURITY_HANDLE phNewContext,                                       //PCtxtHandle
     out SecBufferDesc pOutput,                                              //PSecBufferDesc SecBufferDesc
     out uint pfContextAttr,                                                 //managed ulong == 64 bits!!!
     out SECURITY_INTEGER ptsExpiry);                                        //PTimeStamp
Esempio n. 4
0
 public static extern int ImpersonateSecurityContext(ref SECURITY_HANDLE phContext);
Esempio n. 5
0
 public static extern int VerifySignature(
     ref SECURITY_HANDLE phContext,                                         // Context to use
     ref SecBufferDesc pMessage,                                            // Message to sign
     uint MessageSeqNo,                                                     // Message Sequence Num.
     out uint pfQOP);
Esempio n. 6
0
 public static extern int MakeSignature(
     ref SECURITY_HANDLE phContext,                                         // Context to use
     uint fQOP,                                                             // Quality of Protection
     ref SecBufferDesc pMessage,                                            // Message to sign
     uint MessageSeqNo);                                                    // Message Sequence Num.
Esempio n. 7
0
 public static extern int DecryptMessage(
     ref SECURITY_HANDLE phContext,
     ref SecBufferDesc pMessage,
     uint MessageSeqNo,
     out uint pfQOP);
Esempio n. 8
0
 public static extern int EncryptMessage(
     ref SECURITY_HANDLE phContext,
     uint fQOP,
     ref SecBufferDesc pMessage,
     uint MessageSeqNo);
Esempio n. 9
0
 public static extern int QueryContextAttributes(
     ref SECURITY_HANDLE phContext,
     uint ulAttribute,
     out SecPkgContext_Sizes pContextAttributes);
Esempio n. 10
0
 public static extern int ExportSecurityContext(
     ref SECURITY_HANDLE phContext,
     uint fFlags,
     IntPtr pPackedContent,
     IntPtr pToken);
Esempio n. 11
0
 public static extern int QuerySecurityContextToken(
     ref SECURITY_HANDLE phContext,
     out IntPtr hToken);
Esempio n. 12
0
 public static extern int QueryContextAttributes(
     ref SECURITY_HANDLE phContext,
     uint ulAttribute,
     out SecPkgContext_SessionKey pSessKeyOut);