You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@directory.apache.org by fe...@apache.org on 2010/11/21 10:30:36 UTC
svn commit: r1037401 -
/directory/apacheds/trunk/kerberos-shared/src/test/java/org/apache/directory/server/kerberos/shared/messages/components/TicketTest.java
Author: felixk
Date: Sun Nov 21 09:30:36 2010
New Revision: 1037401
URL: http://svn.apache.org/viewvc?rev=1037401&view=rev
Log:
We do have an additional byte in the beginning, which will increase the length by 8 (Respect the first flag containing the number of unused bytes)
Modified:
directory/apacheds/trunk/kerberos-shared/src/test/java/org/apache/directory/server/kerberos/shared/messages/components/TicketTest.java
Modified: directory/apacheds/trunk/kerberos-shared/src/test/java/org/apache/directory/server/kerberos/shared/messages/components/TicketTest.java
URL: http://svn.apache.org/viewvc/directory/apacheds/trunk/kerberos-shared/src/test/java/org/apache/directory/server/kerberos/shared/messages/components/TicketTest.java?rev=1037401&r1=1037400&r2=1037401&view=diff
==============================================================================
--- directory/apacheds/trunk/kerberos-shared/src/test/java/org/apache/directory/server/kerberos/shared/messages/components/TicketTest.java (original)
+++ directory/apacheds/trunk/kerberos-shared/src/test/java/org/apache/directory/server/kerberos/shared/messages/components/TicketTest.java Sun Nov 21 09:30:36 2010
@@ -64,8 +64,8 @@ public class TicketTest
byte[] expectedResult = new byte[]
{
- 0x61, (byte)0x81, (byte)0xEF,
- 0x30, (byte)0x81, (byte)0xEC,
+ 0x61, (byte)0x81, (byte)0xF7,
+ 0x30, (byte)0x81, (byte)0xF4,
(byte)0xA0, 0x03,
0x02, 0x01, 0x05,
(byte)0xA1, 0x0D,
@@ -81,15 +81,15 @@ public class TicketTest
'k', 'a', 'd', 'm', 'i', 'n',
0x1B, 0x08,
'c', 'h', 'a', 'n', 'g', 'e', 'p', 'w',
- (byte)0xA3, (byte)0x81, (byte)0xB6,
- 0x30, (byte)0x81, (byte)0xB3,
+ (byte)0xA3, (byte)0x81, (byte)0xBE,
+ 0x30, (byte)0x81, (byte)0xBB,
(byte)0xA0, 0x03,
0x02, 0x01, 0x03,
- (byte)0xA2, (byte)0x81, (byte)0xAB,
- 0x04, (byte)0x81, (byte)0xA8
+ (byte)0xA2, (byte)0x81, (byte)0xB3,
+ 0x04, (byte)0x81, (byte)0xB0
};
- // We will just compared the first bytes (everyting before the encrypted data)
+ // We will just compared the first bytes (everything before the encrypted data)
String expectedResultString = StringTools.dumpBytes( expectedResult );
String resultString = StringTools.dumpBytes( encoded.array() ).substring( 0, expectedResultString.length() );