Commit 66074e2
committed
x509_str: align WOLFSSL_X509_V_ERR_INVALID_CA with OpenSSL value
WOLFSSL_X509_V_ERR_INVALID_CA was 24 while X509_V_ERR_INVALID_CA from
the OpenSSL-compat header is 79. In OPENSSL_COEXIST builds the literal
X509_V_ERR_INVALID_CA macro is suppressed to avoid clashing with real
OpenSSL, so referencing it from src/x509_str.c failed to compile.
Move WOLFSSL_X509_V_ERR_INVALID_CA to 79 so the wolfSSL native code
matches the OpenSSL value, bump WC_OSSL_V509_V_ERR_MAX to 80, and use
the WOLFSSL_-prefixed constant in wolfSSL_X509_verify_cert. Extend
error_test()'s missing-value table to cover the new gaps (24 and
65-78).
Also skip test_tls13_ticket_peer_cert_reverify under
WOLFSSL_NO_DEF_TICKET_ENC_CB, since without a ticket encryption
callback the server never emits a NewSessionTicket and the test's
resumption step cannot run.1 parent 1778081 commit 66074e2
4 files changed
Lines changed: 8 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
710 | 710 | | |
711 | 711 | | |
712 | 712 | | |
713 | | - | |
| 713 | + | |
714 | 714 | | |
715 | 715 | | |
716 | 716 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
28238 | 28238 | | |
28239 | 28239 | | |
28240 | 28240 | | |
| 28241 | + | |
28241 | 28242 | | |
28242 | 28243 | | |
28243 | 28244 | | |
| 28245 | + | |
28244 | 28246 | | |
28245 | 28247 | | |
28246 | 28248 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5276 | 5276 | | |
5277 | 5277 | | |
5278 | 5278 | | |
5279 | | - | |
| 5279 | + | |
5280 | 5280 | | |
5281 | 5281 | | |
5282 | 5282 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2684 | 2684 | | |
2685 | 2685 | | |
2686 | 2686 | | |
2687 | | - | |
2688 | 2687 | | |
2689 | 2688 | | |
2690 | 2689 | | |
2691 | | - | |
2692 | | - | |
2693 | | - | |
| 2690 | + | |
| 2691 | + | |
| 2692 | + | |
| 2693 | + | |
2694 | 2694 | | |
2695 | 2695 | | |
2696 | 2696 | | |
| |||
0 commit comments