Codebase list openssl / d591f30
Fix ecparam -genkey with point compression or DER outform Reviewed-by: Rich Salz <rsalz@openssl.org> (Merged from https://github.com/openssl/openssl/pull/5741) (cherry picked from commit 4bdc25b07f007d9c383fbad159f81543f2e95965) Bernd Edlinger 6 years ago
1 changed file(s) with 6 addition(s) and 0 deletion(s). Raw diff Collapse all Expand all
545545 BIO_printf(out, "\treturn(group);\n\t}\n");
546546 }
547547
548 if (outformat == FORMAT_ASN1 && genkey)
549 noout = 1;
550
548551 if (!noout) {
549552 if (outformat == FORMAT_ASN1)
550553 i = i2d_ECPKParameters_bio(out, group);
580583
581584 if (EC_KEY_set_group(eckey, group) == 0)
582585 goto end;
586
587 if (new_form)
588 EC_KEY_set_conv_form(eckey, form);
583589
584590 if (!EC_KEY_generate_key(eckey)) {
585591 EC_KEY_free(eckey);