diff options
author | Alessandro Ghedini <alessandro@ghedini.me> | 2016-07-01 00:51:48 +0200 |
---|---|---|
committer | Rich Salz <rsalz@openssl.org> | 2016-07-01 16:46:21 +0200 |
commit | a66069dbcd020f25b80c66c0e71e137683c54914 (patch) | |
tree | 4132b8bb1f246037067c87d7cdcfa90fbca9a4e6 /crypto/ec | |
parent | ssl.h: spelling in comment (diff) | |
download | openssl-a66069dbcd020f25b80c66c0e71e137683c54914.tar.xz openssl-a66069dbcd020f25b80c66c0e71e137683c54914.zip |
Fix printing private EC_KEY
Reviewed-by: Kurt Roeckx <kurt@openssl.org>
Reviewed-by: Stephen Henson <steve@openssl.org>
Reviewed-by: Rich Salz <rsalz@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/1273)
Diffstat (limited to 'crypto/ec')
-rw-r--r-- | crypto/ec/ec_ameth.c | 2 |
1 files changed, 1 insertions, 1 deletions
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) |