You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@directory.apache.org by el...@apache.org on 2010/11/22 10:36:32 UTC

svn commit: r1037645 - in /directory/apacheds/trunk/kerberos-codec/src: main/java/org/apache/directory/shared/kerberos/KerberosConstants.java test/java/org/apache/directory/shared/kerberos/codec/KrbSafeDecoderTest.java

Author: elecharny
Date: Mon Nov 22 09:36:32 2010
New Revision: 1037645

URL: http://svn.apache.org/viewvc?rev=1037645&view=rev
Log:
Fixed the KRB-SAFE first tag

Modified:
    directory/apacheds/trunk/kerberos-codec/src/main/java/org/apache/directory/shared/kerberos/KerberosConstants.java
    directory/apacheds/trunk/kerberos-codec/src/test/java/org/apache/directory/shared/kerberos/codec/KrbSafeDecoderTest.java

Modified: directory/apacheds/trunk/kerberos-codec/src/main/java/org/apache/directory/shared/kerberos/KerberosConstants.java
URL: http://svn.apache.org/viewvc/directory/apacheds/trunk/kerberos-codec/src/main/java/org/apache/directory/shared/kerberos/KerberosConstants.java?rev=1037645&r1=1037644&r2=1037645&view=diff
==============================================================================
--- directory/apacheds/trunk/kerberos-codec/src/main/java/org/apache/directory/shared/kerberos/KerberosConstants.java (original)
+++ directory/apacheds/trunk/kerberos-codec/src/main/java/org/apache/directory/shared/kerberos/KerberosConstants.java Mon Nov 22 09:36:32 2010
@@ -172,7 +172,7 @@ public class KerberosConstants
     public static final int KRB_SAFE_BODY_RECIPIENT_ADDRESS_TAG = 0xA5;
     
     /** KrbSafe tags */
-    public static final int KRB_SAFE_TAG = 0x14;
+    public static final int KRB_SAFE_TAG = 0x64;
     public static final int KRB_SAFE_PVNO_TAG = 0xA0;
     public static final int KRB_SAFE_MSGTYPE_TAG = 0xA1;
     public static final int KRB_SAFE_SAFE_BODY_TAG = 0xA2;

Modified: directory/apacheds/trunk/kerberos-codec/src/test/java/org/apache/directory/shared/kerberos/codec/KrbSafeDecoderTest.java
URL: http://svn.apache.org/viewvc/directory/apacheds/trunk/kerberos-codec/src/test/java/org/apache/directory/shared/kerberos/codec/KrbSafeDecoderTest.java?rev=1037645&r1=1037644&r2=1037645&view=diff
==============================================================================
--- directory/apacheds/trunk/kerberos-codec/src/test/java/org/apache/directory/shared/kerberos/codec/KrbSafeDecoderTest.java (original)
+++ directory/apacheds/trunk/kerberos-codec/src/test/java/org/apache/directory/shared/kerberos/codec/KrbSafeDecoderTest.java Mon Nov 22 09:36:32 2010
@@ -48,28 +48,28 @@ public class KrbSafeDecoderTest
     public void testDecodeKrbSafe()
     {
         byte[] data = new byte[]{
-            0x14, 0x36,
+            0x64, 0x36,
               0x30, 0x34,
                (byte)0xA0, 0x03,        // pvno
-                      0x02, 0x01, 0x05,
+                 0x02, 0x01, 0x05,
                (byte)0xA1, 0x03,        // msg-type
-                      0x02, 0x01, 0x14,
+                 0x02, 0x01, 0x14,
                (byte)0xA2, 0x19,        // safe-body
-                      0x30, 0x17,
-                       (byte)0xA0, 0x04,
-                              0x04, 0x02, 0x00, 0x01,
-                              (byte)0xA4, 0x0F,
-                                     0x30, 0x0D,
-                                      (byte)0xA0, 0x03, 
-                                       0x02, 0x01, 0x02,
-                                       (byte)0xA1, 0x06,
-                                              0x04, 0x04, 127, 0, 0, 1, 
+                 0x30, 0x17,
+                   (byte)0xA0, 0x04,
+                     0x04, 0x02, 0x00, 0x01,
+                   (byte)0xA4, 0x0F,
+                     0x30, 0x0D,
+                       (byte)0xA0, 0x03, 
+                         0x02, 0x01, 0x02,
+                       (byte)0xA1, 0x06,
+                         0x04, 0x04, 127, 0, 0, 1, 
                (byte)0xA3, 0x0D,        // cksum
-                      0x30, 0x0B,
-                       (byte)0xA0, 0x03,
-                              0x02, 0x01, 0x01,
-                       (byte)0xA1, 0x04,
-                              0x04, 0x02, 0x00, 0x01 
+                 0x30, 0x0B,
+                   (byte)0xA0, 0x03,
+                     0x02, 0x01, 0x01,
+                   (byte)0xA1, 0x04,
+                     0x04, 0x02, 0x00, 0x01 
         };
         
         String decoded = StringTools.dumpBytes( data );