summaryrefslogtreecommitdiff
path: root/tests/pjsua/scripts-sendto/323_srtp2_receive_too_long_key.py
blob: cf8bf487aa686cae474a845c522f744a2981a36e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
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)