directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From elecha...@apache.org
Subject svn commit: r191234 - /directory/sandbox/trunk/asn1-new-codec/src/java/org/apache/asn1/spnego/codec/grammars/SpnegoGrammar.java
Date Sat, 18 Jun 2005 00:31:00 GMT
Author: elecharny
Date: Fri Jun 17 17:30:59 2005
New Revision: 191234

URL: http://svn.apache.org/viewcvs?rev=191234&view=rev
Log:
The grammar now use the corrected tlv.getSize() method.

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

Modified: directory/sandbox/trunk/asn1-new-codec/src/java/org/apache/asn1/spnego/codec/grammars/SpnegoGrammar.java
URL: http://svn.apache.org/viewcvs/directory/sandbox/trunk/asn1-new-codec/src/java/org/apache/asn1/spnego/codec/grammars/SpnegoGrammar.java?rev=191234&r1=191233&r2=191234&view=diff
==============================================================================
--- directory/sandbox/trunk/asn1-new-codec/src/java/org/apache/asn1/spnego/codec/grammars/SpnegoGrammar.java
(original)
+++ directory/sandbox/trunk/asn1-new-codec/src/java/org/apache/asn1/spnego/codec/grammars/SpnegoGrammar.java
Fri Jun 17 17:30:59 2005
@@ -259,7 +259,7 @@
                         // Checks the length.
                         int expectedLength = spnego.getMechTypesExpectedLength();
 
-                        int currentLength  = tlv.getLength().getLength() + tlv.getSize();
+                        int currentLength  = tlv.getSize();
 
                         if ( expectedLength < currentLength )
                         {
@@ -306,7 +306,7 @@
                         // Checks the length.
                         int expectedLength = spnego.getMechTypeListExpectedLength();
 
-                        int currentLength  = tlv.getLength().getLength() + tlv.getSize();
+                        int currentLength  = tlv.getSize();
 
                         if ( expectedLength < currentLength )
                         {
@@ -1180,7 +1180,7 @@
                         // Checks the length.
                         int expectedLength = spnego.getSupportedMechExpectedLength();
 
-                        int currentLength  = tlv.getLength().getLength() + tlv.getSize();
+                        int currentLength  = tlv.getSize();
 
                         if ( expectedLength < currentLength )
                         {
@@ -1316,7 +1316,7 @@
                         // Checks the length.
                         int expectedLength = spnego.getResponseTokenExpectedLength();
 
-                        int currentLength  = tlv.getLength().getLength() + tlv.getSize();
+                        int currentLength  = tlv.getSize();
 
                         if ( expectedLength < currentLength )
                         {
@@ -1465,7 +1465,7 @@
                         // Checks the length.
                         int expectedLength = spnego.getMechListMICExpectedLength();
 
-                        int currentLength  = tlv.getLength().getLength() + tlv.getSize();
+                        int currentLength  = tlv.getSize();
 
                         if ( expectedLength < currentLength )
                         {



Mime
View raw message