diff options
author | Martin Willi <martin@revosec.ch> | 2012-02-21 10:22:48 +0100 |
---|---|---|
committer | Martin Willi <martin@revosec.ch> | 2012-03-20 17:31:40 +0100 |
commit | 35852af7b15f31fbb05c00f4cd8b8ee51f8280c4 (patch) | |
tree | ac1f92f2005d9942946f6aea0414dad08c286b3d /src/libstrongswan/plugins/random/random_plugin.h | |
parent | eff331f7995e2a32333738ffcd99d628a3268856 (diff) | |
download | strongswan-35852af7b15f31fbb05c00f4cd8b8ee51f8280c4.tar.bz2 strongswan-35852af7b15f31fbb05c00f4cd8b8ee51f8280c4.tar.xz |
Use a single set of FDs for all random plugin RNG instances
Diffstat (limited to 'src/libstrongswan/plugins/random/random_plugin.h')
-rw-r--r-- | src/libstrongswan/plugins/random/random_plugin.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/libstrongswan/plugins/random/random_plugin.h b/src/libstrongswan/plugins/random/random_plugin.h index 7e22c3e5f..c34fa8196 100644 --- a/src/libstrongswan/plugins/random/random_plugin.h +++ b/src/libstrongswan/plugins/random/random_plugin.h @@ -39,4 +39,14 @@ struct random_plugin_t { plugin_t plugin; }; +/** + * Get the /dev/random file descriptor + */ +int random_plugin_get_dev_random(); + +/** + * Get the /dev/urandom file descriptor + */ +int random_plugin_get_dev_urandom(); + #endif /** RANDOM_PLUGIN_H_ @}*/ |