summaryrefslogtreecommitdiff
path: root/mkpasswd.c
diff options
context:
space:
mode:
authorMarco d'Itri <md@linux.it>2018-09-16 03:34:02 +0200
committerMarco d'Itri <md@linux.it>2018-09-16 03:35:38 +0200
commit7a325d277c1033322f87cc4bb5998c9350a4bd2a (patch)
tree4be851cbacdfa92351112c12ecf7f48e71627d41 /mkpasswd.c
parent19e44ac2ec9d4245353de5e770b15a8653cbc5fb (diff)
downloadwhois-7a325d277c1033322f87cc4bb5998c9350a4bd2a.tar.gz
mkpasswd: ifdef out the entropy gathering code on Solaris
Diffstat (limited to 'mkpasswd.c')
-rw-r--r--mkpasswd.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/mkpasswd.c b/mkpasswd.c
index 743c269..0a888c7 100644
--- a/mkpasswd.c
+++ b/mkpasswd.c
@@ -373,6 +373,12 @@ inline void *get_random_bytes(const unsigned int count)
return NULL;
}
+#elif defined HAVE_SOLARIS_CRYPT_GENSALT
+
+/*
+ * The Solaris version of crypt_gensalt() gathers the random data by itself.
+ */
+
#elif defined RANDOM_DEVICE || defined HAVE_ARC4RANDOM_BUF || defined HAVE_GETENTROPY
void *get_random_bytes(const unsigned int count)