diff --git a/sys/opencrypto/cryptodev.h b/sys/opencrypto/cryptodev.h --- a/sys/opencrypto/cryptodev.h +++ b/sys/opencrypto/cryptodev.h @@ -70,6 +70,8 @@ #ifdef _KERNEL #include #include +#include +#include #endif /* Some initial values */ @@ -603,7 +605,9 @@ const struct auth_hash *crypto_auth_hash(const struct crypto_session_params *csp); const struct enc_xform *crypto_cipher(const struct crypto_session_params *csp); +#ifdef MALLOC_DECLARE MALLOC_DECLARE(M_CRYPTO_DATA); +#endif int crypto_newsession(crypto_session_t *cses, const struct crypto_session_params *params, int crid);