Fixed ClientContext and ServerContext constructors.

Changed the contexts to take in any Credential implementation, instead of requiring client- or server-specific credentials.
This commit is contained in:
Kevin Thompson
2017-09-24 01:56:36 -04:00
parent 3b189d2865
commit 0eb8ff49f2
2 changed files with 2 additions and 2 deletions

View File

@@ -28,7 +28,7 @@ namespace NSspi.Contexts
/// <param name="requestedAttribs">Requested attributes that describe the desired properties of the
/// context once it is established. If a context cannot be established that satisfies the indicated
/// properties, the context initialization is aborted.</param>
public ClientContext( ClientCredential cred, string serverPrinc, ContextAttrib requestedAttribs )
public ClientContext( Credential cred, string serverPrinc, ContextAttrib requestedAttribs )
: base( cred )
{
this.serverPrinc = serverPrinc;

View File

@@ -21,7 +21,7 @@ namespace NSspi.Contexts
/// </summary>
/// <param name="cred"></param>
/// <param name="requestedAttribs"></param>
public ServerContext( ServerCredential cred, ContextAttrib requestedAttribs ) : base( cred )
public ServerContext( Credential cred, ContextAttrib requestedAttribs ) : base( cred )
{
this.requestedAttribs = requestedAttribs;
this.finalAttribs = ContextAttrib.Zero;