From: Alessandro Ghedini Date: Thu, 30 Jun 2016 22:51:48 +0000 (+0100) Subject: Fix printing private EC_KEY X-Git-Tag: OpenSSL_1_1_0-pre6~297 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=a66069dbcd020f25b80c66c0e71e137683c54914;p=oweals%2Fopenssl.git Fix printing private EC_KEY Reviewed-by: Kurt Roeckx Reviewed-by: Stephen Henson Reviewed-by: Rich Salz (Merged from https://github.com/openssl/openssl/pull/1273) --- diff --git a/crypto/ec/ec_ameth.c b/crypto/ec/ec_ameth.c index 7fcc2c8043..3212984252 100644 --- a/crypto/ec/ec_ameth.c +++ b/crypto/ec/ec_ameth.c @@ -548,7 +548,7 @@ int EC_KEY_print(BIO *bp, const EC_KEY *x, int off) int private = EC_KEY_get0_private_key(x) != NULL; return do_EC_KEY_print(bp, x, off, - private ? EC_KEY_PRINT_PUBLIC : EC_KEY_PRINT_PUBLIC); + private ? EC_KEY_PRINT_PRIVATE : EC_KEY_PRINT_PUBLIC); } int ECParameters_print(BIO *bp, const EC_KEY *x)