Skip to content

Commit e9e00c4

Browse files
committed
Allow CA:FALSE on wolftpm
The Intel CSME fTFM sets this basic constraint on their EK certificates and by default wolfSSL fails to parse because of this.
1 parent 1c1c556 commit e9e00c4

2 files changed

Lines changed: 4 additions & 0 deletions

File tree

CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2085,6 +2085,7 @@ if(WOLFSSL_TPM)
20852085
override_cache(WOLFSSL_CERTEXT "yes")
20862086
override_cache(WOLFSSL_PKCS7 "yes")
20872087
override_cache(WOLFSSL_AESCFB "yes")
2088+
list(APPEND WOLFSSL_DEFINITIONS "-DWOLFSSL_ALLOW_ENCODING_CA_FALSE")
20882089
endif()
20892090

20902091
if(WOLFSSL_CLU)

configure.ac

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7243,6 +7243,9 @@ then
72437243
72447244
# Requires public mp_
72457245
AM_CFLAGS="$AM_CFLAGS -DWOLFSSL_PUBLIC_MP"
7246+
7247+
# Requires allowing CA:FALSE in BasicConstraints
7248+
AM_CFLAGS="$AM_CFLAGS -DWOLFSSL_ALLOW_ENCODING_CA_FALSE"
72467249
fi
72477250
72487251
if test "x$ENABLED_SMIME" = "xyes"

0 commit comments

Comments
 (0)