X-Git-Url: http://www.average.org/gitweb/?p=pam_pcsc_cr.git;a=blobdiff_plain;f=tom_crypto.c;fp=tom_crypto.c;h=d77433384a34515ca92b1a2aa9369a2ed36af09c;hp=97a18e19fafcab5169b3963a7310a1befccd3388;hb=8c8a47cd542e60381773fe23f2075aa5b896be4f;hpb=3d841899fe8859b2ce6af8fdfd8fa961c7651425 diff --git a/tom_crypto.c b/tom_crypto.c index 97a18e1..d774333 100644 --- a/tom_crypto.c +++ b/tom_crypto.c @@ -1,3 +1,6 @@ +#ifdef HAVE_CONFIG_H +# include "config.h" +#endif #include #include "crypto_if.h" @@ -50,7 +53,6 @@ static unsigned long tom_hmac(void *key, int keylen, int index, rc; unsigned long ltaglen = *taglen; - if (keylen != 20) return CRYPT_INVALID_KEYSIZE; if ((index = register_hash(&sha1_desc)) == -1) return CRYPT_INVALID_HASH; rc = hmac_memory(index, key, keylen, pt, tlen, tag, <aglen);