/* $Id: des_hack.h,v 1.1 1999/06/08 13:13:04 levitte Exp $ */

#ifndef DES_HACK_H
#define DES_HACK_H

/* This defines macros to be used in different situations */

#if !defined OPENSSL_VERSION_NUMBER
# if defined SSLEAY_VERSION_NUMBER
#  define des_cblock_arg(x) (&x)
#  define des_cblock_set_arg(x) (&x)
#  define des_cblock_ivec(x) (&x)
# else
#  error "Unsupported library."
# endif
#else
# if OPENSSL_VERSION_NUMBER <= 0x913
#  define des_cblock_arg(x) (&x)
#  define des_cblock_set_arg(x) (&x)
#  define des_cblock_ivec(x) (&x)
# elif OPENSSL_VERSION_NUMBER == 0x0922
#  define des_cblock_arg(x) (x)
#  define des_cblock_set_arg(x) (x)
#  define des_cblock_ivec(x) (x)
# elif OPENSSL_VERSION_NUMBER <= 0x0923
#  define des_cblock_arg(x) (x)
#  define des_cblock_set_arg(x) (x)
#  define des_cblock_ivec(x) (x)
# else
#  define des_cblock_arg(x) (x)
#  define des_cblock_set_arg(x) (&x)
#  define des_cblock_ivec(x) (&x)
# endif
#endif

#endif
