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.
/* 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
err:
return 0;
}
-#endif
-
+#else
+int MAIN(int argc, char **argv)
+ {
+ fputs("Program not available.\n", stderr)
+ EXIT(1);
+ }
+#endif