summaryrefslogtreecommitdiffstats
path: root/apps/ocsp.c
diff options
context:
space:
mode:
authorMatt Caswell <matt@openssl.org>2018-03-20 11:16:39 +0000
committerMatt Caswell <matt@openssl.org>2018-03-20 15:53:05 +0000
commite46931108a1c4ae35903e4b6b481b341545f3ea3 (patch)
tree3b87e08ee3372a85113c92ec71e9ccdea14de09d /apps/ocsp.c
parent9fcfd0cd860610d69268414b9671b5ed3274bfcd (diff)
Fix the OCSP responder mode
Broken by commit 3e3c7c36. Fixes #5681 Reviewed-by: Matthias St. Pierre <Matthias.St.Pierre@ncp-e.com> (Merged from https://github.com/openssl/openssl/pull/5688)
Diffstat (limited to 'apps/ocsp.c')
-rw-r--r--apps/ocsp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/ocsp.c b/apps/ocsp.c
index ed2281a596..7581531ccf 100644
--- a/apps/ocsp.c
+++ b/apps/ocsp.c
@@ -551,7 +551,7 @@ int ocsp_main(int argc, char **argv)
}
if (ridx_filename != NULL
- && (rkey != NULL || rsigner != NULL || rca_cert != NULL)) {
+ && (rkey == NULL || rsigner == NULL || rca_cert == NULL)) {
BIO_printf(bio_err,
"Responder mode requires certificate, key, and CA.\n");
goto end;