diff options
author | David M. Lee <dlee@digium.com> | 2013-01-07 14:24:28 -0600 |
---|---|---|
committer | David M. Lee <dlee@digium.com> | 2013-01-07 14:24:28 -0600 |
commit | f3ab456a17af1c89a6e3be4d20c5944853df1cb0 (patch) | |
tree | d00e1a332cd038a6d906a1ea0ac91e1a4458e617 /tests/pjsua/scripts-sendto/323_srtp2_receive_too_long_key.py |
Import pjproject-2.0.1
Diffstat (limited to 'tests/pjsua/scripts-sendto/323_srtp2_receive_too_long_key.py')
-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 0000000..7536577 --- /dev/null +++ b/tests/pjsua/scripts-sendto/323_srtp2_receive_too_long_key.py @@ -0,0 +1,25 @@ +# $Id: 323_srtp2_receive_too_long_key.py 3193 2010-06-03 02:27:41Z nanang $ +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) + |