1. 21 Sep, 2016 2 commits
    • Jon Griffiths's avatar
      Makefile: First try at rewriting the ccan Makefile. · 2ee3b7c5
      Jon Griffiths authored
      This change contains a simpler Makefile replacement with only 62 lines
      of directives, 10 rules, and a 13 line support script for dependencies. The
      build dependencies have been minimised and in some cases, corrected.
      
      FEATURES:
      * All targets can be built from a clean tree in one invocation.
      * Parallel builds (tested with -j32 on 8 cores).
      * Auto discovery of modules via _info files.
      * Hopefully complete dependencies via a simplified generator.
      * CFLAGS are respected and appended to compile flags.
      * LINTFLAGS can be set to add check options (e.g. LINTFLAGS=-v).
      * 'make clean' doesn't build anything before cleaning now.
      * 'make quiet=1' builds quietly. 'make check quiet=1 -j N' produces
        summary output like the former summary target.
      * Non-phony test targets; tests are rebuilt only when dirty. Targets are:
        check, fastcheck and fullcheck, the latter runs in non-summary mode.
      * 'make <module>.[check|fastcheck|fullcheck]' runs tests for single modules.
      
      TODO:
      * Support Makefile-web and any other scattered targets
      
      NOTES:
      * The changes to dependency generation expose a circular
        dependency between asort and order which is not fixed here.
      * Tests always run their dependent tests. With -j support and
        minimised rebuilds via tighter dependencies, its not worth avoiding.
      * Some targets have been dropped as uneeded (e.g. distclean, tools).
      Signed-off-by: default avatarJon Griffiths <jon_p_griffiths@yahoo.com>
      2ee3b7c5
    • Jon Griffiths's avatar
      Remove duplicate const qualifier · f9426172
      Jon Griffiths authored
      This causes ccanlint to fail the 'no warnings' check under clang.
      Signed-off-by: default avatarJon Griffiths <jon_p_griffiths@yahoo.com>
      f9426172
  2. 08 Sep, 2016 4 commits
  3. 07 Sep, 2016 1 commit
  4. 31 Aug, 2016 1 commit
    • Jon Griffiths's avatar
      Add a SHA512 implementation · 5e37a0fe
      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: default avatarJon Griffiths <jon_p_griffiths@yahoo.com>
      5e37a0fe
  5. 30 Aug, 2016 5 commits
  6. 29 Aug, 2016 9 commits
  7. 24 Aug, 2016 4 commits
  8. 23 Aug, 2016 3 commits
  9. 22 Aug, 2016 11 commits