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

Joe Orton noreply at github.com
Sun Dec 6 05:12:06 EST 2020

  Branch: refs/heads/master
  Home:   https://github.com/notroj/neon
  Commit: d11faf1397cdc1442a46929167594feb725c70a3
  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

* 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

* 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