directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From erodrig...@apache.org
Subject svn commit: r581322 - /directory/sandbox/erodriguez/kerberos-pkinit/src/main/java/org/apache/directory/server/kerberos/pkinit/DhServer.java
Date Tue, 02 Oct 2007 17:59:44 GMT
Author: erodriguez
Date: Tue Oct  2 10:59:44 2007
New Revision: 581322

URL: http://svn.apache.org/viewvc?rev=581322&view=rev
Log:
Added conditional to check for both client and server DH nonces.

Modified:
    directory/sandbox/erodriguez/kerberos-pkinit/src/main/java/org/apache/directory/server/kerberos/pkinit/DhServer.java

Modified: directory/sandbox/erodriguez/kerberos-pkinit/src/main/java/org/apache/directory/server/kerberos/pkinit/DhServer.java
URL: http://svn.apache.org/viewvc/directory/sandbox/erodriguez/kerberos-pkinit/src/main/java/org/apache/directory/server/kerberos/pkinit/DhServer.java?rev=581322&r1=581321&r2=581322&view=diff
==============================================================================
--- directory/sandbox/erodriguez/kerberos-pkinit/src/main/java/org/apache/directory/server/kerberos/pkinit/DhServer.java
(original)
+++ directory/sandbox/erodriguez/kerberos-pkinit/src/main/java/org/apache/directory/server/kerberos/pkinit/DhServer.java
Tue Oct  2 10:59:44 2007
@@ -92,7 +92,8 @@
         byte[] dhSharedSecret = serverKeyAgree.generateSecret();
         byte[] x = dhSharedSecret;
 
-        if ( clientDhNonce != null && clientDhNonce.length > 0 )
+        if ( ( clientDhNonce != null && clientDhNonce.length > 0 )
+            && ( serverDhNonce != null && serverDhNonce.length > 0 ) )
         {
             x = concatenateBytes( dhSharedSecret, clientDhNonce );
             x = concatenateBytes( dhSharedSecret, serverDhNonce );



Mime
View raw message