Export the _kern_crypto sysctl node from crypto.c.

Sponsored by:	Netflix
Differential Revision:	https://reviews.freebsd.org/D24545
This commit is contained in:
John Baldwin 2020-05-25 22:18:33 +00:00
parent 9c0e3d3a53
commit 33f3bad35e
2 changed files with 5 additions and 1 deletions

View file

@ -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");
/*

View file

@ -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;