diff options
author | Andreas Schneider <asn@cryptomilk.org> | 2016-11-08 10:31:20 +0100 |
---|---|---|
committer | Andreas Schneider <asn@cryptomilk.org> | 2016-11-08 10:31:20 +0100 |
commit | 2f6a8663731668649499142460f648c687c0f5d3 (patch) | |
tree | 22db0dd2f3c7c97f5977ce596c008122ec88f7aa /src/libcrypto-compat.c | |
parent | f8ef200e7653f1124961659733a9f5d030351d93 (diff) | |
download | libssh-2f6a8663731668649499142460f648c687c0f5d3.tar.gz libssh-2f6a8663731668649499142460f648c687c0f5d3.tar.xz libssh-2f6a8663731668649499142460f648c687c0f5d3.zip |
cmake: Only build libcrypto and libcrypto-compat when needed
This also fixes the gcrypt build.
Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
Diffstat (limited to 'src/libcrypto-compat.c')
-rw-r--r-- | src/libcrypto-compat.c | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/src/libcrypto-compat.c b/src/libcrypto-compat.c index 1f27dd5f..e0c95ff2 100644 --- a/src/libcrypto-compat.c +++ b/src/libcrypto-compat.c @@ -7,9 +7,6 @@ * https://www.openssl.org/source/license.html */ -#include <openssl/opensslv.h> -#if OPENSSL_VERSION_NUMBER < 0x10100000L - #include <string.h> #include <openssl/engine.h> #include "libcrypto-compat.h" @@ -329,7 +326,3 @@ void EVP_CIPHER_CTX_free(EVP_CIPHER_CTX *ctx) EVP_CIPHER_CTX_init(ctx); OPENSSL_free(ctx); } - -#else -typedef int iso_c_forbids_an_empty_source_file; -#endif /* OPENSSL_VERSION_NUMBER */ |