Debian Codegraph @

Xpjproject/tests/pjsua/scripts-sendto/323_srtp2_receive_too_long_key.py

raw symbols SCIP
1 import inc_sip as sip
2 import inc_sdp as sdp
3
4 # Too long key should be rejected
5 sdp = \
6 """
7 v=0
8 o=- 0 0 IN IP4 127.0.0.1
9 s=-
10 c=IN IP4 127.0.0.1
11 t=0 0
12 m=audio 5000 RTP/SAVP 0
13 a=crypto:1 aes_cm_128_hmac_sha1_80 inline:WnD7c1ksDGs+dIefCEo8omPg4uO8DYIinNGL5yxQWnD7c1ksDGs+dIefCEo8omPg4uO8DYIinNGL5yxQ
14 """
15
16 pjsua_args = "--null-audio --auto-answer 200 --use-srtp 2 --srtp-secure 0"
17 extra_headers = ""
18 include = []
19 exclude = []
20
21 sendto_cfg = sip.SendtoCfg("SRTP receive too long key", pjsua_args, sdp, 406,
22 extra_headers=extra_headers,
23 resp_inc=include, resp_exc=exclude)
24