diff options
-rw-r--r-- | tests/pjsua/scripts-sendto/323_srtp2_receive_too_long_key.py | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/tests/pjsua/scripts-sendto/323_srtp2_receive_too_long_key.py b/tests/pjsua/scripts-sendto/323_srtp2_receive_too_long_key.py new file mode 100644 index 00000000..cf8bf487 --- /dev/null +++ b/tests/pjsua/scripts-sendto/323_srtp2_receive_too_long_key.py @@ -0,0 +1,25 @@ +# $Id$ +import inc_sip as sip +import inc_sdp as sdp + +# Too long key should be rejected +sdp = \ +""" +v=0 +o=- 0 0 IN IP4 127.0.0.1 +s=- +c=IN IP4 127.0.0.1 +t=0 0 +m=audio 5000 RTP/SAVP 0 +a=crypto:1 aes_cm_128_hmac_sha1_80 inline:WnD7c1ksDGs+dIefCEo8omPg4uO8DYIinNGL5yxQWnD7c1ksDGs+dIefCEo8omPg4uO8DYIinNGL5yxQ +""" + +pjsua_args = "--null-audio --auto-answer 200 --use-srtp 2 --srtp-secure 0" +extra_headers = "" +include = [] +exclude = [] + +sendto_cfg = sip.SendtoCfg("SRTP receive too long key", pjsua_args, sdp, 406, + extra_headers=extra_headers, + resp_inc=include, resp_exc=exclude) + |