Commit Graph

79 Commits

Author SHA1 Message Date
Manuel Domke
fcb1fe0a1f Merge remote-tracking branch 'upstream/master' 2018-07-08 01:27:13 +02:00
Manuel Domke
379c40f367 Merge pull request #1 from psiegl/master
Update support for ArchLinux
2018-07-08 00:59:25 +02:00
Kenji Rikitake
fe58ee981b Use getopt_long() for parsing command options 2018-07-07 11:38:58 +00:00
Dylan McNamee
b472549e15 Minor changes to get it working on macOS 2018-07-05 18:18:57 -07:00
Patrick Siegl
0d5042549b Fix merge 2018-06-27 21:57:33 -04:00
Patrick Siegl
6f71f97005 Just removed a whitespace 2018-06-27 20:15:25 -04:00
Patrick Siegl
e03b621829 Fix to build infnoise on current ArchLinux 2018-06-27 20:12:36 -04:00
Manuel Domke
08ef215491 add libinfnoise usage examples 2018-04-22 08:27:38 +02:00
Manuel Domke
8a312f5ddf new approach for error handling 2018-04-22 04:41:43 +02:00
Manuel Domke
3e04d09937 bats tests for the driver + libinfnoise cleanup 2018-04-22 00:39:30 +02:00
Manuel Domke
a566f330c4 revert changed to listUSBDevices, for now it just print to stdout 2018-04-21 17:15:28 +02:00
Manuel Domke
4825a7bcab error messages / no (or less?) stderr in lib functions 2018-04-19 01:38:28 +02:00
Manuel Domke
4a14cd7e82 clean up libinfnoise.h 2018-04-18 23:57:04 +02:00
Manuel Domke
61d534ef1d remove BUILD_DATE from --version 2018-04-16 18:39:15 +02:00
Manuel Domke
608461cd57 first shot for a libinfnoise approach 2018-04-15 23:50:03 +02:00
Manuel Domke
ba741b5483 remove device description 2018-04-03 01:00:02 +02:00
Manuel Domke
c1560e521f initialize opts.version to false 2018-03-02 21:59:05 +01:00
Manuel Domke
c64acb0ccc also -v 2018-03-01 22:01:04 +01:00
Manuel Domke
7cd47ee970 added --version for git releases 2018-03-01 21:57:21 +01:00
Manuel Domke
a29e3c481f --help returns with exit-code 0 now. rc=1 when errors in option parsing. 2018-02-26 14:09:50 +01:00
Bill
01face5725 Merge pull request #39 from manuel-domke/config
make systemd service configurable via /etc/infnoise.conf
2018-01-12 16:29:16 -08:00
Rune Magnussen
a98408c95e Always se long poll() timeout
Many init systems do their own backgrounding so use long timeout
unconditionally. Change suggested by Manuel Domke.
2018-01-04 16:51:48 +01:00
Manuel Domke
a0345cdf18 cleanup 2017-12-31 19:17:58 +01:00
Manuel Domke
e523de9aee added environment variable INFNOISE_DEBUG 2017-12-31 19:13:00 +01:00
Manuel Domke
9a5d776c5c code cleanup 2017-12-31 18:58:31 +01:00
Manuel Domke
8224bdb69a introduced environment variables INFOISE_SERIAL and INFNOISE_MULTIPLIER to inject settings via config file 2017-12-31 18:55:46 +01:00
Manuel Domke
81f1c15995 make systemd service configurable via /etc/infnoise.conf 2017-12-31 18:11:27 +01:00
Bill
3268edbf6c Merge pull request #37 from manuel-domke/refactoring
improved error handling for listing devices and nicer output
2017-12-23 11:27:15 -08:00
Manuel Domke
7fae449d27 formatting 2017-12-23 15:41:56 +01:00
Manuel Domke
d8a5473dab removed redundant VEND_ID and PROD_ID 2017-12-23 15:38:32 +01:00
Manuel Domke
6cd6b88b43 improved error handling for listing devices and nicer output 2017-12-23 15:37:35 +01:00
Rune Magnussen
2eebda163d Only force new entropy once a minute when backgrounded
Make the poll-timeout one minute if the option --daemon is used.
This saves a lot og CPU-time.
2017-12-01 16:18:29 +01:00
Rune Magnussen
54101c0de4 Introduce struct opt_struct for parsed options.
Parsed options are now placed in a structure which is passed as
argument to functions reduce the number of parameters. This makes
the call sites simpler. It also makes more informations available
to the functions.
2017-11-30 23:04:22 +01:00
Manuel Domke
15f27862e9 Merge branch 'master' into master 2017-09-20 21:37:56 +02:00
Rune Magnussen
b1c311fe06 Fix compiler-warning from GCC 6.4
Redefining #defines gives a warning. That is trated like an error
with current compiler options.
2017-09-10 09:52:28 +02:00
Manuel Domke
a6bccc6b01 oops, refactored too much 2017-08-29 18:58:16 +02:00
Manuel Domke
fe1d217296 finally renamed constants... 2017-08-29 18:56:09 +02:00
Bill Cox
07efda146a Changed some formatting 2017-08-29 09:20:52 -07:00
Manuel Domke
858139e782 Improved error handling 2017-08-29 17:26:02 +02:00
Manuel Domke
79fd4ae3ae Implemented --serial and --list-devices to specify device to start for 2017-08-29 15:50:58 +02:00
Bill Cox
3e406cfbb2 Initialize Keccak before use 2017-03-26 08:26:15 -07:00
Bill Cox
4f135647f2 Patched Makefile with edits from Rune Magnus 2016-07-01 09:22:50 -07:00
Bill Cox
bfaa38b048 Updates from Rune Magnus 2016-06-29 08:28:37 -07:00
Bill Cox
398fcb013d Changed 64-bit var bytesWritten to totalBytesWritten 2015-12-23 11:57:59 -08:00
Bill Cox
bb14828ea1 Cleanup patches from Rune Magnussen 2015-09-15 03:53:44 -07:00
Bill Cox
d71b1c286b Chaned pid_t to int32 for portability 2015-08-24 04:26:45 -07:00
Bill Cox
d785240e80 Applied daemon patch, thanks to Rune Magnussen 2015-08-18 09:44:00 -07:00
Bill Cox
dbc4dd0db9 Fixed compiler warnings - patch from Rune Magnussen 2015-08-10 07:54:54 -07:00
Bill Cox
d87a49c282 Modified behaviour of output multiplier so that 0 means ouitput all the entropy we generate 2015-07-08 09:51:01 -07:00
Bill Cox
1196eb51cc Updated Makefiles based on feedback from Rune Magnussen <rum@bankdata.dk> 2015-06-29 11:54:02 -07:00