Wrong ASN.1 definition and padata type for new hardware preauth
authorKen Hornstein <kenh@cmf.nrl.navy.mil>
Wed, 30 Oct 2002 18:41:24 +0000 (18:41 +0000)
committerKen Hornstein <kenh@cmf.nrl.navy.mil>
Wed, 30 Oct 2002 18:41:24 +0000 (18:41 +0000)
It turned out that early in the development cycle, one of our developers
picked the "next" PADATA type in krb5.hin, and we said, "We've got to
fix that when we get the real one assigned" ... and we never did.  Noticed
by Ezra Peisach.

Also, the definition for sam-pk-for-sad was changed to OCTET STRING from
EncryptionKey in the draft and the code, but we never updated the ASN.1
definition.  Also noticed by Ezra Peisach.

ticket: new

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@14945 dc483132-0cff-0310-8789-dd5450dbe970

src/include/ChangeLog
src/include/krb5.hin
src/lib/krb5/asn.1/ChangeLog
src/lib/krb5/asn.1/KRB5-asn.py

index bf8dbf6b3b0af3a0e0f7d597b34cc4a59a9ff763..6c6e507429e6ae3f73c326d02aa81508422ff3c7 100644 (file)
@@ -1,3 +1,8 @@
+2002-10-30  Ken Hornstein  <kenh@cmf.nrl.navy.mil>
+
+       * krb5.hin: Change definitions of new SAM preauth types to
+       match kerberos-clarifications.
+
 2002-10-24  Ken Hornstein  <kenh@cmf.nrl.navy.mil>
 
        * k5-int.h, krb5.hin: Add new protocols, definitions, and
index 5b8cb2c609ee5a242b45626be174e909b77e86b0..ceb5a47b8b1be810f52c35305e3ef933ff93a171 100644 (file)
@@ -866,8 +866,11 @@ krb5_error_code krb5_decrypt_data
 #define KRB5_PADATA_ETYPE_INFO         11 /* Etype info for preauth */
 #define KRB5_PADATA_SAM_CHALLENGE      12 /* draft challenge system */
 #define KRB5_PADATA_SAM_RESPONSE       13 /* draft challenge system response */
-#define KRB5_PADATA_SAM_CHALLENGE_2    14 /* draft challenge system, updated */
-#define KRB5_PADATA_SAM_RESPONSE_2     15 /* draft challenge system, updated */
+#define KRB5_PADATA_PK_AS_REQ          14 /* PKINIT */
+#define KRB5_PADATA_PK_AS_REP          15 /* PKINIT */
+
+#define KRB5_PADATA_SAM_CHALLENGE_2    30 /* draft challenge system, updated */
+#define KRB5_PADATA_SAM_RESPONSE_2     31 /* draft challenge system, updated */
     
 #define        KRB5_SAM_USE_SAD_AS_KEY         0x80000000
 #define        KRB5_SAM_SEND_ENCRYPTED_SAD     0x40000000
index 577429d7e0c94b87c93b51053916ead032ea384b..f5734ff7cac51549134d6755415eca11ad91270a 100644 (file)
@@ -1,3 +1,7 @@
+2002-10-30  Ken Hornstein  <kenh@cmf.nrl.navy.mil>
+
+       * KRB5-asn.py: Fix definition for sam-pk-for-sad element.
+
 2002-10-24  Ken Hornstein  <kenh@cmf.nrl.navy.mil>
 
        * KRB5-asn.py, asn1_k_decode.c, asn1_k_decode.h, asn1_k_encode.c,
index 867ac677171dcb009fc17f2201bba7e7f0f5801a..e455fd9a19233784d82bbc46167c728a0306a87a 100644 (file)
@@ -363,7 +363,7 @@ PA-SAM-CHALLENGE ::= SEQUENCE {
     sam-challenge-label[4]      GeneralString OPTIONAL,
     sam-challenge[5]            GeneralString OPTIONAL,
     sam-response-prompt[6]      GeneralString OPTIONAL,
-    sam-pk-for-sad[7]           EncryptionKey OPTIONAL,
+    sam-pk-for-sad[7]           OCTET STRING OPTIONAL,
     sam-nonce[8]                INTEGER OPTIONAL,
     sam-cksum[9]                Checksum OPTIONAL
 }