directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From elecha...@apache.org
Subject svn commit: r208930 - in /directory/sandbox/trunk/asn1-new-codec/src/java/org/apache/asn1/ldap/codec/grammars: BindRequestGrammar.java BindResponseGrammar.java
Date Sun, 03 Jul 2005 15:24:05 GMT
Author: elecharny
Date: Sun Jul  3 08:24:02 2005
New Revision: 208930

URL: http://svn.apache.org/viewcvs?rev=208930&view=rev
Log:
Fixed the Controls TAG (it's not a 0x80, but a 0x90, as it's a constructed element)

Modified:
    directory/sandbox/trunk/asn1-new-codec/src/java/org/apache/asn1/ldap/codec/grammars/BindRequestGrammar.java
    directory/sandbox/trunk/asn1-new-codec/src/java/org/apache/asn1/ldap/codec/grammars/BindResponseGrammar.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=208930&r1=208929&r2=208930&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 08:24:02 2005
@@ -302,7 +302,7 @@
         // We may have a credential, or nothing, as it's an optional element.
         // The tag will have one of those values :
         //	- 0x04 if it's a credentials
-        //	- 0x80 if it's a control
+        //	- 0x90 if it's a control
         //	- any other value is an error.
         //
         // It's a credential if it's 0x04
@@ -310,8 +310,8 @@
             new GrammarTransition( LdapStatesEnum.BIND_REQUEST_AUTHENTICATION_CREDENTIALS_TAG,
                 LdapStatesEnum.BIND_REQUEST_AUTHENTICATION_CREDENTIALS_VALUE, null );
 
-        // It's a control if it's 0x80
-        super.transitions[LdapStatesEnum.BIND_REQUEST_AUTHENTICATION_CREDENTIALS_TAG][(0x80
& 0x00FF)] =
+        // It's a control if it's 0x90
+        super.transitions[LdapStatesEnum.BIND_REQUEST_AUTHENTICATION_CREDENTIALS_TAG][0x90]
=
             new GrammarTransition( LdapStatesEnum.BIND_REQUEST_AUTHENTICATION_CREDENTIALS_TAG,
                 LdapStatesEnum.GRAMMAR_END, null );
         
@@ -321,7 +321,7 @@
         //
         // We have to get the Credentials and store it in the SaslCredentials.
         // Two different following states are possible :
-        // - a Controls tag (0x80)
+        // - a Controls tag (0x90)
         // - or nothing at all (end of the BindRequest).
         // We just have to transit to the first case, which will accept or not the transition.
         // This is done by transiting to the GRAMMAR_END state

Modified: directory/sandbox/trunk/asn1-new-codec/src/java/org/apache/asn1/ldap/codec/grammars/BindResponseGrammar.java
URL: http://svn.apache.org/viewcvs/directory/sandbox/trunk/asn1-new-codec/src/java/org/apache/asn1/ldap/codec/grammars/BindResponseGrammar.java?rev=208930&r1=208929&r2=208930&view=diff
==============================================================================
--- directory/sandbox/trunk/asn1-new-codec/src/java/org/apache/asn1/ldap/codec/grammars/BindResponseGrammar.java
(original)
+++ directory/sandbox/trunk/asn1-new-codec/src/java/org/apache/asn1/ldap/codec/grammars/BindResponseGrammar.java
Sun Jul  3 08:24:02 2005
@@ -124,7 +124,7 @@
         //     ...
         //    serverSaslCreds   [7] OCTET STRING OPTIONAL } (Tag)
         // It's a server sasl credential if the tag is 0x87
-        // Otherwise, if the tag is 0x80, it's a control
+        // Otherwise, if the tag is 0x90, it's a control
         super.transitions[LdapStatesEnum.BIND_RESPONSE_SERVER_SASL_CREDS_TAG][0x87] =
             new GrammarTransition( LdapStatesEnum.BIND_RESPONSE_SERVER_SASL_CREDS_TAG,
                 LdapStatesEnum.BIND_RESPONSE_SERVER_SASL_CREDS_VALUE, null );
@@ -135,7 +135,7 @@
         //
         // We have to get the server sasl Credentials and store it in the BindResponse Object.
         // Two different following states are possible :
-        // - a Controls tag (0x80)
+        // - a Controls tag (0x90)
         // - nothing at all (end of the BindResponse).
         // We just have to transit to the first case, which will accept or not the transition.
         // This is done by transiting to the GRAMMAR_END state



Mime
View raw message