aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib/entropy
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/entropy')
-rw-r--r--src/lib/entropy/dev_random/dev_random.cpp1
-rw-r--r--src/lib/entropy/egd/es_egd.cpp4
-rw-r--r--src/lib/entropy/proc_walk/proc_walk.cpp1
3 files changed, 2 insertions, 4 deletions
diff --git a/src/lib/entropy/dev_random/dev_random.cpp b/src/lib/entropy/dev_random/dev_random.cpp
index 06c420a67..7c95fe20d 100644
--- a/src/lib/entropy/dev_random/dev_random.cpp
+++ b/src/lib/entropy/dev_random/dev_random.cpp
@@ -13,7 +13,6 @@
#include <sys/stat.h>
#include <unistd.h>
#include <fcntl.h>
-#include <string.h>
namespace Botan {
diff --git a/src/lib/entropy/egd/es_egd.cpp b/src/lib/entropy/egd/es_egd.cpp
index 2ddb233bd..36ad70e3a 100644
--- a/src/lib/entropy/egd/es_egd.cpp
+++ b/src/lib/entropy/egd/es_egd.cpp
@@ -8,7 +8,7 @@
#include <botan/internal/es_egd.h>
#include <botan/parsing.h>
#include <botan/exceptn.h>
-#include <cstring>
+#include <botan/mem_ops.h>
#include <stdexcept>
#include <sys/types.h>
@@ -40,7 +40,7 @@ int EGD_EntropySource::EGD_Socket::open_socket(const std::string& path)
if(fd >= 0)
{
sockaddr_un addr;
- std::memset(&addr, 0, sizeof(addr));
+ clear_mem(&addr, 1);
addr.sun_family = PF_LOCAL;
if(path.length() >= sizeof(addr.sun_path))
diff --git a/src/lib/entropy/proc_walk/proc_walk.cpp b/src/lib/entropy/proc_walk/proc_walk.cpp
index 7ea785361..95dc4e8e3 100644
--- a/src/lib/entropy/proc_walk/proc_walk.cpp
+++ b/src/lib/entropy/proc_walk/proc_walk.cpp
@@ -9,7 +9,6 @@
#include <botan/internal/proc_walk.h>
#include <botan/secmem.h>
-#include <cstring>
#include <deque>
#ifndef _POSIX_C_SOURCE