diff options
Diffstat (limited to '')
| -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 | ||
