On Tue, May 18, 1999 at 05:19:01PM +0200, Ulf Möller wrote:

>> #if OPENSSL_VERSION >= 0x00904000
> 
> In that case I would just test for the release version number
> OPENSSL_VERSION >= 0x000904100, ignoring that the feature already is
> present in some of the development versions.
> 
> But we're talking about a change that breaks existing code here, not
> about new features. 

#if !defined OPENSSL_VERSION_NUMBER
# if defined SSLEAY_VERSION_NUMBER
#  define des_cblock_arg(x) (&x)
# else
#  error "Unsupported library."
# endif
#else
# if OPENSSL_VERSION_NUMBER <= 0x0x913 || OPENSSL_VERSION_NUMBER > 0x0923
#  define des_cblock_arg(x) (&x)
# else
#  if OPENSSL_VERSION_NUMBER == 0x0922
#   define des_cblock_arg(x) (x)
#  else
#   define des_cblock_arg(x) ((void *)x)
#  endif
# endif
#endif

  des_cblock key = {'*', 's', 'e', 'c', 'r', 'e', 't', '*'};
  des_key_schedule sch;
  des_set_key(des_cblock_arg(key), sch);
______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
Development Mailing List                       [EMAIL PROTECTED]
Automated List Manager                           [EMAIL PROTECTED]

Reply via email to