Skip to content
Snippets Groups Projects
Commit 5ae7d191 authored by Alexandre Savard's avatar Alexandre Savard
Browse files

[#1722] Init _remoteMasterKey/_remoteMasterSalt

parent 2eec710b
No related branches found
No related tags found
No related merge requests found
......@@ -170,11 +170,21 @@ void AudioSrtpSession::unBase64ConcatenatedKeys(std::string base64keys)
char *output = decodeBase64((unsigned char*)dataptr, strlen(dataptr), &length);
printf("Master and Salt: ");
for (int i = 0; i<length; i++) {
for (int i = 0; i < length; i++) {
printf("%x ", output[i]);
}
printf("\n");
for (int i = 0; i < 16; i++) {
_remoteMasterKey[i] = output[i];
}
for (int i = 0; i < 14; i++) {
_remoteMasterSalt[i] = output[i+16];
}
free(output);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment