Versions in this module Expand all Collapse all v8 v8.3.2 May 27, 2020 Changes in this version + const ContextFlagAnon + const ContextFlagConf + const ContextFlagDeleg + const ContextFlagInteg + const ContextFlagMutual + const ContextFlagReplay + const ContextFlagSequence + const FillerByte + const HdrLen + const MICTokenFlagAcceptorSubkey + const MICTokenFlagSealed + const MICTokenFlagSentByAcceptor + const StatusBadBindings + const StatusBadMIC + const StatusBadMech + const StatusBadName + const StatusBadNameType + const StatusBadQOP + const StatusBadSig + const StatusBadStatus + const StatusComplete + const StatusContextExpired + const StatusContinueNeeded + const StatusCredentialsExpired + const StatusDefectiveCredential + const StatusDefectiveToken + const StatusDuplicateElement + const StatusDuplicateToken + const StatusFailure + const StatusGapToken + const StatusNameNotMN + const StatusNoContext + const StatusNoCred + const StatusOldToken + const StatusUnauthorized + const StatusUnavailable + const StatusUnseqToken + type ContextFlags asn1.BitString + func NewContextFlags() ContextFlags + type ContextToken interface + Context func() context.Context + Marshal func() ([]byte, error) + Unmarshal func(b []byte) error + Verify func() (bool, Status) + type MICToken struct + Checksum []byte + Flags byte + Payload []byte + SndSeqNum uint64 + func NewInitiatorMICToken(payload []byte, key types.EncryptionKey) (*MICToken, error) + func (mt *MICToken) Marshal() ([]byte, error) + func (mt *MICToken) SetChecksum(key types.EncryptionKey, keyUsage uint32) error + func (mt *MICToken) Unmarshal(b []byte, expectFromAcceptor bool) error + func (mt *MICToken) Verify(key types.EncryptionKey, keyUsage uint32) (bool, error) + type Mechanism interface + AcceptSecContext func(ct ContextToken) (bool, context.Context, Status) + AcquireCred func() error + InitSecContext func() (ContextToken, error) + MIC func() MICToken + OID func() asn1.ObjectIdentifier + Unwrap func(wt WrapToken) []byte + VerifyMIC func(mt MICToken) (bool, error) + Wrap func(msg []byte) WrapToken + type OIDName string + const OIDGSSIAKerb + const OIDKRB5 + const OIDMSLegacyKRB5 + const OIDSPNEGO + func (o OIDName) OID() asn1.ObjectIdentifier + type Status struct + Code int + Message string + func (s Status) Error() string + type WrapToken struct + CheckSum []byte + EC uint16 + Flags byte + Payload []byte + RRC uint16 + SndSeqNum uint64 + func NewInitiatorWrapToken(payload []byte, key types.EncryptionKey) (*WrapToken, error) + func (wt *WrapToken) Marshal() ([]byte, error) + func (wt *WrapToken) SetCheckSum(key types.EncryptionKey, keyUsage uint32) error + func (wt *WrapToken) Unmarshal(b []byte, expectFromAcceptor bool) error + func (wt *WrapToken) Verify(key types.EncryptionKey, keyUsage uint32) (bool, error) Other modules containing this package github.com/atlassian-forks/gokrb5