xref: /netbsd-src/crypto/external/bsd/openssl.old/dist/include/openssl/ebcdic.h (revision 4724848cf0da353df257f730694b7882798e5daf)
1*4724848cSchristos /*
2*4724848cSchristos  * Copyright 1999-2016 The OpenSSL Project Authors. All Rights Reserved.
3*4724848cSchristos  *
4*4724848cSchristos  * Licensed under the OpenSSL license (the "License").  You may not use
5*4724848cSchristos  * this file except in compliance with the License.  You can obtain a copy
6*4724848cSchristos  * in the file LICENSE in the source distribution or at
7*4724848cSchristos  * https://www.openssl.org/source/license.html
8*4724848cSchristos  */
9*4724848cSchristos 
10*4724848cSchristos #ifndef HEADER_EBCDIC_H
11*4724848cSchristos # define HEADER_EBCDIC_H
12*4724848cSchristos 
13*4724848cSchristos # include <stdlib.h>
14*4724848cSchristos 
15*4724848cSchristos #ifdef  __cplusplus
16*4724848cSchristos extern "C" {
17*4724848cSchristos #endif
18*4724848cSchristos 
19*4724848cSchristos /* Avoid name clashes with other applications */
20*4724848cSchristos # define os_toascii   _openssl_os_toascii
21*4724848cSchristos # define os_toebcdic  _openssl_os_toebcdic
22*4724848cSchristos # define ebcdic2ascii _openssl_ebcdic2ascii
23*4724848cSchristos # define ascii2ebcdic _openssl_ascii2ebcdic
24*4724848cSchristos 
25*4724848cSchristos extern const unsigned char os_toascii[256];
26*4724848cSchristos extern const unsigned char os_toebcdic[256];
27*4724848cSchristos void *ebcdic2ascii(void *dest, const void *srce, size_t count);
28*4724848cSchristos void *ascii2ebcdic(void *dest, const void *srce, size_t count);
29*4724848cSchristos 
30*4724848cSchristos #ifdef  __cplusplus
31*4724848cSchristos }
32*4724848cSchristos #endif
33*4724848cSchristos #endif
34