[openssl-commits] [openssl] OpenSSL_1_1_0-stable update

bernd.edlinger at hotmail.de bernd.edlinger at hotmail.de
Sun Mar 25 09:14:43 UTC 2018


The branch OpenSSL_1_1_0-stable has been updated
       via  5edeb62306bdba6597f721cd3a41f902dc9a1357 (commit)
      from  1bfb7860cb81cf6431308c244a4967e41806a919 (commit)


- Log -----------------------------------------------------------------
commit 5edeb62306bdba6597f721cd3a41f902dc9a1357
Author: Bernd Edlinger <bernd.edlinger at hotmail.de>
Date:   Sat Mar 24 15:17:11 2018 +0100

    Fix ecparam -genkey with point compression or DER outform
    
    Reviewed-by: Rich Salz <rsalz at openssl.org>
    (Merged from https://github.com/openssl/openssl/pull/5741)
    
    (cherry picked from commit 4bdc25b07f007d9c383fbad159f81543f2e95965)

-----------------------------------------------------------------------

Summary of changes:
 apps/ecparam.c | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/apps/ecparam.c b/apps/ecparam.c
index 086bbeb..775db1b 100644
--- a/apps/ecparam.c
+++ b/apps/ecparam.c
@@ -393,6 +393,9 @@ int ecparam_main(int argc, char **argv)
                         "}\n");
     }
 
+    if (outformat == FORMAT_ASN1 && genkey)
+        noout = 1;
+
     if (!noout) {
         if (outformat == FORMAT_ASN1)
             i = i2d_ECPKParameters_bio(out, group);
@@ -428,6 +431,9 @@ int ecparam_main(int argc, char **argv)
             goto end;
         }
 
+        if (new_form)
+            EC_KEY_set_conv_form(eckey, form);
+
         if (!EC_KEY_generate_key(eckey)) {
             BIO_printf(bio_err, "unable to generate key\n");
             EC_KEY_free(eckey);


More information about the openssl-commits mailing list