Package: opie-client
Version: 2.32-10.2

opiekey refuses to compute responses with seed=0, which seems to be allowed by
RFC 2289 (e.g. tests vectors from pg.17), and is accepted by opiepasswd for
example.

Transcript follows:

% opiekey 0 alpha1
Using the MD5 algorithm to compute response.
Sequence number 0 is not positive.
%

I suggest the following patch to be applied.

Signed-off-by: Quentin Godfroy <[EMAIL PROTECTED]>
---
diff -ruNp opie-2.32-orig/opiekey.c opie-2.32/opiekey.c
--- opie-2.32-orig/opiekey.c    1998-01-02 00:53:28.000000000 +0100
+++ opie-2.32/opiekey.c 2007-10-15 02:39:03.000000000 +0200
@@ -217,7 +217,7 @@ int main FUNCTION((argc, argv), int argc
 
   /* get sequence number, which is next-to-last parameter */
   keynum = atoi(argv[optind]);
-  if (keynum < 1) {
+  if (keynum < 0) {
     fprintf(stderr, "Sequence number %s is not positive.\n", argv[optind]);
     exit(1);
   }



-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to