diff options
author | PW Hu <jlu.hpw@foxmail.com> | 2021-11-10 12:39:54 +0800 |
---|---|---|
committer | Tomas Mraz <tomas@openssl.org> | 2021-11-22 11:18:49 +0100 |
commit | 24ba865cfc7c04fba813ecb86ac7c1b329e3305f (patch) | |
tree | 3505802cf7fd523acca85ca9a68a3555470fc0a4 /providers/implementations | |
parent | f89b54460053404d85b9a91a8b6a2b30e254bdf8 (diff) |
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)
(cherry picked from commit 2349d7ba57c9327290df6f7bc18b7f0c3976ca9e)
Diffstat (limited to 'providers/implementations')
-rw-r--r-- | providers/implementations/encode_decode/decode_spki2typespki.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/providers/implementations/encode_decode/decode_spki2typespki.c b/providers/implementations/encode_decode/decode_spki2typespki.c index 3a4c83e8b5..a5dbbb31ad 100644 --- a/providers/implementations/encode_decode/decode_spki2typespki.c +++ b/providers/implementations/encode_decode/decode_spki2typespki.c @@ -87,7 +87,7 @@ static int spki2typespki_decode(void *vctx, OSSL_CORE_BIO *cin, int selection, strcpy(dataname, "SM2"); else #endif - if (!OBJ_obj2txt(dataname, sizeof(dataname), oid, 0)) + if (OBJ_obj2txt(dataname, sizeof(dataname), oid, 0) <= 0) goto end; ossl_X509_PUBKEY_INTERNAL_free(xpub); |