diff options
author | Simon Josefsson <simon@josefsson.org> | 2005-10-12 09:28:48 +0000 |
---|---|---|
committer | Simon Josefsson <simon@josefsson.org> | 2005-10-12 09:28:48 +0000 |
commit | 3ebed7b6a607af166646a161cddfacddd528b6e0 (patch) | |
tree | 4d46dcba4599a532f19261f12839d9d63c1cb2b9 /lib/gc-gnulib.c | |
parent | ea3ee2b5133fd11042c0cdf0e71100e94a03acf0 (diff) | |
download | gnulib-3ebed7b6a607af166646a161cddfacddd528b6e0.tar.gz |
Add gc-hmac-sha1.
Diffstat (limited to 'lib/gc-gnulib.c')
-rw-r--r-- | lib/gc-gnulib.c | 10 |
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 |