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