Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 11 Aug 2014 13:36:02 +0000 (UTC)
From:      Andrey A. Chernov <ache@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r269809 - head/contrib/opie
Message-ID:  <53e8c6c2.2dd0.45941591@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: ache
Date: Mon Aug 11 13:36:02 2014
New Revision: 269809
URL: http://svnweb.freebsd.org/changeset/base/269809

Log:
  When sha1 support was added, they forget to increase OPIE_HASHNAME_MAX
  
  MFC after:      1 week

Modified:
  head/contrib/opie/opie.h

Modified: head/contrib/opie/opie.h
==============================================================================
--- head/contrib/opie/opie.h	Mon Aug 11 13:12:18 2014	(r269808)
+++ head/contrib/opie/opie.h	Mon Aug 11 13:36:02 2014	(r269809)
@@ -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)



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?53e8c6c2.2dd0.45941591>