CVSROOT:        /cvs
Module name:    src
Changes by:     d...@cvs.openbsd.org    2020/12/20 16:36:51

Modified files:
        usr.bin/ssh    : sshconnect2.c sshconnect.c ssh-keygen.c 
                         hostfile.h clientloop.c hostfile.c auth.c 

Log message:
load_hostkeys()/hostkeys_foreach() variants for FILE*

Add load_hostkeys_file() and hostkeys_foreach_file() that accept a
FILE* argument instead of opening the file directly.

Original load_hostkeys() and hostkeys_foreach() are implemented using
these new interfaces.

Add a u_int note field to the hostkey_entry and hostkey_foreach_line
structs that is passed directly from the load_hostkeys() and
hostkeys_foreach() call. This is a lightweight way to annotate results
between different invocations of load_hostkeys().

ok markus@

Reply via email to