diff --git a/include/psa/crypto_struct.h b/include/psa/crypto_struct.h index 28bbc6ac8..e28b6daa5 100644 --- a/include/psa/crypto_struct.h +++ b/include/psa/crypto_struct.h @@ -55,6 +55,10 @@ #ifndef PSA_CRYPTO_STRUCT_H #define PSA_CRYPTO_STRUCT_H +#ifdef __cplusplus +extern "C" { +#endif + /* Include the Mbed TLS configuration file, the way Mbed TLS does it * in each of its header files. */ #if !defined(MBEDTLS_CONFIG_FILE) @@ -497,4 +501,8 @@ static inline size_t psa_get_key_bits( return( attributes->core.bits ); } +#ifdef __cplusplus +} +#endif + #endif /* PSA_CRYPTO_STRUCT_H */