diff options
author | beck <> | 2014-04-15 17:46:17 +0000 |
---|---|---|
committer | beck <> | 2014-04-15 17:46:17 +0000 |
commit | c9414ed70ec89926c1041a64ee4b2f3ef36c90f6 (patch) | |
tree | c53c25a15cd89988cef641fa18324c5c6db28fed /src/lib/libcrypto/bio/b_dump.c | |
parent | 0cfe49dc6db41fd2d4f960b618ed41b11ffffc6a (diff) | |
download | openbsd-c9414ed70ec89926c1041a64ee4b2f3ef36c90f6.tar.gz openbsd-c9414ed70ec89926c1041a64ee4b2f3ef36c90f6.tar.bz2 openbsd-c9414ed70ec89926c1041a64ee4b2f3ef36c90f6.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 'src/lib/libcrypto/bio/b_dump.c')
-rw-r--r-- | src/lib/libcrypto/bio/b_dump.c | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/src/lib/libcrypto/bio/b_dump.c b/src/lib/libcrypto/bio/b_dump.c index bea94969a2..32d523563e 100644 --- a/src/lib/libcrypto/bio/b_dump.c +++ b/src/lib/libcrypto/bio/b_dump.c | |||
@@ -125,14 +125,8 @@ BIO_dump_indent_cb(int (*cb)(const void *data, size_t len, void *u), | |||
125 | if (((i*dump_width) + j) >= len) | 125 | if (((i*dump_width) + j) >= len) |
126 | break; | 126 | break; |
127 | ch = ((unsigned char)*(s + i * dump_width + j)) & 0xff; | 127 | ch = ((unsigned char)*(s + i * dump_width + j)) & 0xff; |
128 | #ifndef CHARSET_EBCDIC | ||
129 | (void) snprintf(tmp, sizeof tmp, "%c", | 128 | (void) snprintf(tmp, sizeof tmp, "%c", |
130 | ((ch >= ' ') && (ch <= '~')) ? ch : '.'); | 129 | ((ch >= ' ') && (ch <= '~')) ? ch : '.'); |
131 | #else | ||
132 | (void) snprintf(tmp, sizeof tmp, "%c", | ||
133 | ((ch >= os_toascii[' ']) && (ch <= os_toascii['~'])) | ||
134 | ? os_toebcdic[ch] : '.'); | ||
135 | #endif | ||
136 | BUF_strlcat(buf, tmp, sizeof buf); | 130 | BUF_strlcat(buf, tmp, sizeof buf); |
137 | } | 131 | } |
138 | BUF_strlcat(buf, "\n", sizeof buf); | 132 | BUF_strlcat(buf, "\n", sizeof buf); |