]> git.ipfire.org Git - thirdparty/asterisk.git/commit
Randomize IAX2 encryption padding
authorDavid Vossel <dvossel@digium.com>
Mon, 16 Mar 2009 17:47:42 +0000 (17:47 +0000)
committerDavid Vossel <dvossel@digium.com>
Mon, 16 Mar 2009 17:47:42 +0000 (17:47 +0000)
commit3cbc42e2e458dac6ccc68e68ada7dfcb416fd111
treed2a0010e8baa583aee0463b7f99b590e5409cac1
parenta3769669b00e7b250abf39424e30455cd8b3ebba
Randomize IAX2 encryption padding

The 16-32 byte random padding at the beginning of an encrypted IAX2 frame turns out to not be all that random at all.  This patch calls ast_random to fill the padding buffer with random data.  The padding is randomized at the beginning of every encrypted call and for every encrypted retransmit frame.

Review: http://reviewboard.digium.com/r/193/

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@182281 65c4cc65-6c06-0410-ace0-fbb531ad65f3
channels/chan_iax2.c