]> git.ipfire.org Git - thirdparty/rng-tools.git/blobdiff - rngd.h
Release version 5.
[thirdparty/rng-tools.git] / rngd.h
diff --git a/rngd.h b/rngd.h
index 074bcd65a0400f5f2c5d4a73d54fca5d04d1a617..528eec08dc5d167f89671d62ed0ac59e208fb8c6 100644 (file)
--- a/rngd.h
+++ b/rngd.h
@@ -15,7 +15,7 @@
  *
  * You should have received a copy of the GNU General Public License
  * along with this program; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
+ * Foundation, Inc., 51 Franklin Street, Suite 500, Boston, MA  02110-1335  USA
  */
 
 #ifndef RNGD__H
@@ -35,6 +35,7 @@
 
 enum {
        MAX_RNG_FAILURES                = 25,
+       RNG_OK_CREDIT                   = 1000, /* ~1:1250 false positives */
 };
 
 /* Command line arguments and processing */
@@ -44,12 +45,12 @@ struct arguments {
 
        int random_step;
        int fill_watermark;
-       double poll_timeout;
 
-       int quiet;
-       int verbose;
-       int daemon;
-       int enable_tpm;
+       bool quiet;
+       bool verbose;
+       bool daemon;
+       bool enable_drng;
+       bool enable_tpm;
 };
 extern struct arguments *arguments;
 
@@ -59,6 +60,7 @@ struct rng {
        int rng_fd;
        bool disabled;
        int failures;
+       int success;
 
        int (*xread) (void *buf, size_t size, struct rng *ent_src);
        fips_ctx_t *fipsctx;
@@ -67,7 +69,7 @@ struct rng {
 };
 
 /* Background/daemon mode */
-extern int am_daemon;                  /* Nonzero if we went daemon */
+extern bool am_daemon;                 /* True if we went daemon */
 
 
 /*