]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
1494. [security] Turn on RSA BLINDING as a precaution.
authorMark Andrews <marka@isc.org>
Thu, 24 Jul 2003 06:08:20 +0000 (06:08 +0000)
committerMark Andrews <marka@isc.org>
Thu, 24 Jul 2003 06:08:20 +0000 (06:08 +0000)
CHANGES
lib/dns/sec/dst/opensslrsa_link.c

diff --git a/CHANGES b/CHANGES
index 9b05d6e0b70c0441c29100155aaa9ccb417ef38f..6e6a510874fd9d29419dd987cbf9a33335125094 100644 (file)
--- a/CHANGES
+++ b/CHANGES
@@ -1,3 +1,5 @@
+1494.  [security]      Turn on RSA BLINDING as a precaution.
+
 1493.  [placeholder]
 
 1492.  [cleanup]       Preserve rwlock quota context when upgrading /
index 2214fc3e27e84f3233345c9062c3230a6cc517b0..b9e19e6eca2504811dcdf121823315f219350f66 100644 (file)
@@ -17,7 +17,7 @@
 
 /*
  * Principal Author: Brian Wellington
- * $Id: opensslrsa_link.c,v 1.25 2002/12/13 02:51:41 marka Exp $
+ * $Id: opensslrsa_link.c,v 1.26 2003/07/24 06:08:20 marka Exp $
  */
 #ifdef OPENSSL
 
 
 #if OPENSSL_VERSION_NUMBER < 0x0090601fL
 #define SET_FLAGS(rsa) \
-       (rsa)->flags &= ~(RSA_FLAG_CACHE_PUBLIC | RSA_FLAG_CACHE_PRIVATE);
+       do { \
+       (rsa)->flags &= ~(RSA_FLAG_CACHE_PUBLIC | RSA_FLAG_CACHE_PRIVATE); \
+       (rsa)->flags |= RSA_FLAG_BLINDING; \
+       } while (0)
 #else
-#define SET_FLAGS(rsa) do { } while (0);
+#define SET_FLAGS(rsa) \
+       do { \
+               (rsa)->flags |= RSA_FLAG_BLINDING; \
+       } while (0)
 #endif
 
 static isc_result_t opensslrsa_todns(const dst_key_t *key, isc_buffer_t *data);