ASN: fix so that NO_CERTS configurations work

Moved code around and update #ifdefs so that --enable-cryptonly
CFLAGS=-DNO_CERTS compiles.
This commit is contained in:
Sean Parkinson
2023-06-28 16:01:15 +10:00
parent da4424cd0c
commit 5be883a995
2 changed files with 566 additions and 554 deletions

File diff suppressed because it is too large Load Diff

View File

@ -28,7 +28,8 @@
#include <wolfssl/wolfcrypt/settings.h>
#if defined(HAVE_PKCS12) && \
!defined(NO_ASN) && !defined(NO_PWDBASED) && !defined(NO_HMAC)
!defined(NO_ASN) && !defined(NO_PWDBASED) && !defined(NO_HMAC) && \
!defined(NO_CERTS)
#include <wolfssl/wolfcrypt/asn.h>
#include <wolfssl/wolfcrypt/asn_public.h>