Commit Graph

96 Commits

Author SHA1 Message Date
Manuel Domke
9af2987760 fix build on MacOS 2018-10-04 10:19:27 +02:00
Manuel Domke
450a84a31e fix buffer size for raw mode & error handling when no device is connected 2018-09-07 10:41:52 +02:00
Manuel Domke
856ae8e44c fix result size for output buffer 2018-09-05 16:55:24 +02:00
Manuel Domke
9b9822bab7 cleanup 2018-09-03 17:57:17 +02:00
Manuel Domke
71df49d7bf next big step completed: fixed keccak multiplicator and --dev-random mode after libinfnoise refactoring (interface changed!) 2018-08-27 17:48:27 +02:00
Manuel Domke
25605e673e fix --dev-random mode (multipliers still buggy) 2018-08-15 17:21:59 +02:00
Manuel Domke
9f241bcd27 remove debug messages 2018-08-11 23:29:34 +02:00
Manuel Domke
8a930f2783 fix buffer size for multiplier mode 2018-08-11 23:16:50 +02:00
Manuel Domke
15abb6571f reformat code, many fixes, still some bugs (--dev-random with multiplier behaves very strange) 2018-07-26 18:21:04 +02:00
Manuel Domke
6d832f1b12 fix --list-devices (still buggy, but works!) 2018-07-26 13:15:30 +02:00
Manuel Domke
e380194881 untested fix for --list-devices (no device at hand to test right now..) 2018-07-26 09:20:35 +02:00
Manuel Domke
773cf01575 finish infnoise_context & start work on listUSBDevices (to return a device list struct) 2018-07-24 18:51:21 +02:00
Manuel Domke
7b1f6a7965 instroduce infnoise_context struct 2018-07-24 09:50:26 +02:00
Manuel Domke
f0b407b9c5 set entropy to 0 2018-07-17 18:08:25 +02:00
Manuel Domke
4dcf1d81dd refactored outputBytes (/dev/random not working yet) 2018-07-17 17:12:33 +02:00
Manuel Domke
e674b38c76 first step to clean up libinfnoise 2018-07-17 13:34:34 +02:00
Dirk-Willem van Gulik
20fb5173a9 Minor tweaks to make OSX and FreeBSD and other BSD variants work. 2018-07-11 13:04:13 +02:00
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