]> 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 69343e97f204cdbf28c7613a0916fa3f3c2fbd68..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 */
@@ -48,6 +49,7 @@ struct arguments {
        bool quiet;
        bool verbose;
        bool daemon;
+       bool enable_drng;
        bool enable_tpm;
 };
 extern struct arguments *arguments;
@@ -58,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;