mirror of
https://github.com/wolfSSL/wolfssl.git
synced 2026-08-15 22:21:37 +02:00
WOLFSSL_OCSP_CHECKALL is a scope flag ("always leaf, but all ?"), selecting
which certs are checked, not how hard to fail when one advertises no OCSP
responder in its AIA. Treating a missing responder as a hard failure breaks
any chain whose CA publishes no OCSP URI (e.g. Google GTS WR2), a
configuration that only grows as CAs drop responders. Strictness belongs in
its own opt-in flag.
- Keep CHECKALL scope-only; a cert with no responder soft-fails by default.
- Return distinct OCSP_NO_URL for "no responder", separate from a failed
lookup; stapling response handling stays best-effort (mapped to CERT_GOOD).
- Add WOLFSSL_OCSP_FAIL_IF_NOT_SUPPORTED (via OcspNoUrlPolicy) to refuse such
certs; independent of CHECKALL.
- Add test_ocsp_no_url_policy covering both halves.
43 lines
1.5 KiB
C
43 lines
1.5 KiB
C
/* test_ocsp.h
|
|
*
|
|
* Copyright (C) 2006-2026 wolfSSL Inc.
|
|
*
|
|
* This file is part of wolfSSL.
|
|
*
|
|
* wolfSSL is free software; you can redistribute it and/or modify
|
|
* it under the terms of the GNU General Public License as published by
|
|
* the Free Software Foundation; either version 3 of the License, or
|
|
* (at your option) any later version.
|
|
*
|
|
* wolfSSL is distributed in the hope that it will be useful,
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
* GNU General Public License for more details.
|
|
*
|
|
* You should have received a copy of the GNU General Public License
|
|
* along with this program; if not, write to the Free Software
|
|
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1335, USA
|
|
*/
|
|
|
|
#ifndef WOLFSSL_TEST_OCSP_H
|
|
#define WOLFSSL_TEST_OCSP_H
|
|
|
|
int test_ocsp_certid_enc_dec(void);
|
|
int test_ocsp_certid_dup(void);
|
|
int test_ocsp_resp_find_status_serial_prefix(void);
|
|
int test_ocsp_status_callback(void);
|
|
int test_ocsp_basic_verify(void);
|
|
int test_ocsp_responder_keyhash_binding(void);
|
|
int test_ocsp_response_parsing(void);
|
|
int test_ocsp_tls_cert_cb(void);
|
|
int test_ocsp_status_request_v2_multi_revoked_single(void);
|
|
int test_ocsp_cert_unknown_crl_fallback(void);
|
|
int test_ocsp_cert_unknown_crl_fallback_nonleaf(void);
|
|
int test_ocsp_no_url_policy(void);
|
|
int test_tls13_nonblock_ocsp_low_mfl(void);
|
|
int test_ocsp_responder(void);
|
|
int test_ocsp_ancestor_responder_rejected(void);
|
|
int test_wolfIO_DecodeUrl_crlf_reject(void);
|
|
#endif /* WOLFSSL_TEST_OCSP_H */
|
|
|