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:
@@ -28,7 +28,7 @@ namespace NSspi.Contexts
|
|||||||
/// <param name="requestedAttribs">Requested attributes that describe the desired properties of the
|
/// <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
|
/// context once it is established. If a context cannot be established that satisfies the indicated
|
||||||
/// properties, the context initialization is aborted.</param>
|
/// 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 )
|
: base( cred )
|
||||||
{
|
{
|
||||||
this.serverPrinc = serverPrinc;
|
this.serverPrinc = serverPrinc;
|
||||||
|
|||||||
@@ -21,7 +21,7 @@ namespace NSspi.Contexts
|
|||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="cred"></param>
|
/// <param name="cred"></param>
|
||||||
/// <param name="requestedAttribs"></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.requestedAttribs = requestedAttribs;
|
||||||
this.finalAttribs = ContextAttrib.Zero;
|
this.finalAttribs = ContextAttrib.Zero;
|
||||||
|
|||||||
Reference in New Issue
Block a user