Browse Source

match the peer's crypto suite if possible

git.mgm/mediaproxy-ng/github/master
Richard Fuchs 13 years ago
parent
commit
70e6be3bf4
1 changed files with 3 additions and 1 deletions
  1. +3
    -1
      daemon/sdp.c

+ 3
- 1
daemon/sdp.c View File

@ -1272,7 +1272,9 @@ static int generate_crypto(struct sdp_media *media, struct sdp_ng_flags *flags,
/* write-once, read-only */ /* write-once, read-only */
c = &rtp->peer.crypto.out; c = &rtp->peer.crypto.out;
if (!c->crypto_suite) { if (!c->crypto_suite) {
c->crypto_suite = &crypto_suites[0];
c->crypto_suite = rtp->peer.crypto.in.crypto_suite;
if (!c->crypto_suite)
c->crypto_suite = &crypto_suites[0];
random_string((unsigned char *) c->master_key, random_string((unsigned char *) c->master_key,
c->crypto_suite->master_key_len / 8); c->crypto_suite->master_key_len / 8);
random_string((unsigned char *) c->master_salt, random_string((unsigned char *) c->master_salt,


Loading…
Cancel
Save