package winsspi
import "github.com/microsoft/go-mssqldb/integratedauth/winsspi"
Index ¶
- Constants
- Variables
- type Auth
- func (auth *Auth) Free()
- func (auth *Auth) InitialBytes() ([]byte, error)
- func (auth *Auth) NextBytes(bytes []byte) ([]byte, error)
- type SEC_WINNT_AUTH_IDENTITY
- type SecBuffer
- type SecBufferDesc
- type SecHandle
- type SecurityFunctionTable
- type TimeStamp
Constants ¶
const ( SEC_E_OK = 0 SECPKG_CRED_OUTBOUND = 2 SEC_WINNT_AUTH_IDENTITY_UNICODE = 2 ISC_REQ_DELEGATE = 0x00000001 ISC_REQ_REPLAY_DETECT = 0x00000004 ISC_REQ_SEQUENCE_DETECT = 0x00000008 ISC_REQ_CONFIDENTIALITY = 0x00000010 ISC_REQ_CONNECTION = 0x00000800 SECURITY_NETWORK_DREP = 0 SEC_I_CONTINUE_NEEDED = 0x00090312 SEC_I_COMPLETE_NEEDED = 0x00090313 SEC_I_COMPLETE_AND_CONTINUE = 0x00090314 SECBUFFER_VERSION = 0 SECBUFFER_TOKEN = 2 NTLMBUF_LEN = 12000 )
const ISC_REQ = ISC_REQ_CONFIDENTIALITY |
ISC_REQ_REPLAY_DETECT |
ISC_REQ_SEQUENCE_DETECT |
ISC_REQ_CONNECTION |
ISC_REQ_DELEGATE
Variables ¶
var AuthProvider integratedauth.Provider = integratedauth.ProviderFunc(getAuth)
AuthProvider handles SSPI Windows Authentication via secur32.dll functions
Types ¶
type Auth ¶
type Auth struct {
Domain string
UserName string
Password string
Service string
// contains filtered or unexported fields
}
func (*Auth) Free ¶
func (auth *Auth) Free()
func (*Auth) InitialBytes ¶
func (*Auth) NextBytes ¶
type SEC_WINNT_AUTH_IDENTITY ¶
type SEC_WINNT_AUTH_IDENTITY struct {
User *uint16
UserLength uint32
Domain *uint16
DomainLength uint32
Password *uint16
PasswordLength uint32
Flags uint32
}
type SecBuffer ¶
type SecBuffer struct {
BufferType uint32
// contains filtered or unexported fields
}
type SecBufferDesc ¶
type SecBufferDesc struct {
// contains filtered or unexported fields
}
type SecHandle ¶
type SecHandle struct {
// contains filtered or unexported fields
}
type SecurityFunctionTable ¶
type SecurityFunctionTable struct {
EnumerateSecurityPackages uintptr
QueryCredentialsAttributes uintptr
AcquireCredentialsHandle uintptr
FreeCredentialsHandle uintptr
Reserved2 uintptr
InitializeSecurityContext uintptr
AcceptSecurityContext uintptr
CompleteAuthToken uintptr
DeleteSecurityContext uintptr
ApplyControlToken uintptr
QueryContextAttributes uintptr
ImpersonateSecurityContext uintptr
RevertSecurityContext uintptr
MakeSignature uintptr
VerifySignature uintptr
FreeContextBuffer uintptr
QuerySecurityPackageInfo uintptr
Reserved3 uintptr
Reserved4 uintptr
Reserved5 uintptr
Reserved6 uintptr
Reserved7 uintptr
Reserved8 uintptr
QuerySecurityContextToken uintptr
EncryptMessage uintptr
DecryptMessage uintptr
// contains filtered or unexported fields
}
type TimeStamp ¶
Source Files ¶
- Version
- v1.9.0
- Published
- Jun 24, 2025
- Platform
- windows/amd64
- Imports
- 6 packages
- Last checked
- 4 minutes ago –
Tools for package owners.