[notroj/neon] 40981e: Support colon- and space-separated output for ne_s...

Joe Orton noreply at github.com
Sun Dec 6 04:53:55 EST 2020


  Branch: refs/heads/hash-formatting
  Home:   https://github.com/notroj/neon
  Commit: 40981e00d8770dd5285d7dd6c01c7e4f07d6d6de
      https://github.com/notroj/neon/commit/40981e00d8770dd5285d7dd6c01c7e4f07d6d6de
  Author: Joe Orton <jorton at redhat.com>
  Date:   2020-12-06 (Sun, 06 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:
  -----------
  Support colon- and space-separated output for ne_strhash/ne_vstrhash.

* src/ne_internal.h: Add flags argument to ne__strhash2hex, define
  NE_HASH_ALGMASK.

* src/ne_string.h: Define NE_HASH_COLON, NE_HASH_SPACE, update flags
  description for ne_strhash.

* src/ne_string.c (ne__strhash2hex): Take flags argument, use colon
  and space separated output as required.
  (ne_vstrhash): Use ne__strhash2hex, NE_HASH_ALGMASK.

* test/string-tests.c (strhash, strhash_sha_512_256): Tests for
  NE_HASH_COLON and NE_HASH_SPACE.

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





More information about the neon-commits mailing list