Thanks for Emmanuel's providing this template, we can use it in the feature.

Thanks
Jiajia

-----Original Message-----
From: Emmanuel Lécharny [mailto:[email protected]] 
Sent: Thursday, January 07, 2016 6:46 PM
To: [email protected]
Subject: Re: Clear Kerby codes

Le 07/01/16 08:52, Zheng, Kai a écrit :
> Thanks Emmanuel for elaborating this so fine. It should be clear now. Let's 
> do it in the following days, and don't forget it in future.

For the record, here is a file in which I added such a attribution :

http://git-wip-us.apache.org/repos/asf/directory-kerby/blob/70ce3a84/kerby-kerb/kerb-core/src/main/java/org/apache/kerby/kerberos/kerb/type/ap/ApOption.java
----------------------------------------------------------------------
diff --git 
a/kerby-kerb/kerb-core/src/main/java/org/apache/kerby/kerberos/kerb/type/ap/ApOption.java
 
b/kerby-kerb/kerb-core/src/main/java/org/apache/kerby/kerberos/kerb/type/ap/ApOption.java
index b39d2df..a85bbfe 100644
--- 
a/kerby-kerb/kerb-core/src/main/java/org/apache/kerby/kerberos/kerb/type/ap/ApOption.java
+++ 
b/kerby-kerb/kerb-core/src/main/java/org/apache/kerby/kerberos/kerb/type/ap/ApOption.java
@@ -38,8 +38,19 @@ public enum ApOption implements EnumType {
     RESERVED(0x80000000),               // Bit 0, in ASN.1 BIT STRING 
definition : the most left-handed bit 
     USE_SESSION_KEY(0x40000000),        // Bit 1
     MUTUAL_REQUIRED(0x20000000),        // Bit 2
-    ETYPE_NEGOTIATION(0x00000002),      // ???
-    USE_SUBKEY(0x00000001);             // ???
+    //
+    // The following values are taken from the MIT Kerberos file krb5.hin :
+    // 
+    // #define AP_OPTS_ETYPE_NEGOTIATION  0x00000002
+    // #define AP_OPTS_USE_SUBKEY         0x00000001 /**< Generate a 
subsession key
+    //                                                  from the current 
session key
+    //                                                  obtained from the
+    //                                                  credentials */
+    //
+    // ---->
+    ETYPE_NEGOTIATION(0x00000002),      // bit 30
+    USE_SUBKEY(0x00000001);             // bit 31
+    // <---- End of krb5.hin inclusion
 
     /** The internal value */
     private final int value;


You can use the same template.



Reply via email to