silc-client: handle prompt abort better silc.client.1.1.19 silc.client.1.1.9 silc.toolkit.1.1.11
authorPekka Riikonen <priikone@silcnet.org>
Tue, 6 May 2014 09:24:10 +0000 (12:24 +0300)
committerPekka Riikonen <priikone@silcnet.org>
Tue, 6 May 2014 09:24:10 +0000 (12:24 +0300)
commitb953803ae59ea3e66e3ed799b90dbb66a9002fce
tree1fe64884688b665b990f3152c7a9815e2355f1e9
parentbd463a75d37dd2ec164dc14dee4bb2550d6a778a
silc-client: handle prompt abort better

When verfying public key abort any previously ungoing prompt so that we
can get the public key verification prompt up.  It's important to not
loose the public key verification prompts so we now allow new prompt to
come up after previous one has aborted.  It leaks Irssi memory, but
handles things correctly towards silcclient library.  Irssi's prompt
handling is broken because it stores the data in a global variable
allowing only one prompt at a time.
apps/irssi/src/silc/core/client_ops.c
apps/irssi/src/silc/core/clientutil.c
lib/silcclient/client_prvmsg.c