diff options
author | Theo Buehler <tb@cvs.openbsd.org> | 2024-11-14 10:28:00 +0000 |
---|---|---|
committer | Theo Buehler <tb@cvs.openbsd.org> | 2024-11-14 10:28:00 +0000 |
commit | 391ad8b84bc915c3a9d41dc5fef57e87efbfc592 (patch) | |
tree | 7a06992476819f229c1c433152cdd277b46a8f69 /lib | |
parent | cca961b7495d1401a5918d232ad258e4e77a6157 (diff) |
eck_prn: some more air to breathe
Diffstat (limited to 'lib')
-rw-r--r-- | lib/libcrypto/ec/eck_prn.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/libcrypto/ec/eck_prn.c b/lib/libcrypto/ec/eck_prn.c index 6ff0eddbd78..012391c803f 100644 --- a/lib/libcrypto/ec/eck_prn.c +++ b/lib/libcrypto/ec/eck_prn.c @@ -1,4 +1,4 @@ -/* $OpenBSD: eck_prn.c,v 1.38 2024/11/14 10:25:17 tb Exp $ */ +/* $OpenBSD: eck_prn.c,v 1.39 2024/11/14 10:27:59 tb Exp $ */ /* * Written by Nils Larsch for the OpenSSL project. */ @@ -246,6 +246,7 @@ ecpk_print_explicit_parameters(BIO *bio, const EC_GROUP *group, int off) ECerror(ERR_R_EC_LIB); goto err; } + form = EC_GROUP_get_point_conversion_form(group); if (EC_POINT_point2bn(group, generator, form, gen, ctx) == NULL) { ECerror(ERR_R_EC_LIB); @@ -281,6 +282,7 @@ ecpk_print_explicit_parameters(BIO *bio, const EC_GROUP *group, int off) goto err; if (!bn_printf(bio, cofactor, off, "Cofactor: ")) goto err; + if ((seed = EC_GROUP_get0_seed(group)) != NULL) { size_t i; |