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)
This commit is contained in:
Alessandro Ghedini 2016-06-30 23:51:48 +01:00 committed by Rich Salz
parent 533bf1df55
commit a66069dbcd

View file

@ -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)