diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 2002-02-23 08:11:06 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 2002-02-23 08:11:06 +0000 |
commit | 47888b289018502e3151efaa08ba3dceda58c884 (patch) | |
tree | 66299eb9c508116bb442a6a3522c7ff4a94f8e6d /sys | |
parent | b7b4f77bc6172d59099cb9ed961b8e75d4d77578 (diff) |
sysctl kern.usercrypto
Diffstat (limited to 'sys')
-rw-r--r-- | sys/kern/kern_sysctl.c | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/sys/kern/kern_sysctl.c b/sys/kern/kern_sysctl.c index 44eb2f9924c..edf544e207e 100644 --- a/sys/kern/kern_sysctl.c +++ b/sys/kern/kern_sysctl.c @@ -1,4 +1,4 @@ -/* $OpenBSD: kern_sysctl.c,v 1.60 2001/11/28 13:47:39 art Exp $ */ +/* $OpenBSD: kern_sysctl.c,v 1.61 2002/02/23 08:11:05 deraadt Exp $ */ /* $NetBSD: kern_sysctl.c,v 1.17 1996/05/20 17:49:05 mrg Exp $ */ /*- @@ -246,6 +246,9 @@ kern_sysctl(name, namelen, oldp, oldlenp, newp, newlen, p) extern int usermount, nosuidcoredump; extern long cp_time[CPUSTATES]; extern int stackgap_random; +#ifdef CRYPTO + extern int usercrypto; +#endif /* all sysctl names at this level are terminal */ if (namelen != 1 && !(name[0] == KERN_PROC || name[0] == KERN_PROF || @@ -423,6 +426,10 @@ kern_sysctl(name, namelen, oldp, oldlenp, newp, newlen, p) case KERN_SYSVIPC_INFO: return (sysctl_sysvipc(name + 1, namelen - 1, oldp, oldlenp)); #endif +#ifdef CRYPTO + case KERN_USERCRYPTO: + return (sysctl_int(oldp, oldlenp, newp, newlen, &usercrypto)); +#endif default: return (EOPNOTSUPP); } |