diff --git a/lib/crypto_backend/crypto_backend.h b/lib/crypto_backend/crypto_backend.h index 948575ea..14af97d3 100644 --- a/lib/crypto_backend/crypto_backend.h +++ b/lib/crypto_backend/crypto_backend.h @@ -21,6 +21,10 @@ #define char16_t uint16_t #endif +# ifdef __cplusplus +extern "C" { +# endif + struct crypt_hash; struct crypt_hmac; struct crypt_cipher; @@ -143,4 +147,8 @@ int crypt_backend_memeq(const void *m1, const void *m2, size_t n); /* crypto backend running in FIPS mode */ bool crypt_fips_mode(void); +# ifdef __cplusplus +} +# endif + #endif /* _CRYPTO_BACKEND_H */