From 0eb8ff49f295fab26b1ce6b11c05b4fd987efff0 Mon Sep 17 00:00:00 2001 From: Kevin Thompson Date: Sun, 24 Sep 2017 01:56:36 -0400 Subject: [PATCH] Fixed ClientContext and ServerContext constructors. Changed the contexts to take in any Credential implementation, instead of requiring client- or server-specific credentials. --- NSspi/Contexts/ClientContext.cs | 2 +- NSspi/Contexts/ServerContext.cs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/NSspi/Contexts/ClientContext.cs b/NSspi/Contexts/ClientContext.cs index 9e52257..7bb4f05 100644 --- a/NSspi/Contexts/ClientContext.cs +++ b/NSspi/Contexts/ClientContext.cs @@ -28,7 +28,7 @@ namespace NSspi.Contexts /// 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. - public ClientContext( ClientCredential cred, string serverPrinc, ContextAttrib requestedAttribs ) + public ClientContext( Credential cred, string serverPrinc, ContextAttrib requestedAttribs ) : base( cred ) { this.serverPrinc = serverPrinc; diff --git a/NSspi/Contexts/ServerContext.cs b/NSspi/Contexts/ServerContext.cs index 5cb355b..c9b331f 100644 --- a/NSspi/Contexts/ServerContext.cs +++ b/NSspi/Contexts/ServerContext.cs @@ -21,7 +21,7 @@ namespace NSspi.Contexts /// /// /// - public ServerContext( ServerCredential cred, ContextAttrib requestedAttribs ) : base( cred ) + public ServerContext( Credential cred, ContextAttrib requestedAttribs ) : base( cred ) { this.requestedAttribs = requestedAttribs; this.finalAttribs = ContextAttrib.Zero;