directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From elecha...@apache.org
Subject svn commit: r208980 - /directory/sandbox/trunk/asn1-new-codec/src/java/org/apache/asn1/ldap/codec/grammars/BindRequestGrammar.java
Date Sun, 03 Jul 2005 21:40:55 GMT
Author: elecharny
Date: Sun Jul  3 14:40:54 2005
New Revision: 208980

URL: http://svn.apache.org/viewcvs?rev=208980&view=rev
Log:
The simple authentication element has been changed from a byte[] to anOctetString, so the
grammar action reflects this change

Modified:
    directory/sandbox/trunk/asn1-new-codec/src/java/org/apache/asn1/ldap/codec/grammars/BindRequestGrammar.java

Modified: directory/sandbox/trunk/asn1-new-codec/src/java/org/apache/asn1/ldap/codec/grammars/BindRequestGrammar.java
URL: http://svn.apache.org/viewcvs/directory/sandbox/trunk/asn1-new-codec/src/java/org/apache/asn1/ldap/codec/grammars/BindRequestGrammar.java?rev=208980&r1=208979&r2=208980&view=diff
==============================================================================
--- directory/sandbox/trunk/asn1-new-codec/src/java/org/apache/asn1/ldap/codec/grammars/BindRequestGrammar.java
(original)
+++ directory/sandbox/trunk/asn1-new-codec/src/java/org/apache/asn1/ldap/codec/grammars/BindRequestGrammar.java
Sun Jul  3 14:40:54 2005
@@ -226,11 +226,11 @@
                         // We have to handle the special case of a 0 length simple
                         if (tlv.getLength().getLength() == 0)
                         {
-                            authentication.setSimple( new byte[]{} );
+                            authentication.setSimple( OctetString.EMPTY_STRING );
                         }
                         else
                         {
-                            authentication.setSimple( tlv.getValue().getData() );
+                            authentication.setSimple( new OctetString( tlv.getValue().getData()
) );
                         }
                     }
                 } );



Mime
View raw message