d3b4e98b120ca76b0f66cedaeab0ad489aaf80fc
[openssl.git] / crypto / ebcdic.h
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