You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@directory.apache.org by er...@apache.org on 2007/10/02 19:59:44 UTC

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

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 );