Update CMakeLists and move WOLFTPM2_NO_ASN down

pull/404/head
Tesfa Mael 2025-03-04 18:55:41 -08:00
parent bb5eeb8976
commit ceb2c224d6
3 changed files with 2 additions and 5 deletions

View File

@ -35,6 +35,7 @@ set(TPM_SOURCES
src/tpm2_tis.c
src/tpm2_winapi.c
src/tpm2_wrap.c
src/tpm2_asn.c
src/tpm2_cryptocb.c
hal/tpm_io.c
)

View File

@ -19,7 +19,6 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1335, USA
*/
#ifndef WOLFTPM2_NO_ASN
#ifdef HAVE_CONFIG_H
#include <config.h>
#endif
@ -27,6 +26,7 @@
#include <wolftpm/tpm2_wrap.h>
#include <wolftpm/tpm2_asn.h>
#ifndef WOLFTPM2_NO_ASN
#ifndef WOLFTPM2_NO_WRAPPER
int TPM2_ASN_GetLength_ex(const uint8_t* input, word32* inOutIdx, int* len,

View File

@ -22,10 +22,6 @@
#ifndef WOLFTPM_TPM2_ASN_H
#define WOLFTPM_TPM2_ASN_H
#ifdef HAVE_CONFIG_H
#include <config.h>
#endif
#include <wolftpm/tpm2.h>
#include <wolftpm/tpm2_types.h>