]> Savannah Git Hosting - gnulib.git/commit
crypto/gc-sm3: Fix compilation error with --with-libgcrypt.
authorBruno Haible <bruno@clisp.org>
Sat, 24 Aug 2019 14:16:33 +0000 (16:16 +0200)
committerBruno Haible <bruno@clisp.org>
Sat, 24 Aug 2019 14:16:33 +0000 (16:16 +0200)
commitcac148f96e7c2296a14abff6d7130b53e76bfe63
tree22129619b8da1bfad6a05c411284bd61d42e6653
parent57959b9e826f42c3aa5bad7efff06e9ad3dc63f6
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.
ChangeLog
lib/gc-libgcrypt.c
m4/gc-sm3.m4