Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/opencrypto Wrap noisy pointless message about denied use...



details:   https://anonhg.NetBSD.org/src/rev/58ba23e429d0
branches:  trunk
changeset: 555498:58ba23e429d0
user:      jonathan <jonathan%NetBSD.org@localhost>
date:      Wed Nov 19 04:14:07 2003 +0000

description:
Wrap noisy pointless message about denied userspace requests with
`#ifdef CRYPTO_DEBUG', per Jason Thorpe's  suggestion.

diffstat:

 sys/opencrypto/cryptodev.c |  7 ++++---
 1 files changed, 4 insertions(+), 3 deletions(-)

diffs (29 lines):

diff -r 129ec7637ba9 -r 58ba23e429d0 sys/opencrypto/cryptodev.c
--- a/sys/opencrypto/cryptodev.c        Wed Nov 19 03:24:20 2003 +0000
+++ b/sys/opencrypto/cryptodev.c        Wed Nov 19 04:14:07 2003 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: cryptodev.c,v 1.9 2003/11/19 03:18:33 jonathan Exp $ */
+/*     $NetBSD: cryptodev.c,v 1.10 2003/11/19 04:14:07 jonathan Exp $ */
 /*     $FreeBSD: src/sys/opencrypto/cryptodev.c,v 1.4.2.4 2003/06/03 00:09:02 sam Exp $        */
 /*     $OpenBSD: cryptodev.c,v 1.53 2002/07/10 22:21:30 mickey Exp $   */
 
@@ -35,7 +35,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: cryptodev.c,v 1.9 2003/11/19 03:18:33 jonathan Exp $");
+__KERNEL_RCSID(0, "$NetBSD: cryptodev.c,v 1.10 2003/11/19 04:14:07 jonathan Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -275,8 +275,9 @@
                error = crypto_newsession(&sid, (txform ? &crie : &cria),
                            crypto_devallowsoft);
                if (error) {
-                       /* this is an auditable security event? */
+#ifdef CRYPTO_DEBUG
                        printf("SIOCSESSION violates kernel parameters\n");
+#endif
                        goto bail;
                }
 



Home | Main Index | Thread Index | Old Index