summaryrefslogtreecommitdiff
path: root/lib/libskey/skey.h
diff options
context:
space:
mode:
authorTheo Buehler <tb@cvs.openbsd.org>2017-03-20 21:11:22 +0000
committerTheo Buehler <tb@cvs.openbsd.org>2017-03-20 21:11:22 +0000
commitdad85ac7636ad0ecfca47fab24fd2d369724e56f (patch)
tree1ddee33a211032bcbfc58497927a80f2cb073e88 /lib/libskey/skey.h
parentac6813f6fac3a8e989ac94db13851cebdb40a23c (diff)
Generate the bogus challenge using arc4random_buf(3) instead of reading
directly from /var/db/host.random and falling back to ctime. Remove the _SKEY_RAND_FILE_PATH_ since it's no longer needed. ok millert, mestre
Diffstat (limited to 'lib/libskey/skey.h')
-rw-r--r--lib/libskey/skey.h5
1 files changed, 1 insertions, 4 deletions
diff --git a/lib/libskey/skey.h b/lib/libskey/skey.h
index 64f5b591c90..54e1f4d8804 100644
--- a/lib/libskey/skey.h
+++ b/lib/libskey/skey.h
@@ -10,7 +10,7 @@
*
* Main client header
*
- * $OpenBSD: skey.h,v 1.20 2014/03/20 20:39:13 naddy Exp $
+ * $OpenBSD: skey.h,v 1.21 2017/03/20 21:11:21 tb Exp $
*/
#ifndef _SKEY_H_
@@ -57,9 +57,6 @@ struct mc {
/* Size of a binary key (not NULL-terminated) */
#define SKEY_BINKEY_SIZE 8
-/* Location of random file for bogus challenges */
-#define _SKEY_RAND_FILE_PATH_ "/var/db/host.random"
-
/* Directory for S/Key per-user files */
#define _PATH_SKEYDIR "/etc/skey"