|
|
|
@ -1348,7 +1348,9 @@ static void __generate_crypto(const struct sdp_ng_flags *flags, struct call_medi
|
|
|
|
MEDIA_CLEAR(this, SETUP_PASSIVE);
|
|
|
|
MEDIA_CLEAR(this, SETUP_PASSIVE);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
if (!MEDIA_ARESET2(this, DTLS, SDES) && flags->opmode == OP_OFFER) {
|
|
|
|
if (flags->opmode == OP_OFFER) {
|
|
|
|
|
|
|
|
// if neither is enabled yet...
|
|
|
|
|
|
|
|
if (!MEDIA_ISSET2(this, DTLS, SDES)) {
|
|
|
|
/* we offer both DTLS and SDES by default */
|
|
|
|
/* we offer both DTLS and SDES by default */
|
|
|
|
/* unless this is overridden by flags */
|
|
|
|
/* unless this is overridden by flags */
|
|
|
|
if (!flags->dtls_off)
|
|
|
|
if (!flags->dtls_off)
|
|
|
|
@ -1358,6 +1360,7 @@ static void __generate_crypto(const struct sdp_ng_flags *flags, struct call_medi
|
|
|
|
else
|
|
|
|
else
|
|
|
|
goto skip_sdes;
|
|
|
|
goto skip_sdes;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
else {
|
|
|
|
else {
|
|
|
|
/* if both SDES and DTLS are supported, we may use the flags to select one
|
|
|
|
/* if both SDES and DTLS are supported, we may use the flags to select one
|
|
|
|
* over the other */
|
|
|
|
* over the other */
|
|
|
|
|