summaryrefslogtreecommitdiffstats
path: root/sbin/ifconfig/ifieee80211.c
diff options
context:
space:
mode:
authorrwatson <rwatson@FreeBSD.org>2005-07-14 18:33:21 +0000
committerrwatson <rwatson@FreeBSD.org>2005-07-14 18:33:21 +0000
commit2df666ab6946c86d6f646d4417a3bbd60f66cafc (patch)
tree7b237a9a815ebecee5a81581d64c132cdb4d7b2e /sbin/ifconfig/ifieee80211.c
parent7d7962bcb4d05f4d0a962e25d0b68318c03f4ecd (diff)
downloadFreeBSD-src-2df666ab6946c86d6f646d4417a3bbd60f66cafc.zip
FreeBSD-src-2df666ab6946c86d6f646d4417a3bbd60f66cafc.tar.gz
Add a new flag '-k' to ifconfig(8), indicating that it is alright to
print potentially sensitive keying material to stdout. With the new 802.11 support, ifconfig(8) is now capable of printing 802.11 keys, and did by default for the root user, which is undesirable in some environments. Now it will not print keying material unless requested (and available to the user). MFC after: 1 week
Diffstat (limited to 'sbin/ifconfig/ifieee80211.c')
-rw-r--r--sbin/ifconfig/ifieee80211.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sbin/ifconfig/ifieee80211.c b/sbin/ifconfig/ifieee80211.c
index d8c4db4..7e51bf4 100644
--- a/sbin/ifconfig/ifieee80211.c
+++ b/sbin/ifconfig/ifieee80211.c
@@ -1224,7 +1224,7 @@ printkey(const struct ieee80211req_key *ik)
int keylen = ik->ik_keylen;
int printcontents;
- printcontents =
+ printcontents = printkeys &&
(memcmp(ik->ik_keydata, zerodata, keylen) != 0 || verbose);
if (printcontents)
LINE_BREAK();
OpenPOWER on IntegriCloud