Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2026-06-27 08:41:06

0001 /*
0002  * Copyright 1999-2016 The OpenSSL Project Authors. All Rights Reserved.
0003  *
0004  * Licensed under the Apache License 2.0 (the "License").  You may not use
0005  * this file except in compliance with the License.  You can obtain a copy
0006  * in the file LICENSE in the source distribution or at
0007  * https://www.openssl.org/source/license.html
0008  */
0009 
0010 #ifndef OPENSSL_EBCDIC_H
0011 #define OPENSSL_EBCDIC_H
0012 #pragma once
0013 
0014 #include <openssl/macros.h>
0015 #ifndef OPENSSL_NO_DEPRECATED_3_0
0016 #define HEADER_EBCDIC_H
0017 #endif
0018 
0019 #include <stdlib.h>
0020 
0021 #ifdef __cplusplus
0022 extern "C" {
0023 #endif
0024 
0025 /* Avoid name clashes with other applications */
0026 #define os_toascii _openssl_os_toascii
0027 #define os_toebcdic _openssl_os_toebcdic
0028 #define ebcdic2ascii _openssl_ebcdic2ascii
0029 #define ascii2ebcdic _openssl_ascii2ebcdic
0030 
0031 extern const unsigned char os_toascii[256];
0032 extern const unsigned char os_toebcdic[256];
0033 void *ebcdic2ascii(void *dest, const void *srce, size_t count);
0034 void *ascii2ebcdic(void *dest, const void *srce, size_t count);
0035 
0036 #ifdef __cplusplus
0037 }
0038 #endif
0039 #endif