[notroj/neon] c836e7: * src/ne_string.h: Add NE_HASH_COLON, NE_HASH_SPAC...

Joe Orton noreply at github.com
Thu Dec 3 08:32:28 EST 2020


  Branch: refs/heads/hash-formatting
  Home:   https://github.com/notroj/neon
  Commit: c836e711e2fcbcf948ed81345b787ba9e73efd83
      https://github.com/notroj/neon/commit/c836e711e2fcbcf948ed81345b787ba9e73efd83
  Author: Joe Orton <jorton at redhat.com>
  Date:   2020-12-03 (Thu, 03 Dec 2020)

  Changed paths:
    M src/ne_string.h

  Log Message:
  -----------
  * src/ne_string.h: Add NE_HASH_COLON, NE_HASH_SPACE optionally hash
  output formatting options for ne_strhash, ne_vstrhash.

* src/ne_string.c (ne_vstrhash): Use ne__strhash2hex.
  (ne__strhash2hex): Support colon- and space-separated output.

* src/ne_internal.h: Define NE_HASH_ALGMASK, add flags argument to
  ne__strhash2hex.

* src/ne_gnutls.c, src/ne_openssl.c (ne_vstrhash): Use
  NE_HASH_ALGMASK.  Pass flags to ne__strhash2hex.

* test/string-tests.c (strhash, strhash_sha_512_256): Add tests.


  Commit: d151bd1ff4684a00ecafb4404276086fef0a7e95
      https://github.com/notroj/neon/commit/d151bd1ff4684a00ecafb4404276086fef0a7e95
  Author: Joe Orton <jorton at redhat.com>
  Date:   2020-12-03 (Thu, 03 Dec 2020)

  Changed paths:
    M src/ne_gnutls.c
    M src/ne_internal.h
    M src/ne_openssl.c
    M src/ne_string.c
    M src/ne_string.h
    M test/string-tests.c

  Log Message:
  -----------
  WIP: Add string hash formatting options to ne_strhash/ne_vstrhash.


Compare: https://github.com/notroj/neon/compare/f2464a7b08d6...d151bd1ff468



More information about the neon-commits mailing list