From 8cc44d970ced1004db0727d7a7b3e2709c442e55 Mon Sep 17 00:00:00 2001 From: "Dr. Stephen Henson" Date: Tue, 19 Jul 2016 18:57:15 +0100 Subject: Don't allocate r/s in DSA_SIG and ECDSA_SIG To avoid having to immediately free up r/s when setting them don't allocate them automatically in DSA_SIG_new() and ECDSA_SIG_new(). RT#4590 Reviewed-by: Richard Levitte --- include/openssl/dsa.h | 1 + include/openssl/ec.h | 1 + 2 files changed, 2 insertions(+) (limited to 'include') diff --git a/include/openssl/dsa.h b/include/openssl/dsa.h index 3b1e1a6edc..11ddd397b3 100644 --- a/include/openssl/dsa.h +++ b/include/openssl/dsa.h @@ -256,6 +256,7 @@ void ERR_load_DSA_strings(void); # define DSA_F_DSA_PUB_ENCODE 118 # define DSA_F_DSA_SIGN 106 # define DSA_F_DSA_SIGN_SETUP 107 +# define DSA_F_DSA_SIG_NEW 102 # define DSA_F_OLD_DSA_PRIV_DECODE 122 # define DSA_F_PKEY_DSA_CTRL 120 # define DSA_F_PKEY_DSA_KEYGEN 121 diff --git a/include/openssl/ec.h b/include/openssl/ec.h index 0e50296463..03942eda84 100644 --- a/include/openssl/ec.h +++ b/include/openssl/ec.h @@ -1378,6 +1378,7 @@ void ERR_load_EC_strings(void); # define EC_F_ECDSA_DO_VERIFY 252 # define EC_F_ECDSA_SIGN_EX 254 # define EC_F_ECDSA_SIGN_SETUP 248 +# define EC_F_ECDSA_SIG_NEW 265 # define EC_F_ECDSA_VERIFY 253 # define EC_F_ECKEY_PARAM2TYPE 223 # define EC_F_ECKEY_PARAM_DECODE 212 -- cgit v1.2.3