diff options
Diffstat (limited to 'include/libssh/libcrypto.h')
-rw-r--r-- | include/libssh/libcrypto.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/include/libssh/libcrypto.h b/include/libssh/libcrypto.h index 8ddeac9..acfa109 100644 --- a/include/libssh/libcrypto.h +++ b/include/libssh/libcrypto.h @@ -31,6 +31,10 @@ #include <openssl/sha.h> #include <openssl/md5.h> #include <openssl/hmac.h> +#ifdef HAVE_OPENSSL_ECC +#include <openssl/evp.h> +#endif + typedef SHA_CTX* SHACTX; typedef SHA256_CTX* SHA256CTX; typedef MD5_CTX* MD5CTX; @@ -42,6 +46,10 @@ typedef HMAC_CTX* HMACCTX; #endif #define MD5_DIGEST_LEN MD5_DIGEST_LENGTH +#ifdef HAVE_OPENSSL_ECC +#define EVP_DIGEST_LEN EVP_MAX_MD_SIZE +#endif + #include <openssl/bn.h> #include <openssl/opensslv.h> #define OPENSSL_0_9_7b 0x0090702fL |