31
|
1 |
/* crypto/ebcdic.h */
|
|
2 |
/*
|
|
3 |
© Portions copyright (c) 2006 Nokia Corporation. All rights reserved.
|
|
4 |
*/
|
|
5 |
|
|
6 |
#ifndef HEADER_EBCDIC_H
|
|
7 |
#define HEADER_EBCDIC_H
|
|
8 |
|
|
9 |
#if (defined(__SYMBIAN32__) && !defined(SYMBIAN))
|
|
10 |
#define SYMBIAN
|
|
11 |
#endif
|
|
12 |
|
|
13 |
#ifdef SYMBIAN
|
|
14 |
#include <e32def.h>
|
|
15 |
#endif
|
|
16 |
#include <sys/types.h>
|
|
17 |
|
|
18 |
/* Avoid name clashes with other applications */
|
|
19 |
#define os_toascii _openssl_os_toascii
|
|
20 |
#define os_toebcdic _openssl_os_toebcdic
|
|
21 |
#define ebcdic2ascii _openssl_ebcdic2ascii
|
|
22 |
#define ascii2ebcdic _openssl_ascii2ebcdic
|
|
23 |
|
|
24 |
IMPORT_C extern const unsigned char os_toascii[256];
|
|
25 |
IMPORT_C extern const unsigned char os_toebcdic[256];
|
|
26 |
IMPORT_C void *ebcdic2ascii(void *dest, const void *srce, size_t count);
|
|
27 |
IMPORT_C void *ascii2ebcdic(void *dest, const void *srce, size_t count);
|
|
28 |
|
|
29 |
#endif
|