From b0f89ce78c817b7ae5fa8112554581436fe33910 Mon Sep 17 00:00:00 2001 From: "Andrey A. Chernov" Date: Mon, 11 Aug 2014 13:36:02 +0000 Subject: [PATCH] When sha1 support was added, they forget to increase OPIE_HASHNAME_MAX MFC after: 1 week --- contrib/opie/opie.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/contrib/opie/opie.h b/contrib/opie/opie.h index 2d3ceed3a837..8e88135a55e1 100644 --- a/contrib/opie/opie.h +++ b/contrib/opie/opie.h @@ -69,8 +69,8 @@ struct opie { /* Maximum length of a seed */ #define OPIE_SEED_MAX 16 -/* Max length of hash algorithm name (md4/md5) */ -#define OPIE_HASHNAME_MAX 3 +/* Max length of hash algorithm name (md4/md5/sha1) */ +#define OPIE_HASHNAME_MAX 4 /* Maximum length of a challenge (otp-md? 9999 seed ext) */ #define OPIE_CHALLENGE_MAX (4+OPIE_HASHNAME_MAX+1+4+1+OPIE_SEED_MAX+1+3)