mirror of
https://github.com/wolfSSL/wolfssl.git
synced 2026-07-05 18:40:49 +02:00
415f4f0504
Adds resp_certid_keyhash_mismatch — a forged response signed by the legitimate ocsp-responder whose CertID pairs the legitimate root CA's issuerNameHash with the imposter root CA's issuerKeyHash. The new test_ocsp_responder_keyhash_binding asserts wolfSSL_OCSP_basic_verify rejects it, exercising the fix that requires both halves of the CertID to match the responder's issuer.
38 lines
1.3 KiB
C
38 lines
1.3 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_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_cert_unknown_crl_fallback(void);
|
|
int test_ocsp_cert_unknown_crl_fallback_nonleaf(void);
|
|
int test_tls13_nonblock_ocsp_low_mfl(void);
|
|
int test_ocsp_responder(void);
|
|
#endif /* WOLFSSL_TEST_OCSP_H */
|
|
|