summaryrefslogtreecommitdiff
path: root/sys/kern/kern_sysctl.c
diff options
context:
space:
mode:
authorNiels Provos <provos@cvs.openbsd.org>2002-03-01 02:52:52 +0000
committerNiels Provos <provos@cvs.openbsd.org>2002-03-01 02:52:52 +0000
commit5e69b34008a2ba0fb009781c1aa5d04e65e27147 (patch)
treedf6a27852a6763e475b6ac15843424e98407d801 /sys/kern/kern_sysctl.c
parent618d6f2d4a17203d404c76d4e1faef2f2e8a022c (diff)
sysctl for cryptodevallowsoft - /dev/crypto will allow the software engine
to be used if there are no hardware cards. mostly for debugging and regression.
Diffstat (limited to 'sys/kern/kern_sysctl.c')
-rw-r--r--sys/kern/kern_sysctl.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/sys/kern/kern_sysctl.c b/sys/kern/kern_sysctl.c
index edf544e207e..8bb61b8c666 100644
--- a/sys/kern/kern_sysctl.c
+++ b/sys/kern/kern_sysctl.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: kern_sysctl.c,v 1.61 2002/02/23 08:11:05 deraadt Exp $ */
+/* $OpenBSD: kern_sysctl.c,v 1.62 2002/03/01 02:52:51 provos Exp $ */
/* $NetBSD: kern_sysctl.c,v 1.17 1996/05/20 17:49:05 mrg Exp $ */
/*-
@@ -248,6 +248,7 @@ kern_sysctl(name, namelen, oldp, oldlenp, newp, newlen, p)
extern int stackgap_random;
#ifdef CRYPTO
extern int usercrypto;
+ extern int cryptodevallowsoft;
#endif
/* all sysctl names at this level are terminal */
@@ -429,6 +430,9 @@ kern_sysctl(name, namelen, oldp, oldlenp, newp, newlen, p)
#ifdef CRYPTO
case KERN_USERCRYPTO:
return (sysctl_int(oldp, oldlenp, newp, newlen, &usercrypto));
+ case KERN_CRYPTODEVALLOWSOFT:
+ return (sysctl_int(oldp, oldlenp, newp, newlen,
+ &cryptodevallowsoft));
#endif
default:
return (EOPNOTSUPP);