aboutsummaryrefslogtreecommitdiffstats
path: root/src/entropy/egd/es_egd.h
diff options
context:
space:
mode:
authorlloyd <[email protected]>2014-01-01 21:20:55 +0000
committerlloyd <[email protected]>2014-01-01 21:20:55 +0000
commit197dc467dec28a04c3b2f30da7cef122dfbb13e9 (patch)
treecdbd3ddaec051c72f0a757db461973d90c37b97a /src/entropy/egd/es_egd.h
parent62faac373c07cfe10bc8c309e89ebdd30d8e5eaa (diff)
Shuffle things around. Add NIST X.509 test to build.
Diffstat (limited to 'src/entropy/egd/es_egd.h')
-rw-r--r--src/entropy/egd/es_egd.h49
1 files changed, 0 insertions, 49 deletions
diff --git a/src/entropy/egd/es_egd.h b/src/entropy/egd/es_egd.h
deleted file mode 100644
index 02c52b9a3..000000000
--- a/src/entropy/egd/es_egd.h
+++ /dev/null
@@ -1,49 +0,0 @@
-/*
-* EGD EntropySource
-* (C) 1999-2007 Jack Lloyd
-*
-* Distributed under the terms of the Botan license
-*/
-
-#ifndef BOTAN_ENTROPY_SRC_EGD_H__
-#define BOTAN_ENTROPY_SRC_EGD_H__
-
-#include <botan/entropy_src.h>
-#include <string>
-#include <vector>
-
-namespace Botan {
-
-/**
-* EGD Entropy Source
-*/
-class EGD_EntropySource : public EntropySource
- {
- public:
- std::string name() const { return "EGD/PRNGD"; }
-
- void poll(Entropy_Accumulator& accum);
-
- EGD_EntropySource(const std::vector<std::string>&);
- ~EGD_EntropySource();
- private:
- class EGD_Socket
- {
- public:
- EGD_Socket(const std::string& path);
-
- void close();
- size_t read(byte outbuf[], size_t length);
- private:
- static int open_socket(const std::string& path);
-
- std::string socket_path;
- int m_fd; // cached fd
- };
-
- std::vector<EGD_Socket> sockets;
- };
-
-}
-
-#endif