func acquireCredentials(creduse uint32, ai *_SEC_WINNT_AUTH_IDENTITY) (*sspi.Credentials, error) { c, err := sspi.AcquireCredentials(sspi.NTLMSP_NAME, creduse, (*byte)(unsafe.Pointer(ai))) if err != nil { return nil, err } return c, nil }
func acquireCredentials(creduse uint32) (*sspi.Credentials, error) { sc := &__SCHANNEL_CRED{ Version: __SCHANNEL_CRED_VERSION, // TODO: allow for Creds / CredCount // TODO: allow for RootStore // TODO: allow for EnabledProtocols // TODO: allow for MinimumCipherStrength / MaximumCipherStrength } c, err := sspi.AcquireCredentials(sspi.UNISP_NAME, creduse, (*byte)(unsafe.Pointer(sc))) if err != nil { return nil, err } return c, nil }