diff options
author | fiaxh <git@lightrise.org> | 2021-04-29 15:56:22 +0200 |
---|---|---|
committer | fiaxh <git@lightrise.org> | 2021-05-01 21:51:24 +0200 |
commit | 7d2e64769067c1b47e0500f6456dd7e6f4eb435a (patch) | |
tree | 0405bd7728c57928bb3c202f684ae85bb7494ffc /plugins/rtp/src/module.vala | |
parent | 0409f554268c0e8f24e23e471a94de4d3a035ff1 (diff) | |
download | dino-7d2e64769067c1b47e0500f6456dd7e6f4eb435a.tar.gz dino-7d2e64769067c1b47e0500f6456dd7e6f4eb435a.zip |
Improve call wording, cleanup
Diffstat (limited to 'plugins/rtp/src/module.vala')
-rw-r--r-- | plugins/rtp/src/module.vala | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/plugins/rtp/src/module.vala b/plugins/rtp/src/module.vala index 13a21cd8..19a7501d 100644 --- a/plugins/rtp/src/module.vala +++ b/plugins/rtp/src/module.vala @@ -216,9 +216,9 @@ public class Dino.Plugins.Rtp.Module : JingleRtp.Module { } public override JingleRtp.Crypto? generate_local_crypto() { - uint8[] keyAndSalt = new uint8[30]; - Crypto.randomize(keyAndSalt); - return JingleRtp.Crypto.create(JingleRtp.Crypto.AES_CM_128_HMAC_SHA1_80, keyAndSalt); + uint8[] key_and_salt = new uint8[30]; + Crypto.randomize(key_and_salt); + return JingleRtp.Crypto.create(JingleRtp.Crypto.AES_CM_128_HMAC_SHA1_80, key_and_salt); } public override JingleRtp.Crypto? pick_remote_crypto(Gee.List<JingleRtp.Crypto> cryptos) { @@ -230,8 +230,8 @@ public class Dino.Plugins.Rtp.Module : JingleRtp.Module { public override JingleRtp.Crypto? pick_local_crypto(JingleRtp.Crypto? remote) { if (remote == null || !remote.is_valid) return null; - uint8[] keyAndSalt = new uint8[30]; - Crypto.randomize(keyAndSalt); - return remote.rekey(keyAndSalt); + uint8[] key_and_salt = new uint8[30]; + Crypto.randomize(key_and_salt); + return remote.rekey(key_and_salt); } }
\ No newline at end of file |