From 216cb8b1aa86d6fd5cf8db38938e70d5986403cd Mon Sep 17 00:00:00 2001 From: Andreas Schneider Date: Sat, 4 Feb 2012 23:37:25 +0100 Subject: crypto: Add evp hashing function. --- include/libssh/libcrypto.h | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'include/libssh/libcrypto.h') 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 #include #include +#ifdef HAVE_OPENSSL_ECC +#include +#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 #include #define OPENSSL_0_9_7b 0x0090702fL -- cgit