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:
parent
533bf1df55
commit
a66069dbcd
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue