· 6 years ago · Mar 05, 2019, 06:30 PM
1$ openssl version
2OpenSSL 1.1.0-pre3 (alpha) 15 Feb 2016
3
4$ make INC=-I/usr/local/include
5gcc -Wall -I/usr/local/include -DRTMPDUMP_VERSION="v2.4" -DUSE_OPENSSL -O2 -fPIC -c -o rtmp.o rtmp.c
6In file included from rtmp.c:152:
7./handshake.h:120:12: error: variable has incomplete type 'HMAC_CTX' (aka 'struct hmac_ctx_st')
8 HMAC_CTX ctx;
9 ^
10/usr/local/include/openssl/ossl_typ.h:145:16: note: forward declaration of 'struct hmac_ctx_st'
11typedef struct hmac_ctx_st HMAC_CTX;
12 ^
13In file included from rtmp.c:152:
14./handshake.h:125:3: warning: implicit declaration of function 'HMAC_CTX_init' is invalid in C99 [-Wimplicit-function-declaration]
15 HMAC_setup(ctx, secretKey, 128);
16 ^
17./handshake.h:72:35: note: expanded from macro 'HMAC_setup'
18#define HMAC_setup(ctx, key, len) HMAC_CTX_init(&ctx); HMAC_Init_ex(&ctx, key, len, EVP_sha256(), 0)
19 ^
20./handshake.h:127:3: warning: implicit declaration of function 'HMAC_CTX_cleanup' is invalid in C99 [-Wimplicit-function-declaration]
21 HMAC_finish(ctx, digest, digestLen);
22 ^
23./handshake.h:74:67: note: expanded from macro 'HMAC_finish'
24#define HMAC_finish(ctx, dig, dlen) HMAC_Final(&ctx, dig, &dlen); HMAC_CTX_cleanup(&ctx)
25 ^
26./handshake.h:269:12: error: variable has incomplete type 'HMAC_CTX' (aka 'struct hmac_ctx_st')
27 HMAC_CTX ctx;
28 ^
29/usr/local/include/openssl/ossl_typ.h:145:16: note: forward declaration of 'struct hmac_ctx_st'
30typedef struct hmac_ctx_st HMAC_CTX;
31 ^
32rtmp.c:192:13: warning: comparison of constant 18446744073709551597 with expression of type 'uint32_t' (aka 'unsigned int') is always false [-Wtautological-constant-out-of-range-compare]
33 if (nSize > SIZE_MAX - RTMP_MAX_HEADER_SIZE)
34 ~~~~~ ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
353 warnings and 2 errors generated.
36make[1]: *** [rtmp.o] Error 1
37make: *** [librtmp/librtmp.a] Error 2
38
39git clone git://git.openssl.org/openssl.git