Commit 1211a897 authored by Sylvain Berfini's avatar Sylvain Berfini 🎩

Fix compilation issue

parent 5429d344
......@@ -487,7 +487,7 @@ void setup_media_streams(MediastreamDatas* args) {
// -> input : 40 b64 encoded bytes
if (!args->srtp_local_master_key) {
uint8_t tmp[30];
crypto_get_random(tmp, 30);
ortp_crypto_get_random(tmp, 30);
args->srtp_local_master_key = (char*) malloc(41);
b64_encode((const char*)tmp, 30, args->srtp_local_master_key, 40);
args->srtp_local_master_key[40] = '\0';
......@@ -495,7 +495,7 @@ void setup_media_streams(MediastreamDatas* args) {
}
if (!args->srtp_remote_master_key) {
uint8_t tmp[30];
crypto_get_random(tmp, 30);
ortp_crypto_get_random(tmp, 30);
args->srtp_remote_master_key = (char*) malloc(41);
b64_encode((const char*)tmp, 30, args->srtp_remote_master_key, 40);
args->srtp_remote_master_key[40] = '\0';
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment