Corrections.
authorBodo Möller <bodo@openssl.org>
Fri, 11 Feb 2000 17:18:50 +0000 (17:18 +0000)
committerBodo Möller <bodo@openssl.org>
Fri, 11 Feb 2000 17:18:50 +0000 (17:18 +0000)
CHANGES
Makefile.org
apps/passwd.c

diff --git a/CHANGES b/CHANGES
index ec11b648c9a388c1df2a1409672278e79301f991..2e10a0f8c5ad956b8f658cb4fe51e085fcdd60a2 100644 (file)
--- a/CHANGES
+++ b/CHANGES
@@ -4,7 +4,7 @@
 
  Changes between 0.9.4 and 0.9.5  [xx XXX 2000]
 
-  *) New 'passwd' tool, currently only -fcrypt is implemented.
+  *) New 'passwd' tool for crypt(3) and apr1 password hashes.
      [Bodo Moeller]
 
   *) Add command line password options to the remaining applications.
index 257f6a5b6605306209a12ab33fedfeeecadb97bb..d4f381e6943ead1d1e1ac5b011a88987feda8926 100644 (file)
@@ -262,7 +262,7 @@ dclean:
 rehash: rehash.time
 rehash.time: certs
        @(OPENSSL="`pwd`/apps/openssl"; export OPENSSL; sh tools/c_rehash certs)
-       touch .rehash.time
+       touch rehash.time
 
 test:   tests
 
index 7e3eb7af16c6b02147345c9b3bad985dd88fb7f2..06155979f444a4b1d837bacc07ccf39a534f365c 100644 (file)
@@ -1,6 +1,10 @@
 /* apps/passwd.c */
 
-#if !defined(NO_DES) || !defined(NO_MD5)
+#if defined NO_MD5 || defined CHARSET_EBCDIC
+# define NO_APR1
+#endif
+
+#if !defined(NO_DES) || !defined(NO_APR1)
 
 #include <assert.h>
 #include <string.h>
 #include <openssl/evp.h>
 #include <openssl/rand.h>
 
-#if defined NO_MD5 || defined CHARSET_EBCDIC
-# define NO_APR1
-#endif
-
 #ifndef NO_DES
 # include <openssl/des.h>
 #endif
@@ -461,6 +461,11 @@ static int do_passwd(int passed_salt, char **salt_p, char **salt_malloc_p,
 err:
        return 0;
        }
-#endif
-
+#else
 
+int MAIN(int argc, char **argv)
+       {
+       fputs("Program not available.\n", stderr)
+       EXIT(1);
+       }
+#endif