Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix for config.h #330

Merged
merged 1 commit into from
Feb 8, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 0 additions & 4 deletions IDE/OPENSTM32/Inc/wolftpm_example.h
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,6 @@
#include <stm32f4xx.h>
#include <cmsis_os.h>

#ifdef HAVE_CONFIG_H
#include <config.h>
#endif

#ifndef WOLFSSL_USER_SETTINGS
#include <wolfssl/options.h>
#endif
Expand Down
3 changes: 3 additions & 0 deletions IDE/OPENSTM32/Src/wolftpm_example.c
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,9 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1335, USA
*/

#ifdef HAVE_CONFIG_H
#include <config.h>
#endif

#include "wolftpm_example.h"

Expand Down
4 changes: 4 additions & 0 deletions examples/attestation/activate_credential.c
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,10 @@
* and extract the secret for challenge response to an attestation server
*/

#ifdef HAVE_CONFIG_H
#include <config.h>
#endif

#include <wolftpm/tpm2_wrap.h>

#include <stdio.h>
Expand Down
4 changes: 4 additions & 0 deletions examples/attestation/make_credential.c
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,10 @@

/* This example shows how to create a challenge for Remote Attestation */

#ifdef HAVE_CONFIG_H
#include <config.h>
#endif

#include <wolftpm/tpm2_wrap.h>

#ifndef WOLFTPM2_NO_WRAPPER
Expand Down
4 changes: 4 additions & 0 deletions examples/bench/bench.c
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,10 @@
/* This example shows benchmarks using the TPM2 wrapper API's in
TPM2_Wrapper_Bench() below. */

#ifdef HAVE_CONFIG_H
#include <config.h>
#endif

#include <wolftpm/tpm2.h>
#include <wolftpm/tpm2_wrap.h>

Expand Down
3 changes: 3 additions & 0 deletions examples/boot/secret_seal.c
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,9 @@
/* Example for using TPM to seal a secret using an external key based on PCR(s)
*/

#ifdef HAVE_CONFIG_H
#include <config.h>
#endif

#include <wolftpm/tpm2.h>
#include <wolftpm/tpm2_wrap.h>
Expand Down
3 changes: 3 additions & 0 deletions examples/boot/secret_unseal.c
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,9 @@
/* Example for using TPM to seal a secret using an external key based on PCR(s)
*/

#ifdef HAVE_CONFIG_H
#include <config.h>
#endif

#include <wolftpm/tpm2.h>
#include <wolftpm/tpm2_wrap.h>
Expand Down
3 changes: 3 additions & 0 deletions examples/boot/secure_rot.c
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,9 @@
/* Example for using TPM for secure boot root of trust
*/

#ifdef HAVE_CONFIG_H
#include <config.h>
#endif

#include <wolftpm/tpm2.h>
#include <wolftpm/tpm2_wrap.h>
Expand Down
3 changes: 3 additions & 0 deletions examples/csr/csr.c
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,9 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1335, USA
*/

#ifdef HAVE_CONFIG_H
#include <config.h>
#endif

#include <wolftpm/tpm2.h>
#include <wolftpm/tpm2_wrap.h>
Expand Down
7 changes: 6 additions & 1 deletion examples/gpio/gpio_config.c
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,12 @@
*/

/* This examples demonstrates the use of GPIO available on some TPM modules.
* Support tested with STM ST33 and Nuvoton NPCT750 FW 7.2.3.0 or later */
* Support tested with STM ST33 and Nuvoton NPCT750 FW 7.2.3.0 or later
*/

#ifdef HAVE_CONFIG_H
#include <config.h>
#endif

#include <wolftpm/tpm2_wrap.h>

Expand Down
4 changes: 4 additions & 0 deletions examples/gpio/gpio_read.c
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,10 @@
*
*/

#ifdef HAVE_CONFIG_H
#include <config.h>
#endif

#include <wolftpm/tpm2_wrap.h>

#include <examples/gpio/gpio.h>
Expand Down
4 changes: 4 additions & 0 deletions examples/gpio/gpio_set.c
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,10 @@
*
*/

#ifdef HAVE_CONFIG_H
#include <config.h>
#endif

#include <wolftpm/tpm2_wrap.h>

#include <stdio.h>
Expand Down
4 changes: 4 additions & 0 deletions examples/keygen/create_primary.c
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,10 @@

/* Tool and example for creating and storing primary keys using TPM2.0 */

#ifdef HAVE_CONFIG_H
#include <config.h>
#endif

#include <wolftpm/tpm2_wrap.h>

#include <stdio.h>
Expand Down
7 changes: 6 additions & 1 deletion examples/keygen/external_import.c
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,12 @@
*/

/* Example for importing an external RSA key with seed and creating a
* child key under it. */
* child key under it.
*/

#ifdef HAVE_CONFIG_H
#include <config.h>
#endif

#include <wolftpm/tpm2_wrap.h>

Expand Down
4 changes: 4 additions & 0 deletions examples/keygen/keygen.c
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,10 @@

/* Tool and example for creating, storing and loading keys using TPM2.0 */

#ifdef HAVE_CONFIG_H
#include <config.h>
#endif

#include <wolftpm/tpm2_wrap.h>

#include <stdio.h>
Expand Down
4 changes: 4 additions & 0 deletions examples/keygen/keyimport.c
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,10 @@

/* Tool and example for creating, storing and loading keys using TPM2.0 */

#ifdef HAVE_CONFIG_H
#include <config.h>
#endif

#include <wolftpm/tpm2_wrap.h>

#include <stdio.h>
Expand Down
3 changes: 3 additions & 0 deletions examples/keygen/keyload.c
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,9 @@

/* Tool and example for creating, storing and loading keys using TPM2.0 */

#ifdef HAVE_CONFIG_H
#include <config.h>
#endif

/* use ANSI stdio for support of format strings, must be set before
* including stdio.h
Expand Down
4 changes: 4 additions & 0 deletions examples/management/flush.c
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,10 @@

/* This is a helper tool for reseting the value of a TPM2.0 PCR */

#ifdef HAVE_CONFIG_H
#include <config.h>
#endif

#include <wolftpm/tpm2_wrap.h>

#include <examples/management/flush.h>
Expand Down
4 changes: 4 additions & 0 deletions examples/native/native_test.c
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,10 @@

/* This example shows using the TPM2_ specification API's in TPM2_Native_Test() */

#ifdef HAVE_CONFIG_H
#include <config.h>
#endif

#include <wolftpm/tpm2.h>
#include <wolftpm/tpm2_param_enc.h>

Expand Down
6 changes: 5 additions & 1 deletion examples/nvram/counter.c
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,11 @@
* NB: This example uses Parameter Encryption to protect
* the Password Authorization of the TPM NVRAM Index
*
**/
*/

#ifdef HAVE_CONFIG_H
#include <config.h>
#endif

#include <wolftpm/tpm2_wrap.h>

Expand Down
6 changes: 5 additions & 1 deletion examples/nvram/policy_nv.c
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,11 @@
* NB: This example uses Parameter Encryption to protect the password of the
* TPM NVRAM Index, where the private and public parts of a TPM key is stored
*
**/
*/

#ifdef HAVE_CONFIG_H
#include <config.h>
#endif

#include <wolftpm/tpm2_wrap.h>

Expand Down
6 changes: 5 additions & 1 deletion examples/nvram/read.c
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,11 @@
* NB: This example uses Parameter Encryption to protect
* the Password Authorization of the TPM NVRAM Index
*
**/
*/

#ifdef HAVE_CONFIG_H
#include <config.h>
#endif

#include <wolftpm/tpm2_wrap.h>

Expand Down
6 changes: 5 additions & 1 deletion examples/nvram/store.c
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,11 @@
* NB: This example uses Parameter Encryption to protect the password of the
* TPM NVRAM Index, where the private and public parts of a TPM key is stored
*
**/
*/

#ifdef HAVE_CONFIG_H
#include <config.h>
#endif

#include <wolftpm/tpm2_wrap.h>

Expand Down
4 changes: 4 additions & 0 deletions examples/pcr/extend.c
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,10 @@

/* This is a helper tool for extending hash into a TPM2.0 PCR */

#ifdef HAVE_CONFIG_H
#include <config.h>
#endif

#include <wolftpm/tpm2_wrap.h>

#ifndef WOLFTPM2_NO_WRAPPER
Expand Down
4 changes: 4 additions & 0 deletions examples/pcr/policy.c
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,10 @@

/* This is a helper tool for setting policies on a TPM 2.0 PCR */

#ifdef HAVE_CONFIG_H
#include <config.h>
#endif

#include <wolftpm/tpm2_wrap.h>

#include <stdio.h>
Expand Down
3 changes: 3 additions & 0 deletions examples/pcr/policy_sign.c
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,9 @@
/* Example for signing PCR(s) to create a policy for unsealing a secret
*/

#ifdef HAVE_CONFIG_H
#include <config.h>
#endif

#include <wolftpm/tpm2.h>
#include <wolftpm/tpm2_wrap.h>
Expand Down
4 changes: 4 additions & 0 deletions examples/pcr/quote.c
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,10 @@
* PCR measurement. PCR values are used as basis for system integrity.
*/

#ifdef HAVE_CONFIG_H
#include <config.h>
#endif

#include <wolftpm/tpm2_wrap.h>

#ifndef WOLFTPM2_NO_WRAPPER
Expand Down
4 changes: 4 additions & 0 deletions examples/pcr/read_pcr.c
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,10 @@

/* This is a helper tool for reading the value of a TPM2.0 PCR */

#ifdef HAVE_CONFIG_H
#include <config.h>
#endif

#include <wolftpm/tpm2_wrap.h>

#include <stdio.h>
Expand Down
3 changes: 3 additions & 0 deletions examples/pkcs7/pkcs7.c
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,9 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1335, USA
*/

#ifdef HAVE_CONFIG_H
#include <config.h>
#endif

#include <wolftpm/tpm2.h>
#include <wolftpm/tpm2_wrap.h>
Expand Down
4 changes: 4 additions & 0 deletions examples/seal/seal.c
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,10 @@

/* Example for TPM 2.0 sealing a user secret using TPM key */

#ifdef HAVE_CONFIG_H
#include <config.h>
#endif

#include <wolftpm/tpm2_wrap.h>

#include <stdio.h>
Expand Down
4 changes: 4 additions & 0 deletions examples/seal/unseal.c
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,10 @@

/* This example demonstrates how to extract the data from a TPM seal object */

#ifdef HAVE_CONFIG_H
#include <config.h>
#endif

#include <wolftpm/tpm2_wrap.h>

#include <stdio.h>
Expand Down
4 changes: 4 additions & 0 deletions examples/timestamp/clock_set.c
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,10 @@

/* This example shows how to increment the TPM2 clock */

#ifdef HAVE_CONFIG_H
#include <config.h>
#endif

#include <wolftpm/tpm2_wrap.h>

#include <stdio.h>
Expand Down
4 changes: 4 additions & 0 deletions examples/timestamp/signed_timestamp.c
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,10 @@
* generate a signed timestamp from the TPM using a Attestation Identity Key.
*/

#ifdef HAVE_CONFIG_H
#include <config.h>
#endif

#include <wolftpm/tpm2_wrap.h>

#include <stdio.h>
Expand Down
3 changes: 3 additions & 0 deletions examples/tls/tls_client.c
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,9 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1335, USA
*/

#ifdef HAVE_CONFIG_H
#include <config.h>
#endif

#include <wolftpm/tpm2.h>
#include <wolftpm/tpm2_wrap.h>
Expand Down
3 changes: 3 additions & 0 deletions examples/tls/tls_client_notpm.c
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,9 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1335, USA
*/

#ifdef HAVE_CONFIG_H
#include <config.h>
#endif

#include <wolftpm/tpm2.h>
#include <wolftpm/tpm2_wrap.h>
Expand Down
3 changes: 3 additions & 0 deletions examples/tls/tls_server.c
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,9 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1335, USA
*/

#ifdef HAVE_CONFIG_H
#include <config.h>
#endif

#include <wolftpm/tpm2.h>
#include <wolftpm/tpm2_wrap.h>
Expand Down
Loading
Loading