directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From kayyag...@apache.org
Subject svn commit: r1039627 - /directory/apacheds/trunk/kerberos-codec/src/test/java/org/apache/directory/shared/kerberos/codec/AuthorizationDataDecoderTest.java
Date Sat, 27 Nov 2010 09:14:40 GMT
Author: kayyagari
Date: Sat Nov 27 09:14:40 2010
New Revision: 1039627

URL: http://svn.apache.org/viewvc?rev=1039627&view=rev
Log:
o fixed the PDUs

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

Modified: directory/apacheds/trunk/kerberos-codec/src/test/java/org/apache/directory/shared/kerberos/codec/AuthorizationDataDecoderTest.java
URL: http://svn.apache.org/viewvc/directory/apacheds/trunk/kerberos-codec/src/test/java/org/apache/directory/shared/kerberos/codec/AuthorizationDataDecoderTest.java?rev=1039627&r1=1039626&r2=1039627&view=diff
==============================================================================
--- directory/apacheds/trunk/kerberos-codec/src/test/java/org/apache/directory/shared/kerberos/codec/AuthorizationDataDecoderTest.java
(original)
+++ directory/apacheds/trunk/kerberos-codec/src/test/java/org/apache/directory/shared/kerberos/codec/AuthorizationDataDecoderTest.java
Sat Nov 27 09:14:40 2010
@@ -123,10 +123,12 @@ public class AuthorizationDataDecoderTes
     {
         Asn1Decoder kerberosDecoder = new Asn1Decoder();
 
-        ByteBuffer stream = ByteBuffer.allocate( 0x07 );
+        ByteBuffer stream = ByteBuffer.allocate( 0x09 );
         
         stream.put( new byte[]
-            { 0x30, 0x5,
+            { 
+              0x30, 0x7,
+               0x30, 0x5,
                 (byte)0xA1, 0x03,                 // ad-data
                   0x04, 0x01, 'a'
             } );
@@ -145,10 +147,12 @@ public class AuthorizationDataDecoderTes
     {
         Asn1Decoder kerberosDecoder = new Asn1Decoder();
 
-        ByteBuffer stream = ByteBuffer.allocate( 0x07 );
+        ByteBuffer stream = ByteBuffer.allocate( 0x09 );
         
         stream.put( new byte[]
-            { 0x30, 0x5,
+            { 
+              0x30, 0x7,
+               0x30, 0x5,
                 (byte)0xA0, 0x03,                 // ad-data
                   0x02, 0x01, 0x02
             } );
@@ -167,10 +171,13 @@ public class AuthorizationDataDecoderTes
     {
         Asn1Decoder kerberosDecoder = new Asn1Decoder();
 
-        ByteBuffer stream = ByteBuffer.allocate( 0x02 );
+        ByteBuffer stream = ByteBuffer.allocate( 0x04 );
         
         stream.put( new byte[]
-            { 0x30, 0x0 } );
+            { 
+              0x30, 0x2,
+               0x30, 0x0 
+            } );
 
         stream.flip();
 
@@ -186,10 +193,11 @@ public class AuthorizationDataDecoderTes
     {
         Asn1Decoder kerberosDecoder = new Asn1Decoder();
 
-        ByteBuffer stream = ByteBuffer.allocate( 0xB );
+        ByteBuffer stream = ByteBuffer.allocate( 0xD );
         
         stream.put( new byte[]
             { 
+               0x30, 0x0B,
                 0x30, 0x09,
                   (byte)0xA0, 0x03,                 // ad-type
                     0x02, 0x01, 0x02,
@@ -211,10 +219,11 @@ public class AuthorizationDataDecoderTes
     {
         Asn1Decoder kerberosDecoder = new Asn1Decoder();
 
-        ByteBuffer stream = ByteBuffer.allocate( 0xB );
+        ByteBuffer stream = ByteBuffer.allocate( 0xD );
         
         stream.put( new byte[]
             { 
+               0x30, 0x0B,    
                 0x30, 0x09,
                   (byte)0xA0, 0x02,                 // ad-type
                     0x02, 0x00,



Mime
View raw message