aboutsummaryrefslogtreecommitdiff
path: root/test/algorithmid_test.c
diff options
context:
space:
mode:
authorPW Hu <jlu.hpw@foxmail.com>2021-11-10 12:39:54 +0800
committerTomas Mraz <tomas@openssl.org>2021-11-22 11:17:48 +0100
commit2349d7ba57c9327290df6f7bc18b7f0c3976ca9e (patch)
tree665b40724ec43bd912f90de936e06e4c890f9bdd /test/algorithmid_test.c
parent615a9b8798e6ec58f1b2e1ec08a0f6b3c8cb7f60 (diff)
downloadopenssl-2349d7ba57c9327290df6f7bc18b7f0c3976ca9e.zip
openssl-2349d7ba57c9327290df6f7bc18b7f0c3976ca9e.tar.gz
openssl-2349d7ba57c9327290df6f7bc18b7f0c3976ca9e.tar.bz2
Fix the return check of OBJ_obj2txt
Also update OBJ_nid2obj.pod to document the possible return values. Reviewed-by: Paul Dale <pauli@openssl.org> Reviewed-by: Tomas Mraz <tomas@openssl.org> (Merged from https://github.com/openssl/openssl/pull/17005)
Diffstat (limited to 'test/algorithmid_test.c')
-rw-r--r--test/algorithmid_test.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/algorithmid_test.c b/test/algorithmid_test.c
index ce5fbff..0104425 100644
--- a/test/algorithmid_test.c
+++ b/test/algorithmid_test.c
@@ -48,7 +48,7 @@ static int test_spki_aid(X509_PUBKEY *pubkey, const char *filename)
goto end;
X509_ALGOR_get0(&oid, NULL, NULL, alg);
- if (!TEST_true(OBJ_obj2txt(name, sizeof(name), oid, 0)))
+ if (!TEST_int_gt(OBJ_obj2txt(name, sizeof(name), oid, 0), 0))
goto end;
/*