diff options
author | Nicola Tuveri <nic.tuv@gmail.com> | 2019-10-18 15:54:20 +0300 |
---|---|---|
committer | Nicola Tuveri <nic.tuv@gmail.com> | 2019-10-23 00:49:46 +0300 |
commit | 4a7a4972296274463c739c658f3361ca17fb8027 (patch) | |
tree | b6f855f97d74ebcc0ff5bcab9f5f28e77ab44421 /crypto/ec/ec_lib.c | |
parent | cdf8d0db79250258c28c2b4249aedca779bab766 (diff) |
Deprecate EC_GROUP_clear_free()
There is nothing confidential in `EC_GROUP` so really having a
`EC_GROUP_clear_free` function at all does not make much sense anymore.
See https://github.com/openssl/openssl/issues/9822
Reviewed-by: Matt Caswell <matt@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/9874)
Diffstat (limited to 'crypto/ec/ec_lib.c')
-rw-r--r-- | crypto/ec/ec_lib.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/crypto/ec/ec_lib.c b/crypto/ec/ec_lib.c index 69b3c7fca5..08d018c4e6 100644 --- a/crypto/ec/ec_lib.c +++ b/crypto/ec/ec_lib.c @@ -116,6 +116,7 @@ void EC_GROUP_free(EC_GROUP *group) OPENSSL_free(group); } +#if !OPENSSL_API_3 void EC_GROUP_clear_free(EC_GROUP *group) { if (!group) @@ -134,6 +135,7 @@ void EC_GROUP_clear_free(EC_GROUP *group) OPENSSL_clear_free(group->seed, group->seed_len); OPENSSL_clear_free(group, sizeof(*group)); } +#endif int EC_GROUP_copy(EC_GROUP *dest, const EC_GROUP *src) { |