diff options
author | Rob Percival <robpercival@google.com> | 2016-03-07 18:38:06 +0000 |
---|---|---|
committer | Rich Salz <rsalz@openssl.org> | 2016-03-09 11:34:48 -0500 |
commit | 70073f3e3aeb3b7dd15f20b557a8340a197d976e (patch) | |
tree | b4ed734542cef7b843b6c28b3bf9c065adc51a29 /include | |
parent | 8c92c4eac091e1a588a980514e7f5fd2a517fefc (diff) |
Treat boolean functions as booleans
Use "!x" instead of "x <= 0", as these functions never return a negative
value.
Reviewed-by: Emilia Käsper <emilia@openssl.org>
Reviewed-by: Rich Salz <rsalz@openssl.org>
Diffstat (limited to 'include')
-rw-r--r-- | include/openssl/ct.h | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/include/openssl/ct.h b/include/openssl/ct.h index 0f29f3c82c..fa5175f29d 100644 --- a/include/openssl/ct.h +++ b/include/openssl/ct.h @@ -347,15 +347,13 @@ void SCT_LIST_print(const STACK_OF(SCT) *sct_list, BIO *out, int indent, /* * Verifies an SCT with the given context. - * Returns 1 if the SCT verifies successfully, 0 if it cannot be verified and a - * negative integer if an error occurs. + * Returns 1 if the SCT verifies successfully, 0 otherwise. */ __owur int SCT_verify(const SCT_CTX *sctx, const SCT *sct); /* * Verifies an SCT against the provided data. - * Returns 1 if the SCT verifies successfully, 0 if it cannot be verified and a - * negative integer if an error occurs. + * Returns 1 if the SCT verifies successfully, 0 otherwise. */ __owur int SCT_verify_v1(SCT *sct, X509 *cert, X509 *preissuer, X509_PUBKEY *log_pubkey, X509 *issuer_cert); |