X-Git-Url: http://andersk.mit.edu/gitweb/openssh.git/blobdiff_plain/0a23d79f380455baae5ea17991154f8356472aed..HEAD:/cipher-aes.c diff --git a/cipher-aes.c b/cipher-aes.c index 7ba95019..3ea59496 100644 --- a/cipher-aes.c +++ b/cipher-aes.c @@ -23,18 +23,22 @@ */ #include "includes.h" -#if OPENSSL_VERSION_NUMBER < 0x00907000L -RCSID("$OpenBSD: cipher-aes.c,v 1.1 2003/05/15 03:08:29 markus Exp $"); + +/* compatibility with old or broken OpenSSL versions */ +#include "openbsd-compat/openssl-compat.h" + +#ifdef USE_BUILTIN_RIJNDAEL +#include #include + +#include +#include + #include "rijndael.h" #include "xmalloc.h" #include "log.h" -#if OPENSSL_VERSION_NUMBER < 0x00906000L -#define SSH_OLD_EVP -#endif - #define RIJNDAEL_BLOCKSIZE 16 struct ssh_rijndael_ctx { @@ -157,4 +161,4 @@ evp_rijndael(void) #endif return (&rijndal_cbc); } -#endif /* OPENSSL_VERSION_NUMBER */ +#endif /* USE_BUILTIN_RIJNDAEL */