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

hyc subversion at mplayerhq.hu
Sun Apr 25 01:12:47 CEST 2010


Author: hyc
Date: Sun Apr 25 01:12:46 2010
New Revision: 449

Log:
Check OpenSSL version

Modified:
   trunk/librtmp/handshake.h

Modified: trunk/librtmp/handshake.h
==============================================================================
--- trunk/librtmp/handshake.h	Sat Apr 24 14:04:34 2010	(r448)
+++ trunk/librtmp/handshake.h	Sun Apr 25 01:12:46 2010	(r449)
@@ -43,6 +43,9 @@ 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
+#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)
 #define HMAC_finish(ctx, dig, dlen)	HMAC_Final(&ctx, dig, &dlen); HMAC_CTX_cleanup(&ctx)


More information about the rtmpdump mailing list