summaryrefslogtreecommitdiffstats
path: root/contrib/opie/libopie/parsechallenge.c
diff options
context:
space:
mode:
authormarkm <markm@FreeBSD.org>2002-03-21 22:50:02 +0000
committermarkm <markm@FreeBSD.org>2002-03-21 22:50:02 +0000
commitda481742fe10db46be0a0f92255f012bcfa3a0a9 (patch)
tree5c9f598749274986230a9eaa1de3c9dd00eb09b3 /contrib/opie/libopie/parsechallenge.c
parent3b73ce2319e249cf2795cf4b0d0c624134f01e77 (diff)
parent4cdfa7814cda254acabe1040a2b2d0c4f5bc4295 (diff)
downloadFreeBSD-src-da481742fe10db46be0a0f92255f012bcfa3a0a9.zip
FreeBSD-src-da481742fe10db46be0a0f92255f012bcfa3a0a9.tar.gz
This commit was generated by cvs2svn to compensate for changes in r92906,
which included commits to RCS files with non-trunk default branches.
Diffstat (limited to 'contrib/opie/libopie/parsechallenge.c')
-rw-r--r--contrib/opie/libopie/parsechallenge.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/contrib/opie/libopie/parsechallenge.c b/contrib/opie/libopie/parsechallenge.c
index 2035c38..2b23a35 100644
--- a/contrib/opie/libopie/parsechallenge.c
+++ b/contrib/opie/libopie/parsechallenge.c
@@ -1,13 +1,15 @@
/* parsechallenge.c: The __opieparsechallenge() library function.
%%% copyright-cmetz-96
-This software is Copyright 1996-1998 by Craig Metz, All Rights Reserved.
-The Inner Net License Version 2 applies to this software.
+This software is Copyright 1996-2001 by Craig Metz, All Rights Reserved.
+The Inner Net License Version 3 applies to this software.
You should have received a copy of the license with this software. If
you didn't get a copy, you may request one from <license@inner.net>.
History:
+ Modified by cmetz for OPIE 2.4. Use OPIE_SEQUENCE_MAX, check for
+ sequence number of zero.
Modified by cmetz for OPIE 2.32. Check for extended response sets.
Change prefix to double underscore.
Created by cmetz for OPIE 2.3 using generator.c as a guide.
@@ -48,7 +50,7 @@ int __opieparsechallenge FUNCTION((buffer, algorithm, sequence, seed, exts), cha
*algorithm = a->num;
}
- if ((*sequence = strtoul(++c, &c, 10)) > 9999)
+ if (((*sequence = strtoul(++c, &c, 10)) > OPIE_SEQUENCE_MAX) || !*sequence)
return -1;
while(*c && isspace(*c)) c++;
OpenPOWER on IntegriCloud