]> git.ipfire.org Git - thirdparty/openssl.git/blame - include/openssl/ebcdic.h
Backwards-compatibility subject to OPENSSL_API_COMPAT
[thirdparty/openssl.git] / include / openssl / ebcdic.h
CommitLineData
8efb6014
UM
1/* crypto/ebcdic.h */
2
1ec7ac3c 3#ifndef HEADER_EBCDIC_H
0f113f3e 4# define HEADER_EBCDIC_H
1ec7ac3c 5
0f113f3e 6# include <sys/types.h>
1ec7ac3c 7
17e80c6b
RS
8#ifdef __cplusplus
9extern "C" {
10#endif
11
1ec7ac3c 12/* Avoid name clashes with other applications */
0f113f3e
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
18extern const unsigned char os_toascii[256];
19extern const unsigned char os_toebcdic[256];
8efb6014
UM
20void *ebcdic2ascii(void *dest, const void *srce, size_t count);
21void *ascii2ebcdic(void *dest, const void *srce, size_t count);
1ec7ac3c 22
17e80c6b
RS
23#ifdef __cplusplus
24}
25#endif
1ec7ac3c 26#endif