harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From smish...@apache.org
Subject svn commit: r447732 - /incubator/harmony/enhanced/classlib/trunk/modules/auth/src/main/java/common/org/apache/harmony/auth/internal/kerberos/v5/KDCRequest.java
Date Tue, 19 Sep 2006 05:00:52 GMT
Author: smishura
Date: Mon Sep 18 22:00:51 2006
New Revision: 447732

URL: http://svn.apache.org/viewvc?view=rev&rev=447732
Log:
Follow RFC 4120: minimum number of kerberos option bits should be 32

Modified:
    incubator/harmony/enhanced/classlib/trunk/modules/auth/src/main/java/common/org/apache/harmony/auth/internal/kerberos/v5/KDCRequest.java

Modified: incubator/harmony/enhanced/classlib/trunk/modules/auth/src/main/java/common/org/apache/harmony/auth/internal/kerberos/v5/KDCRequest.java
URL: http://svn.apache.org/viewvc/incubator/harmony/enhanced/classlib/trunk/modules/auth/src/main/java/common/org/apache/harmony/auth/internal/kerberos/v5/KDCRequest.java?view=diff&rev=447732&r1=447731&r2=447732
==============================================================================
--- incubator/harmony/enhanced/classlib/trunk/modules/auth/src/main/java/common/org/apache/harmony/auth/internal/kerberos/v5/KDCRequest.java
(original)
+++ incubator/harmony/enhanced/classlib/trunk/modules/auth/src/main/java/common/org/apache/harmony/auth/internal/kerberos/v5/KDCRequest.java
Mon Sep 18 22:00:51 2006
@@ -139,7 +139,10 @@
             KDCRequest request = (KDCRequest) object;
 
             // FIXME: hardcoded - no KDCoptions are set
-            values[0] = new byte[] { (byte) 0x03, (byte) 0x01, (byte) 0x00, };
+            // note: number of bits should be >= 32
+            // (see RFC 4120, 5.2.8. KerberosFlags)
+            values[0] = new byte[] { (byte) 0x03, (byte) 0x05, (byte) 0x00,
+                    (byte) 0x00, (byte) 0x00, (byte) 0x00, (byte) 0x00, };
 
             values[1] = request.cname;
             values[2] = request.realm;



Mime
View raw message