ebcdic.h 924 B

123456789101112131415161718192021222324252627282930313233
  1. /*
  2. * Copyright 1999-2016 The OpenSSL Project Authors. All Rights Reserved.
  3. *
  4. * Licensed under the OpenSSL license (the "License"). You may not use
  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. */
  9. #ifndef HEADER_EBCDIC_H
  10. # define HEADER_EBCDIC_H
  11. # include <stdlib.h>
  12. #ifdef __cplusplus
  13. extern "C" {
  14. #endif
  15. /* Avoid name clashes with other applications */
  16. # define os_toascii _openssl_os_toascii
  17. # define os_toebcdic _openssl_os_toebcdic
  18. # define ebcdic2ascii _openssl_ebcdic2ascii
  19. # define ascii2ebcdic _openssl_ascii2ebcdic
  20. extern const unsigned char os_toascii[256];
  21. extern const unsigned char os_toebcdic[256];
  22. void *ebcdic2ascii(void *dest, const void *srce, size_t count);
  23. void *ascii2ebcdic(void *dest, const void *srce, size_t count);
  24. #ifdef __cplusplus
  25. }
  26. #endif
  27. #endif