Revamp interface to verify_ssh_host_key() and askalg(). Each of them
authorsimon <simon@cda61777-01e9-0310-a592-d414129be87e>
Thu, 17 Feb 2005 18:34:24 +0000 (18:34 +0000)
committersimon <simon@cda61777-01e9-0310-a592-d414129be87e>
Thu, 17 Feb 2005 18:34:24 +0000 (18:34 +0000)
commit3d9449a111194530856126f3dc89543d83fa0440
tree6eb81ecd7bb04dc8178472e20eeabd79e2fc3429
parentf8c9f9df8c6d537b3db60823b5920d78705b929b
Revamp interface to verify_ssh_host_key() and askalg(). Each of them
now returns an integer: 0 means cancel the SSH connection and 1
means continue with it. Additionally, they can return -1, which
means `front end has set an asynchronous alert box in motion, please
wait to be called back with the result', and each one is passed a
callback function pointer and context for this purpose.

I have not yet done the same to askappend() yet, because it will
take a certain amount of reorganisation of logging.c.

Importantly, this checkin means the host key dialog box now works on
OS X.

git-svn-id: svn://svn.tartarus.org/sgt/putty@5330 cda61777-01e9-0310-a592-d414129be87e
mac/mac.c
macosx/README.OSX
macosx/osxclass.h
macosx/osxdlg.m
macosx/osxwin.m
putty.h
ssh.c
unix/gtkdlg.c
unix/uxcons.c
windows/wincons.c
windows/windlg.c