=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/openssl/ecparam.c,v retrieving revision 1.20 retrieving revision 1.21 diff -c -r1.20 -r1.21 *** src/usr.bin/openssl/ecparam.c 2021/04/21 00:31:59 1.20 --- src/usr.bin/openssl/ecparam.c 2021/05/10 20:58:32 1.21 *************** *** 1,4 **** ! /* $OpenBSD: ecparam.c,v 1.20 2021/04/21 00:31:59 tb Exp $ */ /* * Written by Nils Larsch for the OpenSSL project. */ --- 1,4 ---- ! /* $OpenBSD: ecparam.c,v 1.21 2021/05/10 20:58:32 tb Exp $ */ /* * Written by Nils Larsch for the OpenSSL project. */ *************** *** 87,97 **** #include #include - int EC_GROUP_get_curve_GF2m(const EC_GROUP *, BIGNUM *, BIGNUM *, BIGNUM *, - BN_CTX *); - int EC_GROUP_get_curve_GFp(const EC_GROUP *, BIGNUM *, BIGNUM *, BIGNUM *, - BN_CTX *); - static int ecparam_print_var(BIO *, BIGNUM *, const char *, int, unsigned char *); --- 87,92 ---- *************** *** 426,440 **** is_prime = (EC_METHOD_get_field_type(meth) == NID_X9_62_prime_field); ! if (is_prime) { ! if (!EC_GROUP_get_curve_GFp(group, ec_p, ec_a, ! ec_b, NULL)) ! goto end; ! } else { ! if (!EC_GROUP_get_curve_GF2m(group, ec_p, ec_a, ! ec_b, NULL)) ! goto end; ! } if ((point = EC_GROUP_get0_generator(group)) == NULL) goto end; --- 421,428 ---- is_prime = (EC_METHOD_get_field_type(meth) == NID_X9_62_prime_field); ! if (!EC_GROUP_get_curve(group, ec_p, ec_a, ec_b, NULL)) ! goto end; if ((point = EC_GROUP_get0_generator(group)) == NULL) goto end;