summaryrefslogtreecommitdiffstats
path: root/lib/libssl/src/apps/passwd.c
diff options
context:
space:
mode:
authorbeck <beck@openbsd.org>2014-04-15 17:46:16 +0000
committerbeck <beck@openbsd.org>2014-04-15 17:46:16 +0000
commitb4148b700a1c8f291abcf64c42ac3229f9827ca7 (patch)
tree157ab6b25c416ae3585d10a00df3c301d6bc4d95 /lib/libssl/src/apps/passwd.c
parent- get the spacing right for -e, -i, -n, and -s (diff)
downloadwireguard-openbsd-b4148b700a1c8f291abcf64c42ac3229f9827ca7.tar.xz
wireguard-openbsd-b4148b700a1c8f291abcf64c42ac3229f9827ca7.zip
Send the rotIBM stream cipher (ebcdic) to Valhalla to party for eternity
with the bearded ones... some API's that nobody should be using will dissapear with this commit.
Diffstat (limited to 'lib/libssl/src/apps/passwd.c')
-rw-r--r--lib/libssl/src/apps/passwd.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/lib/libssl/src/apps/passwd.c b/lib/libssl/src/apps/passwd.c
index 473fe46cbd8..9eabeb488cc 100644
--- a/lib/libssl/src/apps/passwd.c
+++ b/lib/libssl/src/apps/passwd.c
@@ -1,6 +1,6 @@
/* apps/passwd.c */
-#if defined OPENSSL_NO_MD5 || defined CHARSET_EBCDIC
+#if defined OPENSSL_NO_MD5
# define NO_MD5CRYPT_1
#endif
@@ -440,10 +440,6 @@ static int do_passwd(int passed_salt, char **salt_p, char **salt_malloc_p,
(*salt_p)[0] = cov_2char[(*salt_p)[0] & 0x3f]; /* 6 bits */
(*salt_p)[1] = cov_2char[(*salt_p)[1] & 0x3f]; /* 6 bits */
(*salt_p)[2] = 0;
-#ifdef CHARSET_EBCDIC
- ascii2ebcdic(*salt_p, *salt_p, 2); /* des_crypt will convert
- * back to ASCII */
-#endif
}
#endif /* !OPENSSL_NO_DES */