diff options
author | Matt Caswell <matt@openssl.org> | 2017-07-03 11:47:10 +0100 |
---|---|---|
committer | Matt Caswell <matt@openssl.org> | 2017-08-21 08:44:44 +0100 |
commit | 638c2dd0ab504e22af08e4d56b43959a8be2382e (patch) | |
tree | 4a5a32a09b319fac504bebba4cbf56d40f144e23 /crypto/ec | |
parent | 42d7d7dd6a9ea5d610856b7ccec1767ba93ed30c (diff) |
Updates following feedback on OPENSSL_assert() removal
Reviewed-by: Andy Polyakov <appro@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/3740)
Diffstat (limited to 'crypto/ec')
-rw-r--r-- | crypto/ec/ec_key.c | 2 | ||||
-rw-r--r-- | crypto/ec/ec_lib.c | 2 |
2 files changed, 0 insertions, 4 deletions
diff --git a/crypto/ec/ec_key.c b/crypto/ec/ec_key.c index fb8c3ed756..6aa204eed0 100644 --- a/crypto/ec/ec_key.c +++ b/crypto/ec/ec_key.c @@ -191,8 +191,6 @@ int EC_KEY_generate_key(EC_KEY *eckey) int ossl_ec_key_gen(EC_KEY *eckey) { - if (!ossl_assert(eckey->group->meth->keygen != NULL)) - return 0; return eckey->group->meth->keygen(eckey); } diff --git a/crypto/ec/ec_lib.c b/crypto/ec/ec_lib.c index baf94f6a57..6ccf6f12cc 100644 --- a/crypto/ec/ec_lib.c +++ b/crypto/ec/ec_lib.c @@ -330,8 +330,6 @@ const BIGNUM *EC_GROUP_get0_order(const EC_GROUP *group) int EC_GROUP_order_bits(const EC_GROUP *group) { - if (!ossl_assert(group->meth->group_order_bits != NULL)) - return 0; return group->meth->group_order_bits(group); } |