summaryrefslogtreecommitdiff
path: root/security/openssl/patches/patch-aj
blob: 608156bdf2ed5dc154f10eea5dd39ce5aed00418 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
$NetBSD: patch-aj,v 1.7 2003/03/21 18:40:49 seb Exp $

--- crypto/rsa/rsa_lib.c.orig	2001-02-24 17:32:30.000000000 +0000
+++ crypto/rsa/rsa_lib.c
@@ -71,7 +71,13 @@ static STACK_OF(CRYPTO_EX_DATA_FUNCS) *r
 
 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)