Versions in this module Expand all Collapse all v8 v8.5.0 Oct 12, 2022 Changes in this version + func MarshalTicketSequence(tkts []Ticket) (asn1.RawValue, error) + type APRep struct + EncPart types.EncryptedData + MsgType int + PVNO int + func (a *APRep) Unmarshal(b []byte) error + type APReq struct + APOptions asn1.BitString + Authenticator types.Authenticator + EncryptedAuthenticator types.EncryptedData + MsgType int + PVNO int + Ticket Ticket + func NewAPReq(tkt Ticket, sessionKey types.EncryptionKey, auth types.Authenticator) (APReq, error) + func (a *APReq) DecryptAuthenticator(sessionKey types.EncryptionKey) error + func (a *APReq) Marshal() ([]byte, error) + func (a *APReq) Unmarshal(b []byte) error + func (a *APReq) Verify(kt *keytab.Keytab, d time.Duration, cAddr types.HostAddress, ...) (bool, error) + type ASRep struct + func (k *ASRep) DecryptEncPart(c *credentials.Credentials) (types.EncryptionKey, error) + func (k *ASRep) Marshal() ([]byte, error) + func (k *ASRep) Unmarshal(b []byte) error + func (k *ASRep) Verify(cfg *config.Config, creds *credentials.Credentials, asReq ASReq) (bool, error) + type ASReq struct + func NewASReq(realm string, c *config.Config, cname, sname types.PrincipalName) (ASReq, error) + func NewASReqForChgPasswd(realm string, c *config.Config, cname types.PrincipalName) (ASReq, error) + func NewASReqForTGT(realm string, c *config.Config, cname types.PrincipalName) (ASReq, error) + func (k *ASReq) Marshal() ([]byte, error) + func (k *ASReq) Unmarshal(b []byte) error + type EncAPRepPart struct + CTime time.Time + Cusec int + SequenceNumber int64 + Subkey types.EncryptionKey + func (a *EncAPRepPart) Unmarshal(b []byte) error + type EncKDCRepPart struct + AuthTime time.Time + CAddr []types.HostAddress + EncPAData types.PADataSequence + EndTime time.Time + Flags asn1.BitString + Key types.EncryptionKey + KeyExpiration time.Time + LastReqs []LastReq + Nonce int + RenewTill time.Time + SName types.PrincipalName + SRealm string + StartTime time.Time + func (e *EncKDCRepPart) Marshal() ([]byte, error) + func (e *EncKDCRepPart) Unmarshal(b []byte) error + type EncKrbCredPart struct + Nouce int + RAddress types.HostAddress + SAddress types.HostAddress + TicketInfo []KrbCredInfo + Timestamp time.Time + Usec int + func (k *EncKrbCredPart) Unmarshal(b []byte) error + type EncKrbPrivPart struct + RAddress types.HostAddress + SAddress types.HostAddress + SequenceNumber int64 + Timestamp time.Time + Usec int + UserData []byte + func (k *EncKrbPrivPart) Unmarshal(b []byte) error + type EncTicketPart struct + AuthTime time.Time + AuthorizationData types.AuthorizationData + CAddr types.HostAddresses + CName types.PrincipalName + CRealm string + EndTime time.Time + Flags asn1.BitString + Key types.EncryptionKey + RenewTill time.Time + StartTime time.Time + Transited TransitedEncoding + func (t *EncTicketPart) Unmarshal(b []byte) error + type KDCRepFields struct + CName types.PrincipalName + CRealm string + DecryptedEncPart EncKDCRepPart + EncPart types.EncryptedData + MsgType int + PAData []types.PAData + PVNO int + Ticket Ticket + type KDCReqBody struct + AdditionalTickets []Ticket + Addresses []types.HostAddress + CName types.PrincipalName + EType []int32 + EncAuthData types.EncryptedData + From time.Time + KDCOptions asn1.BitString + Nonce int + RTime time.Time + Realm string + SName types.PrincipalName + Till time.Time + func (k *KDCReqBody) Marshal() ([]byte, error) + func (k *KDCReqBody) Unmarshal(b []byte) error + type KDCReqFields struct + MsgType int + PAData types.PADataSequence + PVNO int + Renewal bool + ReqBody KDCReqBody + type KRBCred struct + DecryptedEncPart EncKrbCredPart + EncPart types.EncryptedData + MsgType int + PVNO int + Tickets []Ticket + func (k *KRBCred) DecryptEncPart(key types.EncryptionKey) error + func (k *KRBCred) Unmarshal(b []byte) error + type KRBError struct + CName types.PrincipalName + CRealm string + CTime time.Time + Cusec int + EData []byte + EText string + ErrorCode int32 + MsgType int + PVNO int + Realm string + SName types.PrincipalName + STime time.Time + Susec int + func NewKRBError(sname types.PrincipalName, realm string, code int32, etext string) KRBError + func (k *KRBError) Marshal() ([]byte, error) + func (k *KRBError) Unmarshal(b []byte) error + func (k KRBError) Error() string + type KRBPriv struct + DecryptedEncPart EncKrbPrivPart + EncPart types.EncryptedData + MsgType int + PVNO int + func NewKRBPriv(part EncKrbPrivPart) KRBPriv + func (k *KRBPriv) DecryptEncPart(key types.EncryptionKey) error + func (k *KRBPriv) EncryptEncPart(key types.EncryptionKey) error + func (k *KRBPriv) Marshal() ([]byte, error) + func (k *KRBPriv) Unmarshal(b []byte) error + type KRBSafe struct + Cksum types.Checksum + MsgType int + PVNO int + SafeBody KRBSafeBody + func (s *KRBSafe) Unmarshal(b []byte) error + type KRBSafeBody struct + RAddress types.HostAddress + SAddress types.HostAddress + SequenceNumber int64 + Timestamp time.Time + Usec int + UserData []byte + type KrbCredInfo struct + AuthTime time.Time + CAddr types.HostAddresses + EndTime time.Time + Flags asn1.BitString + Key types.EncryptionKey + PName types.PrincipalName + PRealm string + RenewTill time.Time + SName types.PrincipalName + SRealm string + StartTime time.Time + type LastReq struct + LRType int32 + LRValue time.Time + type TGSRep struct + func (k *TGSRep) DecryptEncPart(key types.EncryptionKey) error + func (k *TGSRep) Marshal() ([]byte, error) + func (k *TGSRep) Unmarshal(b []byte) error + func (k *TGSRep) Verify(cfg *config.Config, tgsReq TGSReq) (bool, error) + type TGSReq struct + func NewTGSReq(cname types.PrincipalName, kdcRealm string, c *config.Config, tgt Ticket, ...) (TGSReq, error) + func NewUser2UserTGSReq(cname types.PrincipalName, kdcRealm string, c *config.Config, clientTGT Ticket, ...) (TGSReq, error) + func (k *TGSReq) Marshal() ([]byte, error) + func (k *TGSReq) Unmarshal(b []byte) error + type Ticket struct + DecryptedEncPart EncTicketPart + EncPart types.EncryptedData + Realm string + SName types.PrincipalName + TktVNO int + func NewTicket(cname types.PrincipalName, crealm string, sname types.PrincipalName, ...) (Ticket, types.EncryptionKey, error) + func (t *Ticket) Decrypt(key types.EncryptionKey) error + func (t *Ticket) DecryptEncPart(keytab *keytab.Keytab, sname *types.PrincipalName) error + func (t *Ticket) GetPACType(keytab *keytab.Keytab, sname *types.PrincipalName, l *log.Logger) (bool, pac.PACType, error) + func (t *Ticket) Marshal() ([]byte, error) + func (t *Ticket) Unmarshal(b []byte) error + func (t *Ticket) Valid(d time.Duration) (bool, error) + type TransitedEncoding struct + Contents []byte + TRType int32 Other modules containing this package github.com/bolkedebruin/gokrb5