diff options
author | Bruno Haible <bruno@clisp.org> | 2019-08-24 16:16:33 +0200 |
---|---|---|
committer | Bruno Haible <bruno@clisp.org> | 2019-08-24 16:16:33 +0200 |
commit | cac148f96e7c2296a14abff6d7130b53e76bfe63 (patch) | |
tree | 22129619b8da1bfad6a05c411284bd61d42e6653 /tests/test-gc-sha1.c | |
parent | 57959b9e826f42c3aa5bad7efff06e9ad3dc63f6 (diff) | |
download | gnulib-cac148f96e7c2296a14abff6d7130b53e76bfe63.tar.gz |
crypto/gc-sm3: Fix compilation error with --with-libgcrypt.
* m4/gc-sm3.m4 (gl_GC_SM3): Test whether libgcrypt supports SM3. Define
LIBGCRYPT_HAS_MD_SM3.
* lib/gc-libgcrypt.c: Include sm3.h.
(_gc_hash_ctx, gc_hash_open, gc_hash_hmac_setkey, gc_hash_write,
gc_hash_read, gc_hash_close, gc_hash_buffer, gc_sm3): Use the gnulib
implementation if libgcrypt does not support SM3.
Diffstat (limited to 'tests/test-gc-sha1.c')
0 files changed, 0 insertions, 0 deletions