Skip to content

Commit d20673f

Browse files
author
Aaron Rood
committed
Adding InitSecContextWithOptions to SSPI client
1 parent b7e97bb commit d20673f

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

v3/gssapi/sspi.go

+7
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,13 @@ func (c *SSPIClient) DeleteSecContext() error {
7171
// GSS-API between the client and server.
7272
// See RFC 4752 section 3.1.
7373
func (c *SSPIClient) InitSecContext(target string, token []byte) ([]byte, bool, error) {
74+
return c.InitSecContextWithOptions(target, token, []int{})
75+
}
76+
77+
// InitSecContextWithOptions initiates the establishment of a security context for
78+
// GSS-API between the client and server.
79+
// See RFC 4752 section 3.1.
80+
func (c *SSPIClient) InitSecContextWithOptions(target string, token []byte, APOptions []int) ([]byte, bool, error) {
7481
sspiFlags := uint32(sspi.ISC_REQ_INTEGRITY | sspi.ISC_REQ_CONFIDENTIALITY | sspi.ISC_REQ_MUTUAL_AUTH)
7582

7683
switch token {

0 commit comments

Comments
 (0)