[rtmpdump] r450 - trunk/librtmp/handshake.h

hyc subversion at mplayerhq.hu
Sun Apr 25 01:19:15 CEST 2010


Author: hyc
Date: Sun Apr 25 01:19:14 2010
New Revision: 450

Log:
More explicit OpenSSL check

Modified:
   trunk/librtmp/handshake.h

Modified: trunk/librtmp/handshake.h
==============================================================================
--- trunk/librtmp/handshake.h	Sun Apr 25 01:12:46 2010	(r449)
+++ trunk/librtmp/handshake.h	Sun Apr 25 01:19:14 2010	(r450)
@@ -43,8 +43,8 @@ typedef gcry_cipher_hd_t	RC4_handle;
 #include <openssl/sha.h>
 #include <openssl/hmac.h>
 #include <openssl/rc4.h>
-#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)


More information about the rtmpdump mailing list