summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorTodd C. Miller <millert@cvs.openbsd.org>1997-07-26 19:48:20 +0000
committerTodd C. Miller <millert@cvs.openbsd.org>1997-07-26 19:48:20 +0000
commiteea6cbb06bf3ee67dcbe3c349482a113f94205af (patch)
tree365425263ff554ecd6ec34521ab32bad638446f8 /lib
parentdd246ea1ce8b5105cb2adcddb62635d4f346aa24 (diff)
Convert upper -> lower case in seed for fake s/key propt.
Diffstat (limited to 'lib')
-rw-r--r--lib/libskey/skeylogin.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/libskey/skeylogin.c b/lib/libskey/skeylogin.c
index db9ba4cd840..c7e859ebc0f 100644
--- a/lib/libskey/skeylogin.c
+++ b/lib/libskey/skeylogin.c
@@ -8,7 +8,7 @@
*
* S/KEY verification check, lookups, and authentication.
*
- * $Id: skeylogin.c,v 1.16 1997/07/26 19:42:46 millert Exp $
+ * $Id: skeylogin.c,v 1.17 1997/07/26 19:48:19 millert Exp $
*/
#include <sys/param.h>
@@ -430,7 +430,8 @@ skey_authenticate(username)
*(p = pbuf) = '.';
else
for (p = pbuf; *p && isalnum(*p); p++)
- ;
+ if (isalpha(*p) && isupper(*p))
+ *p = tolower(*p);
if (*p)
strncpy(p, "asjd", 4 - (pbuf - p));
p = &pbuf[4];