Fix reference counting for key exchange handling.
authorkp@valhallalegends.com <kp@valhallalegends.com>
Sat, 28 Jun 2008 05:28:25 +0000 (00:28 -0500)
committerKp <kp@valhallalegends.com>
Sat, 8 Nov 2008 23:03:52 +0000 (18:03 -0500)
commit111050c51338ea0da165048536fbb0dc7f500a0a
treec98504a14bbb5c5c8369398b8fc8d0490fa60eb0
parent711fe01f210030b40ce0aeceb1c18526632ba5b8
Fix reference counting for key exchange handling.

When a key exchange times out, the SKE can be freed before the user
responds.  Switch the SKE callbacks to obtain their own reference to the
object to prevent this.
lib/silcske/silcske.c
lib/silcske/silcske_i.h