diff options
author | beck <> | 1999-09-29 04:37:45 +0000 |
---|---|---|
committer | beck <> | 1999-09-29 04:37:45 +0000 |
commit | de8f24ea083384bb66b32ec105dc4743c5663cdf (patch) | |
tree | 1412176ae62a3cab2cf2b0b92150fcbceaac6092 /src/lib/libcrypto/ebcdic.h | |
parent | cb929d29896bcb87c2a97417fbd03e50078fc178 (diff) | |
download | openbsd-de8f24ea083384bb66b32ec105dc4743c5663cdf.tar.gz openbsd-de8f24ea083384bb66b32ec105dc4743c5663cdf.tar.bz2 openbsd-de8f24ea083384bb66b32ec105dc4743c5663cdf.zip |
OpenSSL 0.9.4 merge
Diffstat (limited to 'src/lib/libcrypto/ebcdic.h')
-rw-r--r-- | src/lib/libcrypto/ebcdic.h | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/src/lib/libcrypto/ebcdic.h b/src/lib/libcrypto/ebcdic.h new file mode 100644 index 0000000000..d3b4e98b12 --- /dev/null +++ b/src/lib/libcrypto/ebcdic.h | |||
@@ -0,0 +1,17 @@ | |||
1 | #ifndef HEADER_EBCDIC_H | ||
2 | #define HEADER_EBCDIC_H | ||
3 | |||
4 | #include <sys/types.h> | ||
5 | |||
6 | /* Avoid name clashes with other applications */ | ||
7 | #define os_toascii _eay2000_os_toascii | ||
8 | #define os_toebcdic _eay2000_os_toebcdic | ||
9 | #define ebcdic2ascii _eay2000_ebcdic2ascii | ||
10 | #define ascii2ebcdic _eay2000_ascii2ebcdic | ||
11 | |||
12 | extern const unsigned char os_toascii[256]; | ||
13 | extern const unsigned char os_toebcdic[256]; | ||
14 | void ebcdic2ascii(unsigned char *dest, const unsigned char *srce, size_t count); | ||
15 | void ascii2ebcdic(unsigned char *dest, const unsigned char *srce, size_t count); | ||
16 | |||
17 | #endif | ||