diff options
author | PW Hu <jlu.hpw@foxmail.com> | 2021-10-22 18:10:17 +0800 |
---|---|---|
committer | Pauli <pauli@openssl.org> | 2021-10-28 13:17:40 +1000 |
commit | 8b7d7789dc4ea0de11331cb4045bcb03ab0864fc (patch) | |
tree | e417d70c0508e751c1c31dfd613099cffd16b5c0 /test | |
parent | 1287dabd0b23326be491125698dd982e4ae28887 (diff) | |
download | openssl-8b7d7789dc4ea0de11331cb4045bcb03ab0864fc.tar.gz |
Fix return value error in doc, and an error test
Reviewed-by: Tomas Mraz <tomas@openssl.org>
Reviewed-by: Paul Dale <pauli@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/16889)
[edited to remove end of line whitespace and wrap lines to eighty columns]
Diffstat (limited to 'test')
-rw-r--r-- | test/evp_pkey_provided_test.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/evp_pkey_provided_test.c b/test/evp_pkey_provided_test.c index 15c8ce77bb..f6424b86fa 100644 --- a/test/evp_pkey_provided_test.c +++ b/test/evp_pkey_provided_test.c @@ -141,7 +141,7 @@ static int test_print_key_using_pem(const char *alg, const EVP_PKEY *pk) (unsigned char *)"pass", 4, NULL, NULL)) /* Private key in text form */ - || !TEST_true(EVP_PKEY_print_private(membio, pk, 0, NULL)) + || !TEST_int_gt(EVP_PKEY_print_private(membio, pk, 0, NULL), 0) || !TEST_true(compare_with_file(alg, PRIV_TEXT, membio)) /* Public key in PEM form */ || !TEST_true(PEM_write_bio_PUBKEY(membio, pk)) |