summaryrefslogtreecommitdiff
path: root/src/regress
diff options
context:
space:
mode:
authortb <>2023-05-02 10:44:20 +0000
committertb <>2023-05-02 10:44:20 +0000
commitab93cff1165b3f9a337cbdc8a42cf28eff0bedbd (patch)
treebff570a803b53b612e29fceb650a163df818966a /src/regress
parent9af6dbe70d5ae2a95ae111e23f0f4e8c44a674a9 (diff)
downloadopenbsd-ab93cff1165b3f9a337cbdc8a42cf28eff0bedbd.tar.gz
openbsd-ab93cff1165b3f9a337cbdc8a42cf28eff0bedbd.tar.bz2
openbsd-ab93cff1165b3f9a337cbdc8a42cf28eff0bedbd.zip
Simplify EC_GROUP_new_by_curve_name()
Pull the setting of the name a.k.a. nid into ec_group_new_from_data(). This way, we can return early on finding the nid in the curve_list[]. This also avoids a silly bug where a bogus ERR_R_UNKNOWN_BUG is pushed onto the error stack when ec_group_new_from_data() failed. While there rework the exit path of ec_group_new_from_data() a bit. Instead of an ok variable we can use an additional pointer to keep track of the return value and free the EC_GROUP unconditionally. ok jsing
Diffstat (limited to 'src/regress')
0 files changed, 0 insertions, 0 deletions