From: hyc Date: Sat, 24 Apr 2010 23:12:46 +0000 (+0000) Subject: Check OpenSSL version X-Git-Tag: v2.4~99 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=8eafde102eb184dded55dacf36f989454f2db316;p=rtmpdump Check OpenSSL version git-svn-id: svn://svn.mplayerhq.hu/rtmpdump/trunk@449 400ebc74-4327-4243-bc38-086b20814532 --- diff --git a/librtmp/handshake.h b/librtmp/handshake.h index 52f74ff..df563c0 100644 --- a/librtmp/handshake.h +++ b/librtmp/handshake.h @@ -43,6 +43,9 @@ 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 +#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)