From fa1f03061037cbdac5369849a885c1191a2550d9 Mon Sep 17 00:00:00 2001 From: David Asraf Date: Thu, 7 Feb 2019 11:51:39 +0200 Subject: Add EC_GROUP_get0_field New function to return internal pointer for field. Reviewed-by: Nicola Tuveri Reviewed-by: Matt Caswell (Merged from https://github.com/openssl/openssl/pull/8195) --- crypto/ec/ec_lib.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'crypto/ec/ec_lib.c') diff --git a/crypto/ec/ec_lib.c b/crypto/ec/ec_lib.c index c14d1a114e..2623b5377f 100644 --- a/crypto/ec/ec_lib.c +++ b/crypto/ec/ec_lib.c @@ -364,6 +364,11 @@ int EC_GROUP_get_curve_name(const EC_GROUP *group) return group->curve_name; } +const BIGNUM *EC_GROUP_get0_field(const EC_GROUP *group) +{ + return group->field; +} + void EC_GROUP_set_asn1_flag(EC_GROUP *group, int flag) { group->asn1_flag = flag; -- cgit v1.2.3