The branch OpenSSL_1_1_0-stable has been updated via 718951c2f2bd0065425e560584eee89ec65d22a5 (commit) from 0adfd49e47b08df699c941efef01b88d12b4a060 (commit)
- Log ----------------------------------------------------------------- commit 718951c2f2bd0065425e560584eee89ec65d22a5 Author: Tim Hudson <t...@openssl.org> Date: Sat Sep 10 06:53:33 2016 +1000 Fix EC_KEY_print so it prints out private key information even when the public key is not present in an EC_KEY Reviewed-by: Stephen Henson <st...@openssl.org> (cherry picked from commit 82f52631b21b021787f344733e08bb53f1e7f0ec) ----------------------------------------------------------------------- Summary of changes: crypto/ec/ec_ameth.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crypto/ec/ec_ameth.c b/crypto/ec/ec_ameth.c index 9792007..66437e0 100644 --- a/crypto/ec/ec_ameth.c +++ b/crypto/ec/ec_ameth.c @@ -345,7 +345,7 @@ static int do_EC_KEY_print(BIO *bp, const EC_KEY *x, int off, ec_print_t ktype) return 0; } - if (ktype != EC_KEY_PRINT_PARAM) { + if (ktype != EC_KEY_PRINT_PARAM && EC_KEY_get0_public_key(x) != NULL) { publen = EC_KEY_key2buf(x, EC_KEY_get_conv_form(x), &pub, NULL); if (publen == 0) goto err; _____ openssl-commits mailing list To unsubscribe: https://mta.openssl.org/mailman/listinfo/openssl-commits