diff options
author | Aris Adamantiadis <aris@0xbadc0de.be> | 2010-04-14 20:43:06 +0200 |
---|---|---|
committer | Aris Adamantiadis <aris@0xbadc0de.be> | 2010-04-14 21:11:29 +0200 |
commit | 250273cf1aa5d8391aeb68ac11b55a067cab1969 (patch) | |
tree | 5ad47192757c2e4e45ef0aa3e58995bddea40496 /include/libssh/wrapper.h | |
parent | bc15f7b7aa60f993e5fb138e1193a5dd72eddea9 (diff) | |
download | libssh-250273cf1aa5d8391aeb68ac11b55a067cab1969.tar.gz libssh-250273cf1aa5d8391aeb68ac11b55a067cab1969.tar.xz libssh-250273cf1aa5d8391aeb68ac11b55a067cab1969.zip |
Do not compile aes*-ctr with <=OpenSSL 0.9.7b
Diffstat (limited to 'include/libssh/wrapper.h')
-rw-r--r-- | include/libssh/wrapper.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/include/libssh/wrapper.h b/include/libssh/wrapper.h index 093f8b74..71ed81f4 100644 --- a/include/libssh/wrapper.h +++ b/include/libssh/wrapper.h @@ -70,6 +70,11 @@ typedef HMAC_CTX* HMACCTX; #define MD5_DIGEST_LEN MD5_DIGEST_LENGTH #include <openssl/bn.h> +#include <openssl/opensslv.h> +#define OPENSSL_0_9_7b 0x0090702fL +#if (OPENSSL_VERSION_NUMBER <= OPENSSL_0_9_7b) +#define BROKEN_AES_CTR +#endif typedef BIGNUM* bignum; typedef BN_CTX* bignum_CTX; |