security: add is_ready flag to context
commit8cbb1650ba0e96c6394fb9cff61301a314cff728
authorStefan Becker <chemobejk@gmail.com>
Sat, 12 Nov 2011 23:12:28 +0000 (13 01:12 +0200)
committerStefan Becker <chemobejk@gmail.com>
Sat, 12 Nov 2011 23:12:28 +0000 (13 01:12 +0200)
tree1cf43e929dfdee2ce33637b3f6140280008f03c2
parent0b8b00f753dac9e700c37cd3383d7b40947be931
security: add is_ready flag to context

Authentication schemes, like TLS-DSK, that require longer handshake
sequences, can set this to FALSE to prevent message signature
calculation or verification while the authentication handshake is still
ongoing.

Update the necessary places in sip-transport.c to check this flag.

We now get a TLS-DSK server_hello message back from the server.
src/core/sip-sec-mech.h
src/core/sip-sec-tls-dsk.c
src/core/sip-sec.c
src/core/sip-sec.h
src/core/sip-transport.c