deprecate key_load_private_pem() and sshkey_load_private_pem()
authordjm <djm@openbsd.org>
Thu, 8 Jan 2015 10:14:08 +0000 (10:14 +0000)
committerdjm <djm@openbsd.org>
Thu, 8 Jan 2015 10:14:08 +0000 (10:14 +0000)
commit03b8b3798bf495099c640d9f1e9556e36f0a419b
tree46dea2945fe52eeb7ade6c425e20b0aeb823a0e6
parentd7eb808d4fc126376b736e2d980a2948e193d35b
deprecate key_load_private_pem() and sshkey_load_private_pem()
interfaces. Refactor the generic key loading API to not require
pathnames to be specified (they weren't really used).

Fixes a few other things en passant:

Makes ed25519 keys work for hostbased authentication (ssh-keysign
previously used the PEM-only routines).

Fixes key comment regression bz#2306: key pathnames were being lost as
comment fields.

ok markus@
usr.bin/ssh/auth2-hostbased.c
usr.bin/ssh/authfile.c
usr.bin/ssh/authfile.h
usr.bin/ssh/key.c
usr.bin/ssh/key.h
usr.bin/ssh/krl.c
usr.bin/ssh/ssh-keysign.c
usr.bin/ssh/sshconnect2.c
usr.bin/ssh/sshkey.c
usr.bin/ssh/sshkey.h