aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
-rw-r--r--include/otputil.h1
-rw-r--r--lib/libotputil/lmisc.c1
2 files changed, 2 insertions, 0 deletions
diff --git a/include/otputil.h b/include/otputil.h
index b2ad625..57af6e5 100644
--- a/include/otputil.h
+++ b/include/otputil.h
@@ -129,6 +129,7 @@
129#define OTPUTIL_OPT_TOTP_HMAC 0x0206 // (int *) 129#define OTPUTIL_OPT_TOTP_HMAC 0x0206 // (int *)
130 130
131 131
132#define OTPUTIL_MD_NONE 0
132#define OTPUTIL_MD_SHA1 1 133#define OTPUTIL_MD_SHA1 1
133#define OTPUTIL_MD_SHA256 2 134#define OTPUTIL_MD_SHA256 2
134#define OTPUTIL_MD_SHA512 3 135#define OTPUTIL_MD_SHA512 3
diff --git a/lib/libotputil/lmisc.c b/lib/libotputil/lmisc.c
index 1c60269..6f5221d 100644
--- a/lib/libotputil/lmisc.c
+++ b/lib/libotputil/lmisc.c
@@ -58,6 +58,7 @@
58#pragma mark otputil_md_list[] 58#pragma mark otputil_md_list[]
59static const otputil_map_t otputil_md_list[] = 59static const otputil_map_t otputil_md_list[] =
60{ 60{
61 { .map_name = "none", .map_id = OTPUTIL_MD_NONE },
61 { .map_name = "md4", .map_id = OTPUTIL_MD_MD4 }, 62 { .map_name = "md4", .map_id = OTPUTIL_MD_MD4 },
62 { .map_name = "md5", .map_id = OTPUTIL_MD_MD5 }, 63 { .map_name = "md5", .map_id = OTPUTIL_MD_MD5 },
63 { .map_name = "sha1", .map_id = OTPUTIL_MD_SHA1 }, 64 { .map_name = "sha1", .map_id = OTPUTIL_MD_SHA1 },