Documentation ¶
Overview ¶
Package krb5test contains test vectors for fake davidben and zephyr/zephyr credentials. The relevant keys are randomly generated, but a server that believes itself to be Server() with a key of ServerKey() and kvno of ServerKeyVersion() should accept authenticators made with Credential().
Index ¶
Constants ¶
View Source
const AuthTimeRaw = 946702800
View Source
const EndTimeRaw = 2145934800
Variables ¶
View Source
var Realm = "ATHENA.MIT.EDU"
View Source
var ServerKeyBase64 = "bLf6Aonq1GW3KgYzsE0jNg=="
View Source
var ServerKeyEncType = krb5.ENCTYPE_AES128_CTS_HMAC_SHA1_96
View Source
var SessionKeyBase64 = "VmynPsJVhtihDcIiMRBjOg=="
View Source
var SessionKeyEncType = krb5.ENCTYPE_AES128_CTS_HMAC_SHA1_96
View Source
var TicketBase64 = "YYHnMIHkoAMCAQWhEBsOQVRIRU5BLk1JVC5FRFWiG" +
"zAZoAMCAQKhEjAQGwZ6ZXBoeXIbBnplcGh5cqOBrT" +
"CBqqADAgERooGiBIGfP1YF6tdilQQW50m+ij1NOWV" +
"duz1x+xXKVTD+dzcYPTh0J0+Hkmi+gFmv+8coDsIL" +
"+KLB4o+VuVVanfqlXcSY2LMTU4ZXuziV6TPv8Un6T" +
"qqxjoH8ZdE18uye2zqHJd4WD2JBr1nWgsACUvHeZH" +
"99QX2EOAu33cpif9pgvZ6v2A+d3xWsqGd1DvzLpBP" +
"Rite3uMkgalFWsT/FOlX/IbqU"
Functions ¶
func Credential ¶
func Credential() *krb5.Credential
func MakeServerKeyTab ¶
func MakeServerKeyTab(ctx *krb5.Context) (*krb5.KeyTab, error)
func ServerKeyVersion ¶
func ServerKeyVersion() uint
func SessionKey ¶
func SessionKey() *krb5.KeyBlock
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.