]> git.ipfire.org Git - thirdparty/freeswitch.git/commit
FS-11659 [core] Fix implicit declaration of RAND_bytes
authorSebastian Kemper <sebastian_ml@gmx.net>
Fri, 15 Feb 2019 21:06:11 +0000 (22:06 +0100)
committerSebastian Kemper <sebastian_ml@gmx.net>
Fri, 15 Feb 2019 21:06:14 +0000 (22:06 +0100)
commitc447f856fbd5353e27c467c3af3842c570c1cbe7
treec7c8c0b97431dd42aa95ccc7bfdbd7c624b99fef
parent7e67dc3c4d2ebf07cee16990e880a994068d99a8
FS-11659 [core] Fix implicit declaration of RAND_bytes

Since the update to openssl-1.1.1a the compile fails like this:

  CC       src/libfreeswitch_la-switch_rtp.lo
src/switch_rtp.c: In function 'switch_rtp_get_random':
src/switch_rtp.c:2419:2: error: implicit declaration of function 'RAND_bytes'; did you mean 'RSA_bits'? [-Werror=implicit-function-declaration]
  RAND_bytes(buf, len);
  ^~~~~~~~~~
  RSA_bits
cc1: all warnings being treated as errors
make[4]: *** [Makefile:2377: src/libfreeswitch_la-switch_rtp.lo] Error 1

This patch adds the missing include.

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
src/include/switch_ssl.h