summaryrefslogtreecommitdiffstats
path: root/apps/passwd.c
diff options
context:
space:
mode:
authorBodo Möller <bodo@openssl.org>2000-02-11 17:18:50 +0000
committerBodo Möller <bodo@openssl.org>2000-02-11 17:18:50 +0000
commit3ebf0be142ea19ee2b452d9403d6bc5b14cc41ae (patch)
tree0cb70f1dd56bbf6c93cbd4163e8df0b0b6e387c9 /apps/passwd.c
parentcbcc5c01f964e104bee9a2d5d94795be0a72eb7d (diff)
Corrections.
Diffstat (limited to 'apps/passwd.c')
-rw-r--r--apps/passwd.c19
1 files changed, 12 insertions, 7 deletions
diff --git a/apps/passwd.c b/apps/passwd.c
index 7e3eb7af16..06155979f4 100644
--- a/apps/passwd.c
+++ b/apps/passwd.c
@@ -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>
@@ -12,10 +16,6 @@
#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