os/ossrv/ssl/libcrypto/src/crypto/ebcdic.h
author sl@SLION-WIN7.fritz.box
Fri, 15 Jun 2012 03:10:57 +0200 (2012-06-15)
changeset 0 bde4ae8d615e
permissions -rw-r--r--
First public contribution.
     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 #ifdef SYMBIAN
     9 #include <e32def.h>
    10 #endif
    11 #include <sys/types.h>
    12 
    13 /* Avoid name clashes with other applications */
    14 #define os_toascii   _openssl_os_toascii
    15 #define os_toebcdic  _openssl_os_toebcdic
    16 #define ebcdic2ascii _openssl_ebcdic2ascii
    17 #define ascii2ebcdic _openssl_ascii2ebcdic
    18 
    19 IMPORT_C extern const unsigned char os_toascii[256];
    20 IMPORT_C extern const unsigned char os_toebcdic[256];
    21 IMPORT_C void *ebcdic2ascii(void *dest, const void *srce, size_t count);
    22 IMPORT_C void *ascii2ebcdic(void *dest, const void *srce, size_t count);
    23 
    24 #endif