mirror of
https://github.com/asterisk/asterisk.git
synced 2025-11-01 03:04:19 +00:00
res_rtp_asterisk: Correction for the limit which detects that a packet is DTLS.
First byte of DTLS packet shall be in range 20-63, not 20-64. Refer to RFC https://tools.ietf.org/html/rfc5764#section-5.1.2 for correct values. Change-Id: Iae6fa0d72b37c36a27fe40686e0ae6fba3afec31
This commit is contained in:
@@ -2016,8 +2016,9 @@ static int __rtp_recvfrom(struct ast_rtp_instance *instance, void *buf, size_t s
|
|||||||
#ifdef HAVE_OPENSSL_SRTP
|
#ifdef HAVE_OPENSSL_SRTP
|
||||||
dtls_srtp_check_pending(instance, rtp, rtcp);
|
dtls_srtp_check_pending(instance, rtp, rtcp);
|
||||||
|
|
||||||
/* If this is an SSL packet pass it to OpenSSL for processing */
|
/* If this is an SSL packet pass it to OpenSSL for processing. RFC section for first byte value:
|
||||||
if ((*in >= 20) && (*in <= 64)) {
|
* https://tools.ietf.org/html/rfc5764#section-5.1.2 */
|
||||||
|
if ((*in >= 20) && (*in <= 63)) {
|
||||||
struct dtls_details *dtls = !rtcp ? &rtp->dtls : &rtp->rtcp->dtls;
|
struct dtls_details *dtls = !rtcp ? &rtp->dtls : &rtp->rtcp->dtls;
|
||||||
int res = 0;
|
int res = 0;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user