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