harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From smish...@apache.org
Subject svn commit: r475198 - /incubator/harmony/enhanced/classlib/trunk/modules/x-net/src/main/java/org/apache/harmony/xnet/provider/jsse/DigitalSignature.java
Date Wed, 15 Nov 2006 11:00:23 GMT
Author: smishura
Date: Wed Nov 15 03:00:23 2006
New Revision: 475198

URL: http://svn.apache.org/viewvc?view=rev&rev=475198
Log:
Apply patch for HARMONY-2029 ([classlib][x-net] JSSE Provider fails while communicating with
3rd party TLS server)

Modified:
    incubator/harmony/enhanced/classlib/trunk/modules/x-net/src/main/java/org/apache/harmony/xnet/provider/jsse/DigitalSignature.java

Modified: incubator/harmony/enhanced/classlib/trunk/modules/x-net/src/main/java/org/apache/harmony/xnet/provider/jsse/DigitalSignature.java
URL: http://svn.apache.org/viewvc/incubator/harmony/enhanced/classlib/trunk/modules/x-net/src/main/java/org/apache/harmony/xnet/provider/jsse/DigitalSignature.java?view=diff&rev=475198&r1=475197&r2=475198
==============================================================================
--- incubator/harmony/enhanced/classlib/trunk/modules/x-net/src/main/java/org/apache/harmony/xnet/provider/jsse/DigitalSignature.java
(original)
+++ incubator/harmony/enhanced/classlib/trunk/modules/x-net/src/main/java/org/apache/harmony/xnet/provider/jsse/DigitalSignature.java
Wed Nov 15 03:00:23 2006
@@ -77,7 +77,7 @@
                 // SignatureAlgorithm is rsa
                 md5 = MessageDigest.getInstance("MD5");
                 sha = MessageDigest.getInstance("SHA-1");
-                cipher = Cipher.getInstance("RSA");
+                cipher = Cipher.getInstance("RSA/ECB/PKCS1Padding");
             } else if (keyExchange == CipherSuite.KeyExchange_DHE_DSS ||
                     keyExchange == CipherSuite.KeyExchange_DHE_DSS_EXPORT ) {
                 // SignatureAlgorithm is dsa



Mime
View raw message