summaryrefslogtreecommitdiff
path: root/src/lib/libcrypto/bio
diff options
context:
space:
mode:
authorbeck <>2014-04-15 17:46:17 +0000
committerbeck <>2014-04-15 17:46:17 +0000
commit399901082925ad76fc2bd5cd8d351a590f3f2989 (patch)
treec53c25a15cd89988cef641fa18324c5c6db28fed /src/lib/libcrypto/bio
parent132a4cce42485cfd13bf12c1213cf1a63b5b1da2 (diff)
downloadopenbsd-399901082925ad76fc2bd5cd8d351a590f3f2989.tar.gz
openbsd-399901082925ad76fc2bd5cd8d351a590f3f2989.tar.bz2
openbsd-399901082925ad76fc2bd5cd8d351a590f3f2989.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')
-rw-r--r--src/lib/libcrypto/bio/b_dump.c6
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);