#ifndef RND_H #define RND_H #define HIG_ENTROPY_SOURCE "/dev/random" #define LOW_ENTROPY_SOURCE "/dev/urandom" /* secrand is not really secure, but the name only suggests it's better to use * than rand(3) when transferring bytes over the network in non-security * critical structure members. secrand() is only used to fill up salts actually. */ extern int secrand(void); extern void gen_key_bytes(unsigned char *area, size_t len); #endif /* RND_H */ it' title='net-next.git Git repository'/>
summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorJohannes Berg <johannes.berg@intel.com>2017-01-02 16:01:57 +0100
committerJohannes Berg <johannes.berg@intel.com>2017-01-24 11:07:35 +0100
commit1331b62c97217459780e040e8a66bb609f2acd20 (patch)
treef06688ed329f86dcfaa462582681f9156fca16f3 /include
parent57eeb2086d6477968990e1790a9d8d0ec7ee8a4d (diff)
rfkill: remove rfkill-regulator
There are no users of this ("vrfkill") in the tree, so it's just dead code - remove it. This also isn't really how rfkill is supposed to be used - it's intended as a signalling mechanism to/from the device, which the driver (and partially cfg80211) will handle - having a separate rfkill instance for a regulator is confusing, the driver should use the regulator instead to turn off the device when requested. Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Diffstat (limited to 'include')