svn commit: r269809 - head/contrib/opie

Andrey A. Chernov ache at FreeBSD.org
Mon Aug 11 13:36:02 UTC 2014


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)


More information about the svn-src-all mailing list