- 29 Sep, 2016 1 commit
-
-
Emilio G. Cota authored
Signed-off-by: Emilio G. Cota <cota@braap.org> Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
-
- 28 Sep, 2016 1 commit
-
-
Emilio G. Cota authored
time_mono()'s documentation references time_since(), which is nowhere to be found. A possible fix would be to just remove that stale reference. Instead, this patch adds timemono_since(), which hopefully captures the meaning of the original time_since(). Signed-off-by: Emilio G. Cota <cota@braap.org> Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
-
- 27 Sep, 2016 8 commits
-
-
Kevin Locke authored
On LLP64 systems (like 64-bit Windows) long is 32 bits while pointers are 64 bits, which results in a warning similar to the following: warning C4244: 'return': conversion from '__int64' to 'long', possible loss of data for HAVE_STACK_GROWS_UPWARDS. Fix this by using the ptrdiff_t type introduced by C99 for this purpose. Signed-off-by: Kevin Locke <kevin@kevinlocke.name> Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
-
Kevin Locke authored
Visual C++ prints "warning C4702: unreachable code" due to the return statement after the for loop which is never reached. Fix this by setting a variable returned by a single return statement at the end. Signed-off-by: Kevin Locke <kevin@kevinlocke.name> Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
-
Kevin Locke authored
Visual Studio prints warning C4706 "assignment within conditional expression" when there is an assignment without a comparison in a conditional expression. Therefore, to silence the warning, add an explicit comparison. Signed-off-by: Kevin Locke <kevin@kevinlocke.name> Reviewed-by: David Gibson <david@gibson.dropbear.id.au> Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
-
Kevin Locke authored
Several of the EXECUTABLE tests depend on headers not available on Windows. Mark these tests MAY_NOT_COMPILE to handle this. Signed-off-by: Kevin Locke <kevin@kevinlocke.name> Reviewed-by: David Gibson <david@gibson.dropbear.id.au> Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
-
Kevin Locke authored
Although Windows APIs generally permit "/" or "\\" for directory separators in paths, cmd.exe does not recognize "./" when invoking executables using a relative path and prints the following error: '.' is not recognized as an internal or external command, operable program or batch file. Therefore, use "\\" when invoking tests on Windows. Signed-off-by: Kevin Locke <kevin@kevinlocke.name> Reviewed-by: David Gibson <david@gibson.dropbear.id.au> Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
-
Kevin Locke authored
Although Windows provides unlink, using it adds complication due to the lack of unistd.h which must be included to define the function on POSIX systems. Instead, use remove, which C89 requires to be in stdio.h. Signed-off-by: Kevin Locke <kevin@kevinlocke.name> Reviewed-by: David Gibson <david@gibson.dropbear.id.au> Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
-
Benjamin Herrenschmidt authored
This is the same as list_empty but without the debug checks. This is useful when wanting to check for an empty list without locks held, potentially racing with addition/removal, which can be a valid thing to do under some circumstances. Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org> Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
-
Emilio G. Cota authored
Signed-off-by: Emilio G. Cota <cota@braap.org> Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
-
- 21 Sep, 2016 1 commit
-
-
Jon Griffiths authored
This causes ccanlint to fail the 'no warnings' check under clang. Signed-off-by: Jon Griffiths <jon_p_griffiths@yahoo.com>
-
- 08 Sep, 2016 4 commits
-
-
Rusty Russell authored
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
-
Rusty Russell authored
Useful for scanning all the memory, or tallying it. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
-
Rusty Russell authored
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
-
Rusty Russell authored
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
-
- 07 Sep, 2016 1 commit
-
-
Rusty Russell authored
I tried to use it and got this wrong: moreover, I wanted to control topology, which requires nested iteration, and skip children of a node which I knew was changing. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
-
- 31 Aug, 2016 1 commit
-
-
Jon Griffiths authored
This largely follows the SHA256 style. I've named Rusty as the maintainer. Currently the functions to add data of various sizes/endianness have not been implemented: There are no public test vectors for these cases and I believe most use cases are working on byte buffers. They can be added later if desired. The openssl implementation has been tested on x86-64, while the inbuilt version has been tested on 32/64 bit, little/big endian boxes. Signed-off-by: Jon Griffiths <jon_p_griffiths@yahoo.com>
-
- 30 Aug, 2016 5 commits
-
-
Rusty Russell authored
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
-
Rusty Russell authored
Jon sent a test patch for sha256 which "#include <ccan/str/hex/hex.c>" without adding str/hex to testdepends. It "worked" (it wouldn't have linked with "hex.h"), but ccanlint didn't spot the dependency. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
-
Rusty Russell authored
-
Rusty Russell authored
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
-
Jon Griffiths authored
Users should be able to verify our crypto tests by searching for the vectors we use. Make that easier by using hex for the expected results. A nice side effect is that the code is simpler and endian agnostic too.
-
- 29 Aug, 2016 9 commits
-
-
Jon Griffiths authored
Signed-off-by: Jon Griffiths <jon_p_griffiths@yahoo.com>
-
Jon Griffiths authored
Signed-off-by: Jon Griffiths <jon_p_griffiths@yahoo.com>
-
Jon Griffiths authored
Signed-off-by: Jon Griffiths <jon_p_griffiths@yahoo.com>
-
Jon Griffiths authored
Keys are never modified and are likely to be literals in the real world (as they are in the test cases). Signed-off-by: Jon Griffiths <jon_p_griffiths@yahoo.com>
-
Jon Griffiths authored
Unsigned types cannot be negative. Signed-off-by: Jon Griffiths <jon_p_griffiths@yahoo.com>
-
Jon Griffiths authored
This matches the license in _info and the source. It also means every module now has a LICENSE file and so anyone happening to rewrite the ccan makefiles can use wildcard to locate modules rather than listing them by hand. Signed-off-by: Jon Griffiths <jon_p_griffiths@yahoo.com>
-
Jon Griffiths authored
clang warns that the generator assignment is conditional which could lead to passing an undefined variable to printf. Signed-off-by: Jon Griffiths <jon_p_griffiths@yahoo.com>
-
Jon Griffiths authored
The current makefiles are not parallel safe and reliably fail on the clang build. The real fix is to rewrite the makefiles, but in the meantime, allow the clang tests to pass.
-
Jon Griffiths authored
We can use the iteration count in the test case to determine whether a single call is required. This simplifies the code and also means that we don't overstate the actual number of tests performed by a factor of 2. Simplify a couple of expressions while we are changing this.
-
- 24 Aug, 2016 4 commits
-
-
Jon Griffiths authored
TCON suggests placing _tcon members last in structs. Placing variable sized structs anywhere but last is apparently a gcc extension that gives warnings under clang. This applies to tlists because they use TCON internally. Update the docs and examples to place tlists last and so compile without clang warnings. There are other places where this occurs; they will be dealt with separately. Signed-off-by: Jon Griffiths <jon_p_griffiths@yahoo.com>
-
Jon Griffiths authored
Signed-off-by: Jon Griffiths <jon_p_griffiths@yahoo.com>
-
Jon Griffiths authored
Running 'tools/ccan_depends --compile ccan/crypto' without this patch will demonstrate the crash. Signed-off-by: Jon Griffiths <jon_p_griffiths@yahoo.com>
-
Jon Griffiths authored
Signed-off-by: Jon Griffiths <jon_p_griffiths@yahoo.com>
-
- 23 Aug, 2016 3 commits
-
-
Rusty Russell authored
Closes: 47
-
Rusty Russell authored
Closes: 46
-
Rusty Russell authored
Closes: 45
-
- 22 Aug, 2016 2 commits
-
-
Jon Griffiths authored
The header macro RIPEMD160_INIT is intended to be used instead I believe. Signed-off-by: Jon Griffiths <jon_p_griffiths@yahoo.com>
-
Jon Griffiths authored
The resulting code is just as clear to read, so lets not require a C99 compiler to compile this. Signed-off-by: Jon Griffiths <jon_p_griffiths@yahoo.com>
-