[hackers] [ubase] Add password cipher type in config.def.h - default to SHA-512 || sin

From: <git_AT_suckless.org>
Date: Mon, 09 Jun 2014 17:52:02 +0200

commit 5eeef920f00eee50f6fac1992e09e04b218e04e6
Author: sin <sin_AT_2f30.org>
Date: Mon Jun 9 16:46:30 2014 +0100

    Add password cipher type in config.def.h - default to SHA-512

diff --git a/config.def.h b/config.def.h
index 20f25b5..b5b9f54 100644
--- a/config.def.h
+++ b/config.def.h
_AT_@ -2,3 +2,4 @@
 
 #define ENV_SUPATH "/bin"
 #define ENV_PATH "/bin"
+#define PW_CIPHER "$6$"
diff --git a/passwd.c b/passwd.c
index 77d5209..2606cac 100644
--- a/passwd.c
+++ b/passwd.c
_AT_@ -9,6 +9,7 @@
 #include <sys/stat.h>
 #include <sys/types.h>
 #include <unistd.h>
+#include "config.h"
 #include "passwd.h"
 #include "util.h"
 
_AT_@ -53,14 +54,14 @@ main(int argc, char *argv[])
                 if (pw->pw_passwd[0] == '!' ||
                     pw->pw_passwd[0] == '*' ||
                     pw->pw_passwd[0] == '
Received on Mon Jun 09 2014 - 17:52:02 CEST

This archive was generated by hypermail 2.3.0 : Mon Jun 09 2014 - 18:00:09 CEST