using System; namespace NSspi.Contexts { /// /// Defines the types of queries that can be performed with QueryContextAttribute. /// Each query has a different result buffer. /// internal enum ContextQueryAttrib : int { /// /// Queries the buffer size parameters when performing message functions, such /// as encryption, decryption, signing and signature validation. /// /// /// Results for a query of this type are stored in a Win32 SecPkgContext_Sizes structure. /// Sizes = 0, /// /// Queries the context for the name of the user assocated with a security context. /// /// /// Results for a query of this type are stored in a Win32 SecPkgContext_Name structure. /// Names = 1, /// /// Queries the name of the authenticating authority for the security context. /// /// /// Results for a query of this type are stored in a Win32 SecPkgContext_Authority structure. /// Authority = 6, /// /// Queries the context for it's neogtiated SessionKey /// /// /// Results for a query of this type are stored in a Win32 SecPkgContext_SessionKey structure /// SessionKey = 9, AccessToken = 13, //not implemented yet but this would be cool } }