]>
Commit | Line | Data |
---|---|---|
8efb6014 UM |
1 | /* crypto/ebcdic.h */ |
2 | ||
1ec7ac3c | 3 | #ifndef HEADER_EBCDIC_H |
ae5c8664 | 4 | # define HEADER_EBCDIC_H |
1ec7ac3c | 5 | |
ae5c8664 | 6 | # include <sys/types.h> |
1ec7ac3c | 7 | |
089f10e6 RS |
8 | #ifdef __cplusplus |
9 | extern "C" { | |
10 | #endif | |
11 | ||
1ec7ac3c | 12 | /* Avoid name clashes with other applications */ |
ae5c8664 MC |
13 | # define os_toascii _openssl_os_toascii |
14 | # define os_toebcdic _openssl_os_toebcdic | |
15 | # define ebcdic2ascii _openssl_ebcdic2ascii | |
16 | # define ascii2ebcdic _openssl_ascii2ebcdic | |
1ec7ac3c UM |
17 | |
18 | extern const unsigned char os_toascii[256]; | |
19 | extern const unsigned char os_toebcdic[256]; | |
8efb6014 UM |
20 | void *ebcdic2ascii(void *dest, const void *srce, size_t count); |
21 | void *ascii2ebcdic(void *dest, const void *srce, size_t count); | |
1ec7ac3c | 22 | |
089f10e6 RS |
23 | #ifdef __cplusplus |
24 | } | |
25 | #endif | |
1ec7ac3c | 26 | #endif |