diff --git a/sys/opencrypto/crypto.c b/sys/opencrypto/crypto.c index 73a38ea399d..4397f3099b4 100644 --- a/sys/opencrypto/crypto.c +++ b/sys/opencrypto/crypto.c @@ -152,7 +152,7 @@ static struct mtx crypto_q_mtx; #define CRYPTO_Q_LOCK() mtx_lock(&crypto_q_mtx) #define CRYPTO_Q_UNLOCK() mtx_unlock(&crypto_q_mtx) -static SYSCTL_NODE(_kern, OID_AUTO, crypto, CTLFLAG_RW, 0, +SYSCTL_NODE(_kern, OID_AUTO, crypto, CTLFLAG_RW, 0, "In-kernel cryptography"); /* diff --git a/sys/opencrypto/cryptodev.h b/sys/opencrypto/cryptodev.h index 4483fc122f2..d51df503573 100644 --- a/sys/opencrypto/cryptodev.h +++ b/sys/opencrypto/cryptodev.h @@ -643,6 +643,10 @@ extern int crypto_usercrypto; /* userland may do crypto requests */ extern int crypto_userasymcrypto; /* userland may do asym crypto reqs */ extern int crypto_devallowsoft; /* only use hardware crypto */ +#ifdef SYSCTL_DECL +SYSCTL_DECL(_kern_crypto); +#endif + /* Helper routines for drivers to initialize auth contexts for HMAC. */ struct auth_hash;