diff --git a/NSspi/Contexts/ContextQueries.cs b/NSspi/Contexts/ContextQueries.cs index 0499b5e..14e914f 100644 --- a/NSspi/Contexts/ContextQueries.cs +++ b/NSspi/Contexts/ContextQueries.cs @@ -7,7 +7,9 @@ using System.Threading.Tasks; namespace NSspi.Contexts { - + /// + /// Stores the result of a context query for the context's buffer sizes. + /// [StructLayout( LayoutKind.Sequential )] internal struct SecPkgContext_Sizes { @@ -17,6 +19,9 @@ namespace NSspi.Contexts public int SecurityTrailer; } + /// + /// Stores the result of a context query for a string-valued context attribute. + /// [StructLayout( LayoutKind.Sequential )] internal struct SecPkgContext_String { diff --git a/NSspi/Contexts/ServerContext.cs b/NSspi/Contexts/ServerContext.cs index adfffc8..2ea1721 100644 --- a/NSspi/Contexts/ServerContext.cs +++ b/NSspi/Contexts/ServerContext.cs @@ -9,6 +9,9 @@ using NSspi.Credentials; namespace NSspi.Contexts { + /// + /// Represents a security context used in a server role. + /// public class ServerContext : Context { private ContextAttrib requestedAttribs; @@ -16,6 +19,12 @@ namespace NSspi.Contexts private bool impersonating; + /// + /// Performs basic initialization of a new instance of the ServerContext class. The ServerContext + /// is not ready for message manipulation until a security context has been established with a client. + /// + /// + /// public ServerContext(ServerCredential cred, ContextAttrib requestedAttribs) : base ( cred ) { this.requestedAttribs = requestedAttribs;