You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@directory.apache.org by er...@apache.org on 2005/05/19 18:25:39 UTC

svn commit: r170953 - /directory/asn1/trunk/der/src/java/org/apache/asn1/der/DERBoolean.java

Author: erodriguez
Date: Thu May 19 09:25:38 2005
New Revision: 170953

URL: http://svn.apache.org/viewcvs?rev=170953&view=rev
Log:
o  Corrected octet value for TRUE per DIRSNICKERS-105, closing issue.
o  DERBoolean is not in use in the ApacheDS/Kerberos code, so this will not affect operation.

Modified:
    directory/asn1/trunk/der/src/java/org/apache/asn1/der/DERBoolean.java

Modified: directory/asn1/trunk/der/src/java/org/apache/asn1/der/DERBoolean.java
URL: http://svn.apache.org/viewcvs/directory/asn1/trunk/der/src/java/org/apache/asn1/der/DERBoolean.java?rev=170953&r1=170952&r2=170953&view=diff
==============================================================================
--- directory/asn1/trunk/der/src/java/org/apache/asn1/der/DERBoolean.java (original)
+++ directory/asn1/trunk/der/src/java/org/apache/asn1/der/DERBoolean.java Thu May 19 09:25:38 2005
@@ -22,7 +22,7 @@
  */
 public class DERBoolean extends DERObject
 {
-	private static final byte[] trueArray  = { (byte)0x01 };
+	private static final byte[] trueArray  = { (byte)0xff };
 	private static final byte[] falseArray = { (byte)0x00 };
 	
     public static final DERBoolean TRUE  = new DERBoolean( trueArray );
@@ -50,7 +50,7 @@
      */
     public boolean isTrue()
     {
-        return value[ 0 ] == (byte)0x01;
+        return value[ 0 ] == (byte)0xff;
     }
 }