Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/lib/libskey skey_keyinfo() returns a pointer to a static buf...
details: https://anonhg.NetBSD.org/src/rev/bf2700fb0244
branches: trunk
changeset: 495460:bf2700fb0244
user: thorpej <thorpej%NetBSD.org@localhost>
date: Fri Jul 28 16:35:11 2000 +0000
description:
skey_keyinfo() returns a pointer to a static buffer, so
const'ify it.
diffstat:
lib/libskey/skey.h | 4 ++--
lib/libskey/skeylogin.c | 4 ++--
2 files changed, 4 insertions(+), 4 deletions(-)
diffs (36 lines):
diff -r 88361c5237b0 -r bf2700fb0244 lib/libskey/skey.h
--- a/lib/libskey/skey.h Fri Jul 28 16:33:39 2000 +0000
+++ b/lib/libskey/skey.h Fri Jul 28 16:35:11 2000 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: skey.h,v 1.7 2000/07/06 22:30:19 mjl Exp $ */
+/* $NetBSD: skey.h,v 1.8 2000/07/28 16:35:11 thorpej Exp $ */
/*
* S/KEY v1.1b (skey.h)
@@ -86,7 +86,7 @@
char *readskey __P ((char *, int));
int skey_authenticate __P ((const char *));
int skey_passcheck __P ((const char *, char *));
-char *skey_keyinfo __P ((const char *));
+const char *skey_keyinfo __P ((const char *));
int skey_haskey __P ((const char *));
int getskeyprompt __P ((struct skey *, char *, char *));
int atob8 __P((char *, const char *));
diff -r 88361c5237b0 -r bf2700fb0244 lib/libskey/skeylogin.c
--- a/lib/libskey/skeylogin.c Fri Jul 28 16:33:39 2000 +0000
+++ b/lib/libskey/skeylogin.c Fri Jul 28 16:35:11 2000 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: skeylogin.c,v 1.15 2000/07/11 06:07:27 itohy Exp $ */
+/* $NetBSD: skeylogin.c,v 1.16 2000/07/28 16:35:11 thorpej Exp $ */
/* S/KEY v1.1b (skeylogin.c)
*
@@ -354,7 +354,7 @@
* Returns the current sequence number and
* seed for the passed user.
*/
-char *skey_keyinfo(const char *username)
+const char *skey_keyinfo(const char *username)
{
int i;
static char str[SKEY_MAX_CHALLENGE];
Home |
Main Index |
Thread Index |
Old Index