summaryrefslogtreecommitdiff
path: root/lib/gc-gnulib.c
diff options
context:
space:
mode:
authorSimon Josefsson <simon@josefsson.org>2005-10-12 09:28:48 +0000
committerSimon Josefsson <simon@josefsson.org>2005-10-12 09:28:48 +0000
commit3ebed7b6a607af166646a161cddfacddd528b6e0 (patch)
tree4d46dcba4599a532f19261f12839d9d63c1cb2b9 /lib/gc-gnulib.c
parentea3ee2b5133fd11042c0cdf0e71100e94a03acf0 (diff)
downloadgnulib-3ebed7b6a607af166646a161cddfacddd528b6e0.tar.gz
Add gc-hmac-sha1.
Diffstat (limited to 'lib/gc-gnulib.c')
-rw-r--r--lib/gc-gnulib.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/lib/gc-gnulib.c b/lib/gc-gnulib.c
index dfe4edc2cf..e0e37b059d 100644
--- a/lib/gc-gnulib.c
+++ b/lib/gc-gnulib.c
@@ -195,3 +195,13 @@ gc_hmac_md5 (const void *key, size_t keylen,
return 0;
}
#endif
+
+#ifdef GC_USE_HMAC_SHA1
+int
+gc_hmac_sha1 (const void *key, size_t keylen,
+ const void *in, size_t inlen, char *resbuf)
+{
+ hmac_sha1 (key, keylen, in, inlen, resbuf);
+ return 0;
+}
+#endif