diff options
author | Dr. Stephen Henson <steve@openssl.org> | 2016-02-28 17:48:48 +0000 |
---|---|---|
committer | Dr. Stephen Henson <steve@openssl.org> | 2016-03-01 22:04:25 +0000 |
commit | 9ff9bccc41c385ec2aa8ee2123f083b52b56b7b4 (patch) | |
tree | 9bfc6f68485d0c005c32502b35ed1908a07a0781 /crypto/ec/ec_lib.c | |
parent | 77470e989cf3c502ee00eb060b197d0241f33a22 (diff) |
Add default operations to EC_METHOD
Reviewed-by: Rich Salz <rsalz@openssl.org>
Diffstat (limited to 'crypto/ec/ec_lib.c')
-rw-r--r-- | crypto/ec/ec_lib.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/crypto/ec/ec_lib.c b/crypto/ec/ec_lib.c index 1f487b48a0..67e322fbb3 100644 --- a/crypto/ec/ec_lib.c +++ b/crypto/ec/ec_lib.c @@ -373,10 +373,7 @@ const BIGNUM *EC_GROUP_get0_order(const EC_GROUP *group) int EC_GROUP_order_bits(const EC_GROUP *group) { - if (group->meth->group_order_bits == NULL) { - ECerr(EC_F_EC_GROUP_ORDER_BITS, ERR_R_SHOULD_NOT_HAVE_BEEN_CALLED); - return 0; - } + OPENSSL_assert(group->meth->group_order_bits != NULL); return group->meth->group_order_bits(group); } |