aboutsummaryrefslogtreecommitdiffstats
path: root/libhashsum_init_md2_hasher.c
diff options
context:
space:
mode:
Diffstat (limited to 'libhashsum_init_md2_hasher.c')
-rw-r--r--libhashsum_init_md2_hasher.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/libhashsum_init_md2_hasher.c b/libhashsum_init_md2_hasher.c
index e3e929e..dd20429 100644
--- a/libhashsum_init_md2_hasher.c
+++ b/libhashsum_init_md2_hasher.c
@@ -1,5 +1,6 @@
/* See LICENSE file for copyright and license details. */
#include "common.h"
+#ifdef SUPPORT_MD2
static const unsigned char S[] = {
@@ -143,3 +144,14 @@ libhashsum_init_md2_hasher(struct libhashsum_hasher *this)
memset(&this->state.md2, 0, sizeof(this->state.md2));
return 0;
}
+
+
+#else
+int
+libhashsum_init_md2_hasher(struct libhashsum_hasher *this)
+{
+ (void) this;
+ errno = ENOSYS;
+ return -1;
+}
+#endif