Commit Graph

538 Commits

Author SHA1 Message Date
Patrick Siegl
ba0f6de777 Reworked the readData() to get closer to processBytes() 2020-04-15 20:23:03 +02:00
Patrick Siegl
0561fba738 Remove unrequired bytesWritten 2020-04-15 19:39:28 +02:00
Patrick Siegl
11ebee47f1 Fix: in case all if-statements in processBytes were not taken, the routine needs to return 0, *bytesWritten has an old value, that is no more true 2020-04-15 19:31:23 +02:00
Patrick Siegl
1b48e0c5b9 BytesGiven is part of keccak only 2020-04-15 19:29:31 +02:00
Patrick Siegl
4a09610d50 Moved processBytes() closer to readData(), as only readData() is using this function 2020-04-15 18:23:02 +02:00
Patrick Siegl
e77e1b7810 Removed unrequired header definitions 2020-04-15 18:21:53 +02:00
Manuel Domke
9307c4465f Merge pull request #86 from MartyMacGyver/mff-update-windows-build-and-functionality
Updated to build in Windows properly, with binary pipe capability
2019-07-07 09:36:57 +02:00
Martin Falatic
8db6b9b2d8 Updated to build in Windows properly, with binary pipe capability
These changes should NOT affect other (non-Windows) targets

I used https://github.com/jj1bdx/infnoise-windows as a reference point
for getting this working (and for the idea to not directly include
FTDI source files here but instead direct the user to install them).
2019-07-07 00:16:23 -07:00
Manuel Domke
b5c1b44585 Merge pull request #17 from skitt/gitignore
Ignore all build artifacts
2019-06-22 16:53:50 +02:00
Manuel Domke
ad73e67a94 Merge pull request #18 from skitt/cross-ftdi
Fix cross-building FTDI issues
2019-06-22 16:53:19 +02:00
Stephen Kitt
a85a38488b Ignore all build artifacts
Instead of listing .o etc. files by name, match them using wildcards.

Signed-off-by: Stephen Kitt <steve@sk2.org>
2019-06-22 14:20:06 +02:00
Stephen Kitt
132683d4b5 Merge the FTDI construction
Since there's already a conditional in the shell invocation, it might
as well be used to determine the value of FTDI directly.

Signed-off-by: Stephen Kitt <steve@sk2.org>
2019-06-22 14:17:44 +02:00
Helmut Grohne
4a9cc66d1e Use the compiler to find libftdi
The libfdti detection, using ldconfig, only searches for the build
architecture libftdi, which means infnoise can't be cross-compiled.
By checking whether the compiler knows about the library we can
check for the host architecture's library and support build scenarios
which ldconfig doesn't know about, in particular cross-building.
2019-06-22 14:13:03 +02:00
Manuel Domke
91758038cb inmWriteEntropyEnd only works on Linux 2019-04-16 16:32:08 +02:00
Manuel Domke
40b57b27fa Merge pull request #85 from psiegl/master
Work on bytes instead of bits
2019-04-01 23:23:40 +02:00
Patrick Siegl
2336eeab1e Fix the parametername 2019-04-01 23:22:40 +02:00
Patrick Siegl
9483bbd463 Work on bytes instead of bits 2019-04-01 23:19:22 +02:00
Manuel Domke
1ee29a0de3 Merge pull request #84 from psiegl/master
Recursive listUSBdev.()
2019-04-01 16:58:15 +02:00
Patrick Siegl
3f12964521 Added missing ftdi_usb_close() 2019-04-01 00:08:24 +02:00
Patrick Siegl
b900469e47 Remote unrequired struct 2019-03-31 23:56:53 +02:00
Patrick Siegl
de7b6be8fd sprintf() in not a buffer, could create any issue 2019-03-31 23:49:26 +02:00
Patrick Siegl
40fa7d4c2e Check for superuser not required 2019-03-31 23:34:28 +02:00
Patrick Siegl
2cae70f63e Fix when no device available 2019-03-31 23:25:15 +02:00
Patrick Siegl
1ca054ed7e Recursive listUSBdev.() 2019-03-31 22:58:26 +02:00
Manuel Domke
561b6b0374 Merge pull request #83 from psiegl/writeent
Writeentropy reduced in amount of global vars. To this, waits until /dev/random in usage
2019-03-29 19:03:53 +01:00
Patrick Siegl
1dee982ba0 ftdi_usb_find_all() requires a free() 2019-03-28 22:19:02 +01:00
Patrick Siegl
64fe6d84a6 errorflag already set in init 2019-03-28 22:03:48 +01:00
Patrick Siegl
81973dff4f Merge branch 'master' of https://github.com/waywardgeek/infnoise into writeent 2019-03-28 00:15:52 +01:00
Patrick Siegl
fdfe30136d Wait until /dev/random is truly required 2019-03-28 00:13:14 +01:00
Patrick Siegl
84e2014fa5 Use the struct instead of multipe global vars. 2019-03-28 00:12:13 +01:00
Manuel Domke
095f2d1e6e Merge pull request #82 from psiegl/writeentropycleanup
Support any value from /proc instead of relying on buf.-size
2019-03-27 23:07:51 +01:00
Manuel Domke
e0f7e68010 Merge pull request #81 from psiegl/cleanup
Feature: graceful shutdown
2019-03-27 22:18:00 +01:00
Manuel Domke
0cd6018709 Merge branch 'master' into cleanup 2019-03-27 22:16:01 +01:00
Manuel Domke
4050495b6e Merge pull request #80 from psiegl/master
Merely simplified and cleaned up the code
2019-03-27 22:13:28 +01:00
Patrick Siegl
3cfcbd94d7 Feature: clean shutdown 2019-03-27 21:41:17 +01:00
Patrick Siegl
eb777add58 Support any value from /proc instead of relying on buf.-size 2019-03-27 21:35:29 +01:00
Patrick Siegl
0a861f8b8b Cleanup list of USB devices & assign debug directly 2019-03-24 23:59:27 +01:00
Patrick Siegl
5d09246d06 Unrequired i counting 2019-03-24 23:43:14 +01:00
Patrick Siegl
907183f498 Fix TEST_HEALTHCHECK as of typo 2019-03-24 23:25:02 +01:00
Patrick Siegl
3efca9462f Fix indent 2019-03-24 22:41:11 +01:00
Patrick Siegl
aca57dcf65 Specify lenght of output array explicitly 2019-03-24 22:06:11 +01:00
Patrick Siegl
03e4f0848c use sizeof() in libinfnoise 2019-03-24 22:00:53 +01:00
Patrick Siegl
6cd415cb02 reduce amount of if-checks in healthcheck 2019-03-24 22:00:38 +01:00
Patrick Siegl
314fa9e376 No need for an if in the for-loop 2019-03-21 23:33:06 +01:00
Patrick Siegl
34598a1674 Fix indent 2019-03-21 23:11:11 +01:00
Patrick Siegl
f13ed314c9 Total can be computed by just adding zeroes and ones at the end 2019-03-21 23:09:55 +01:00
Patrick Siegl
227a6a7db6 Reference variable instead of writing type again 2019-03-21 23:05:20 +01:00
Patrick Siegl
a457b72372 minor adjustments to tmp. variables 2019-03-21 22:54:54 +01:00
Patrick Siegl
20b1731d61 Since rc < 0 break already away, no further >= 0 check required 2019-03-21 22:45:48 +01:00
Patrick Siegl
d6bdd34b85 version should be printed, before any env is read 2019-03-21 22:37:04 +01:00