323_srtp2_receive_too_long_key.py 579 B

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