summaryrefslogtreecommitdiff
path: root/config.h
diff options
context:
space:
mode:
authorMarco d'Itri <md@linux.it>2018-09-11 01:21:52 +0200
committerMarco d'Itri <md@linux.it>2018-09-20 00:18:06 +0200
commit3197cb7db4d5ce13f1d011cfa6f9e42164d9b091 (patch)
tree409ffa5024733de65627223a31ea50366c2c8e40 /config.h
parent61f4e5d64c9ad64ff6b70bb2bf0afb3165bb9c51 (diff)
downloadwhois-3197cb7db4d5ce13f1d011cfa6f9e42164d9b091.tar.gz
mkpasswd: support letting crypt_gensalt decide the prefix
If crypt_gensalt (as implemented by Solaris and modern versions of libxcrypt) is passed a NULL prefix then it will decide by itself which algorithm should be used by default.
Diffstat (limited to 'config.h')
-rw-r--r--config.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/config.h b/config.h
index 66f7e71..be20c33 100644
--- a/config.h
+++ b/config.h
@@ -56,6 +56,7 @@
#if defined __SVR4 && defined __sun
# define HAVE_SHA_CRYPT
# define HAVE_SOLARIS_CRYPT_GENSALT
+# define CRYPT_GENSALT_IMPLEMENTS_DEFAULT_PREFIX
#endif
/* FIXME: which systems lack this? */