diff options
author | David Cooper <david.cooper@nist.gov> | 2018-01-24 17:47:23 +0100 |
---|---|---|
committer | Matt Caswell <matt@openssl.org> | 2018-01-24 19:30:31 +0100 |
commit | cace14b8ef5362a7a269ac71dcac8304206811e1 (patch) | |
tree | 9df6980e3bc9c61addc88460ca50dcc81d4071e8 /crypto/ocsp | |
parent | Make editorial changes suggested by Matt Caswell and fixed Travis failures. (diff) | |
download | openssl-cace14b8ef5362a7a269ac71dcac8304206811e1.tar.xz openssl-cace14b8ef5362a7a269ac71dcac8304206811e1.zip |
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); |