ocserv: prevent ocpasswd from using sha2crypt
authorNikos Mavrogiannopoulos <nmav@gnutls.org>
Mon, 19 Jan 2015 20:39:25 +0000 (21:39 +0100)
committerNikos Mavrogiannopoulos <nmav@gnutls.org>
Mon, 19 Jan 2015 22:28:41 +0000 (23:28 +0100)
That doesn't cope well with uclibc.
https://bugs.busybox.net/show_bug.cgi?id=7808

Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
net/ocserv/patches/001-ocpasswd-sha2crypt.patch [new file with mode: 0644]

diff --git a/net/ocserv/patches/001-ocpasswd-sha2crypt.patch b/net/ocserv/patches/001-ocpasswd-sha2crypt.patch
new file mode 100644 (file)
index 0000000..272599c
--- /dev/null
@@ -0,0 +1,12 @@
+diff -ur ocserv-0.8.9/src/ocpasswd.c ocserv-0.8.9.new/src/ocpasswd.c
+--- ocserv-0.8.9/src/ocpasswd.c        2014-11-29 19:49:38.000000000 +0100
++++ ocserv-0.8.9.new/src/ocpasswd.c    2015-01-19 23:21:14.959144113 +0100
+@@ -69,7 +69,7 @@
+               exit(1);
+       }
+-      strcpy(salt, "$5$");
++      strcpy(salt, "$1$");
+       p = salt + 3;
+       for (i = 0; i < sizeof(_salt); i++) {