Index | Thread | Search

From:
"Andy Bradford" <amb-sendok-1779321329.bifajhjhochohpioocna@bradfords.org>
Subject:
Minor correction to skey(5).
To:
tech@openbsd.org
Date:
21 Mar 2026 17:55:29 -0600

Download raw body.

Thread
  • Andy Bradford:

    Minor correction to skey(5).

Hello,

While  attempting to  use skey  I  noticed a  small discrepancy  between
skey(5) and the actual program behavior:

$ skeyinit -sha1 -n 10000
skeyinit: count must be > 0 and < 10000

lib/libskey/skey.h has the following #define:

/* Maximum sequence number we allow */
#define SKEY_MAX_SEQ            10000   

But the man page says:

    This is a decimal number between one and one thousand.

Here's a fix to the man page:

Index: skey.5
===================================================================
RCS file: /cvs/src/lib/libskey/skey.5,v
retrieving revision 1.9
diff -u -p -u -r1.9 skey.5
--- skey.5	24 Oct 2020 10:33:44 -0000	1.9
+++ skey.5	21 Mar 2026 23:26:56 -0000
@@ -56,7 +56,7 @@ one of md5, sha1, or rmd160.
 The default is md5.
 .It
 The sequence number.
-This is a decimal number between one and one thousand.
+This is a decimal number between one and ten thousand.
 Each time the user authenticates via S/Key this number is decremented by one.
 .It
 A seed used along with the sequence number and the six S/Key words to