]>
Commit | Line | Data |
---|---|---|
21dcbebc RS |
1 | /* |
2 | * Copyright 1999-2016 The OpenSSL Project Authors. All Rights Reserved. | |
3 | * | |
48f4ad77 | 4 | * Licensed under the Apache License 2.0 (the "License"). You may not use |
21dcbebc RS |
5 | * this file except in compliance with the License. You can obtain a copy |
6 | * in the file LICENSE in the source distribution or at | |
7 | * https://www.openssl.org/source/license.html | |
8 | */ | |
8efb6014 | 9 | |
ae4186b0 DMSP |
10 | #ifndef OPENSSL_EBCDIC_H |
11 | # define OPENSSL_EBCDIC_H | |
d86167ec DMSP |
12 | # pragma once |
13 | ||
14 | # include <openssl/macros.h> | |
15 | # if !OPENSSL_API_3 | |
16 | # define HEADER_EBCDIC_H | |
17 | # endif | |
1ec7ac3c | 18 | |
f6ce4290 | 19 | # include <stdlib.h> |
1ec7ac3c | 20 | |
17e80c6b RS |
21 | #ifdef __cplusplus |
22 | extern "C" { | |
23 | #endif | |
24 | ||
1ec7ac3c | 25 | /* Avoid name clashes with other applications */ |
0f113f3e MC |
26 | # define os_toascii _openssl_os_toascii |
27 | # define os_toebcdic _openssl_os_toebcdic | |
28 | # define ebcdic2ascii _openssl_ebcdic2ascii | |
29 | # define ascii2ebcdic _openssl_ascii2ebcdic | |
1ec7ac3c UM |
30 | |
31 | extern const unsigned char os_toascii[256]; | |
32 | extern const unsigned char os_toebcdic[256]; | |
8efb6014 UM |
33 | void *ebcdic2ascii(void *dest, const void *srce, size_t count); |
34 | void *ascii2ebcdic(void *dest, const void *srce, size_t count); | |
1ec7ac3c | 35 | |
17e80c6b RS |
36 | #ifdef __cplusplus |
37 | } | |
38 | #endif | |
1ec7ac3c | 39 | #endif |