From: hyc Date: Sat, 24 Apr 2010 23:19:14 +0000 (+0000) Subject: More explicit OpenSSL check X-Git-Tag: v2.4~98 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=d05cd7e313cc7a627594fe488c11646d71e03e06;p=rtmpdump More explicit OpenSSL check git-svn-id: svn://svn.mplayerhq.hu/rtmpdump/trunk@450 400ebc74-4327-4243-bc38-086b20814532 --- diff --git a/librtmp/handshake.h b/librtmp/handshake.h index df563c0..93b6f16 100644 --- a/librtmp/handshake.h +++ b/librtmp/handshake.h @@ -43,8 +43,8 @@ typedef gcry_cipher_hd_t RC4_handle; #include #include #include -#if OPENSSL_VERSION_NUMBER < 0x0090800 -#error Your OpenSSL installation is too old, need 0.9.8 or newer +#if OPENSSL_VERSION_NUMBER < 0x0090800 || !defined(SHA256_DIGEST_LENGTH) +#error Your OpenSSL is too old, need 0.9.8 or newer with SHA256 #endif #define HMAC_setup(ctx, key, len) HMAC_CTX_init(&ctx); HMAC_Init_ex(&ctx, key, len, EVP_sha256(), 0) #define HMAC_crunch(ctx, buf, len) HMAC_Update(&ctx, buf, len)