Skip to content

Commit 033374a

Browse files
committed
sspi: add comments to AcquireCredentials
1 parent 55a2fc7 commit 033374a

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

sspi.go

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,11 @@ type Credentials struct {
5050
expiry syscall.Filetime
5151
}
5252

53+
// AcquireCredentials calls the windows AcquireCredentialsHandle function and
54+
// returns Credentials containing a security handle that can be used for
55+
// InitializeSecurityContext or AcceptSecurityContext operations.
56+
// As a special case, passing an empty string as the principal parameter will
57+
// pass a null string to the underlying function.
5358
func AcquireCredentials(principal string, pkgname string, creduse uint32, authdata *byte) (*Credentials, error) {
5459
var principalName *uint16
5560
if principal != "" {

0 commit comments

Comments
 (0)