diff options
author | David Cooper <david.cooper@nist.gov> | 2018-01-24 11:47:23 -0500 |
---|---|---|
committer | Matt Caswell <matt@openssl.org> | 2018-01-24 18:30:31 +0000 |
commit | cace14b8ef5362a7a269ac71dcac8304206811e1 (patch) | |
tree | 9df6980e3bc9c61addc88460ca50dcc81d4071e8 /crypto/ocsp | |
parent | 0494014781d2e348996f55acca0d179b09f9499f (diff) | |
download | openssl-new-cace14b8ef5362a7a269ac71dcac8304206811e1.tar.gz |
Add documentation for the OCSP_basic_sign() and OCSP_basic_sign_ctx() functions.
Correct error return value in OCSP_basic_sign().
Reviewed-by: Rich Salz <rsalz@openssl.org>
Reviewed-by: Matt Caswell <matt@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/4190)
Diffstat (limited to 'crypto/ocsp')
-rw-r--r-- | crypto/ocsp/ocsp_srv.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crypto/ocsp/ocsp_srv.c b/crypto/ocsp/ocsp_srv.c index 9c7c81a1b0..eff6ddbd60 100644 --- a/crypto/ocsp/ocsp_srv.c +++ b/crypto/ocsp/ocsp_srv.c @@ -239,7 +239,7 @@ int OCSP_basic_sign(OCSP_BASICRESP *brsp, if (!EVP_DigestSignInit(ctx, &pkctx, dgst, NULL, key)) { EVP_MD_CTX_free(ctx); - return 1; + return 0; } i = OCSP_basic_sign_ctx(brsp, signer, ctx, certs, flags); EVP_MD_CTX_free(ctx); |