--- res/res_srtp.c (Asterisk 13.9.1) +++ res/res_srtp.c (working copy) @@ -42,3 +42,7 @@ #include +#ifdef HAVE_OPENSSL +#include +#else #include +#endif @@ -307,3 +311,7 @@ { +#ifdef HAVE_OPENSSL + return RAND_bytes(key, len) > 0 ? 0: -1; +#else return crypto_get_random(key, len) != err_status_ok ? -1: 0; +#endif }