diff options
author | Jirka Hladky <jhladky@redhat.com> | 2024-10-01 04:18:11 +0200 |
---|---|---|
committer | Jirka Hladky <jhladky@redhat.com> | 2024-10-01 04:18:11 +0200 |
commit | deff543423c05c7f7e06b119f04b0c64c0238782 (patch) | |
tree | deb40f9a2b8799af412078451b0558eeeeb4be96 /src/haveged.h | |
parent | Merge branch 'master' of github.com:jirka-h/haveged (diff) | |
download | haveged-deff543423c05c7f7e06b119f04b0c64c0238782.tar.xz haveged-deff543423c05c7f7e06b119f04b0c64c0238782.zip |
Added --time_interval N to add entropy unconditionally every N seconds
Diffstat (limited to 'src/haveged.h')
-rw-r--r-- | src/haveged.h | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/haveged.h b/src/haveged.h index d37688b..397ca43 100644 --- a/src/haveged.h +++ b/src/haveged.h @@ -1,7 +1,7 @@ /** ** Simple entropy harvester based upon the havege RNG ** - ** Copyright 2018-2022 Jirka Hladky hladky DOT jiri AT gmail DOT com + ** Copyright 2018-2024 Jirka Hladky hladky DOT jiri AT gmail DOT com ** Copyright 2009-2014 Gary Wuertz gary@issiweb.com ** ** This program is free software: you can redistribute it and/or modify @@ -48,14 +48,20 @@ struct pparams { char *version; /* Our version */ char *watermark; /* path to write_wakeup_threshold */ char *command; /* command which will be send/received */ + H_UINT time_interval; /* Time interval in seconds to add entropy unconditionally */ }; /** * Buffer size used when not running as daemon */ +#define STRINGIFY(x) #x +#define TOSTRING(x) STRINGIFY(x) + #define APP_BUFF_SIZE 1024 #define INPUT_DEFAULT "data" #define OUTPUT_DEFAULT "sample" #define PID_DEFAULT "/var/run/haveged.pid" +#define TIME_INTERVAL 60 +#define PSELECT_TIMEOUT 2 /** * Setup options (for app) */ |