Subject: Re: CVS commit: src/crypto/dist/openssl/crypto/rsa
To: Bang Jun-Young <junyoung@netbsd.org>
From: Jun-ichiro itojun Hagino <itojun@iijlab.net>
List: source-changes
Date: 03/19/2003 00:41:40
>On Mon, Mar 17, 2003 at 04:33:52PM +0200, Jun-ichiro itojun Hagino wrote:
>>
>> Module Name: src
>> Committed By: itojun
>> Date: Mon Mar 17 14:33:51 UTC 2003
>>
>> Modified Files:
>> src/crypto/dist/openssl/crypto/rsa: rsa_eay.c rsa_lib.c
>>
>> Log Message:
>> enable RSA blinding by defualt. from bugtraq posting <3E758B85.6090300@algroup.co.uk>
>
>This caused compile warnings while building release:
i don't understand why the following change (near line 71) causes
new compile warnings you have presented. any clues?
itojun
Index: rsa_lib.c
===================================================================
RCS file: /cvsroot/src/crypto/dist/openssl/crypto/rsa/rsa_lib.c,v
retrieving revision 1.1.1.3
retrieving revision 1.2
diff -u -r1.1.1.3 -r1.2
--- rsa_lib.c 2001/04/12 03:09:58 1.1.1.3
+++ rsa_lib.c 2003/03/17 14:33:50 1.2
@@ -71,7 +71,13 @@
RSA *RSA_new(void)
{
- return(RSA_new_method(NULL));
+ RSA *r=RSA_new_method(NULL);
+
+#ifndef OPENSSL_NO_FORCE_RSA_BLINDING
+ r->flags|=RSA_FLAG_BLINDING;
+#endif
+
+ return r;
}
void RSA_set_default_method(RSA_METHOD *meth)