diff --git a/CMakeLists.txt b/CMakeLists.txt index 32ec82a..7bd4297 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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 ) diff --git a/src/tpm2_asn.c b/src/tpm2_asn.c index 2d67c44..c442b05 100644 --- a/src/tpm2_asn.c +++ b/src/tpm2_asn.c @@ -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 #endif @@ -27,6 +26,7 @@ #include #include +#ifndef WOLFTPM2_NO_ASN #ifndef WOLFTPM2_NO_WRAPPER int TPM2_ASN_GetLength_ex(const uint8_t* input, word32* inOutIdx, int* len, diff --git a/wolftpm/tpm2_asn.h b/wolftpm/tpm2_asn.h index a7a6620..65a07e1 100644 --- a/wolftpm/tpm2_asn.h +++ b/wolftpm/tpm2_asn.h @@ -22,10 +22,6 @@ #ifndef WOLFTPM_TPM2_ASN_H #define WOLFTPM_TPM2_ASN_H -#ifdef HAVE_CONFIG_H - #include -#endif - #include #include