diff options
Diffstat (limited to 'libhashsum_init_sha1_hasher.c')
-rw-r--r-- | libhashsum_init_sha1_hasher.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/libhashsum_init_sha1_hasher.c b/libhashsum_init_sha1_hasher.c index 8287429..a3aef8e 100644 --- a/libhashsum_init_sha1_hasher.c +++ b/libhashsum_init_sha1_hasher.c @@ -1,5 +1,6 @@ /* See LICENSE file for copyright and license details. */ #include "common.h" +#ifdef SUPPORT_SHA1 LIBHASHSUM_1_NONNULL_ @@ -67,3 +68,14 @@ libhashsum_init_sha1_hasher(struct libhashsum_hasher *this) libsha1_init(&this->state.sha1.s, LIBSHA1_1); return 0; } + + +#else +int +libhashsum_init_sha1_hasher(struct libhashsum_hasher *this) +{ + (void) this; + errno = ENOSYS; + return -1; +} +#endif |