]> asedeno.scripts.mit.edu Git - PuTTY.git/commit
Support loading public-key-only files in Unix PuTTYgen.
authorSimon Tatham <anakin@pobox.com>
Tue, 12 May 2015 11:19:57 +0000 (12:19 +0100)
committerSimon Tatham <anakin@pobox.com>
Tue, 12 May 2015 11:19:57 +0000 (12:19 +0100)
commit3935cc3af1e8ff7685142e2060019dd67ffa5bd6
tree0e729b47d188c1a8ce9097bff77000a7fafed663
parent9971da40c3d45850eccde0fbfc038c0c9faef500
Support loading public-key-only files in Unix PuTTYgen.

The rsakey_pubblob() and ssh2_userkey_loadpub() functions, which
expected to be given a private key file and load only the unencrypted
public half, now also cope with any of the public-only formats I know
about (SSH-1 only has one, whereas SSH-2 has the RFC 4716 format and
OpenSSH's one-line format) and return an appropriate public key blob
from each of those too.

cmdgen now supports this functionality, by permitting public key files
to be loaded and used by any operation that doesn't need the private
key: so you can convert back and forth between the SSH-2 public
formats, or list the file's fingerprint.
cmdgen.c
ssh.h
sshpubk.c