diff options
author | Marvin W <git@larma.de> | 2021-11-09 22:06:21 +0100 |
---|---|---|
committer | fiaxh <git@lightrise.org> | 2021-11-10 11:05:34 +0100 |
commit | 4c56a8430333d53f4aa465f5cb7530f467599323 (patch) | |
tree | 7f649b26531ff17fb0c6474a953aa3d60ad2dbcb /crypto-vala/src | |
parent | 3dc4d7f1558bb574eb99dade9a05727604e2e2ca (diff) | |
download | dino-4c56a8430333d53f4aa465f5cb7530f467599323.tar.gz dino-4c56a8430333d53f4aa465f5cb7530f467599323.zip |
Fix usage of libsrtp2
Diffstat (limited to 'crypto-vala/src')
-rw-r--r-- | crypto-vala/src/srtp.vala | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/crypto-vala/src/srtp.vala b/crypto-vala/src/srtp.vala index c7f45da3..882a8edc 100644 --- a/crypto-vala/src/srtp.vala +++ b/crypto-vala/src/srtp.vala @@ -81,7 +81,7 @@ public class Session { case ErrorStatus.ok: break; default: - throw new Error.UNKNOWN(@"SRTP decrypt failed: $res"); + throw new Error.UNKNOWN(@"SRTCP decrypt failed: $res"); } uint8[] ret = new uint8[buf_use]; GLib.Memory.copy(ret, buf, buf_use); @@ -105,6 +105,7 @@ public class Session { policy.key = new uint8[key.length + salt.length]; Memory.copy(policy.key, key, key.length); Memory.copy(((uint8*)policy.key) + key.length, salt, salt.length); + policy.next = null; encrypt_context.add_stream(ref policy); has_encrypt = true; } @@ -115,6 +116,7 @@ public class Session { policy.key = new uint8[key.length + salt.length]; Memory.copy(policy.key, key, key.length); Memory.copy(((uint8*)policy.key) + key.length, salt, salt.length); + policy.next = null; decrypt_context.add_stream(ref policy); has_decrypt = true; } |