Jonathan Turner 9 лет назад
Родитель
Сommit
d48bee35ed
3 измененных файлов с 17 добавлено и 1 удалено
  1. 15 0
      GSSAPI/krb5Token.go
  2. 1 0
      README.md
  3. 1 1
      iana/chksumtype/constants.go

+ 15 - 0
GSSAPI/krb5Token.go

@@ -0,0 +1,15 @@
+package GSSAPI
+
+import "github.com/jcmturner/asn1"
+
+const (
+	TOK_ID_KRB_AP_REQ = "0100"
+	TOK_ID_KRB_AP_REP = "0200"
+	TOK_ID_KRB_ERROR  = "0300"
+)
+
+// Is wrapped in application tag with value 0
+type KRB5MechToken struct {
+	OID    asn1.ObjectIdentifier
+	TOK_ID []byte
+}

+ 1 - 0
README.md

@@ -66,6 +66,7 @@ tkt, err := cl.GetServiceTicket("HTTP/host.test.gokrb5")
 [text](https://www.ietf.org/rfc/rfc3961.txt) [html](https://tools.ietf.org/html/rfc3961)
 * RFC 3962 Advanced Encryption Standard (AES) Encryption for Kerberos 5
 [text](https://www.ietf.org/rfc/rfc3962.txt) [html](https://tools.ietf.org/html/rfc3962)
+* RFC 4121 The Kerberos Version 5 GSS-API Mechanism [text](https://www.ietf.org/rfc/rfc4121.txt) [html](https://tools.ietf.org/html/rfc4121)
 * RFC 4178 The Simple and Protected Generic Security Service Application Program Interface (GSS-API) Negotiation Mechanism
 [text](https://www.ietf.org/rfc/rfc4178.txt) [html](https://tools.ietf.org/html/rfc4178.html)
 * RFC 4559 SPNEGO-based Kerberos and NTLM HTTP Authentication in Microsoft Windows

+ 1 - 1
iana/chksumtype/constants.go

@@ -24,6 +24,6 @@ const (
 	HMAC_SHA256_128_AES128 = 19
 	HMAC_SHA384_192_AES256 = 20
 	//UNASSIGNED : 21-32770
-	//RESERVED : 32771
+	GSSAPI = 32771
 	//UNASSIGNED : 32772-2147483647
 )