Browse Source

relax sdes key lifetime validation check

fixes #57
pull/69/head
Richard Fuchs 11 years ago
parent
commit
a0068f4f02
2 changed files with 5 additions and 1 deletions
  1. +1
    -0
      daemon/Makefile
  2. +4
    -1
      daemon/sdp.c

+ 1
- 0
daemon/Makefile View File

@ -33,6 +33,7 @@ CFLAGS+= -DMP_PLUGIN_DIR="\"/usr/lib/rtpengine\""
#CFLAGS+= -DSRTCP_KEY_DERIVATION_RFC_COMPLIANCE
#CFLAGS+= -DTERMINATE_SDP_AT_BLANK_LINE
#CFLAGS+= -DSTRICT_SDES_KEY_LIFETIME
ifeq ($(DBG),yes)
CFLAGS+= -D__DEBUG=1


+ 4
- 1
daemon/sdp.c View File

@ -495,7 +495,10 @@ static int parse_attribute_crypto(struct sdp_attribute *output) {
err = "invalid key lifetime";
if (!c->lifetime || c->lifetime > c->crypto_suite->srtp_lifetime
|| c->lifetime > c->crypto_suite->srtcp_lifetime)
#ifdef STRICT_SDES_KEY_LIFETIME
|| c->lifetime > c->crypto_suite->srtcp_lifetime
#endif
)
goto error;
}


Loading…
Cancel
Save