mirror of
https://git.tartarus.org/simon/putty.git
synced 2025-07-01 11:32:48 -05:00
Remove obsolete functions.
There are several old functions that the previous commits have removed all, or nearly all, of the references to. match_ssh_id is superseded by ptrlen_eq_string; get_ssh_{string,uint32} is yet another replicated set of decode functions (this time _partly_ centralised into misc.c); the old APIs for the SSH-1 RSA decode functions are gone (together with their last couple of holdout clients), as are ssh{1,2}_{read,write}_bignum and ssh{1,2}_bignum_length. Particularly odd was the use of ssh1_{read,write}_bignum in the SSH-2 Diffie-Hellman implementation. I'd completely forgotten I did that! Now replaced with a raw bignum_from_bytes, which is simpler anyway.
This commit is contained in:
@ -701,10 +701,13 @@ void run_client(void)
|
||||
FILE *fp = stdout; /* FIXME: add a -o option? */
|
||||
|
||||
if (key->ssh_version == 1) {
|
||||
BinarySource src[1];
|
||||
struct RSAKey rkey;
|
||||
|
||||
BinarySource_BARE_INIT(src, key->blob->u, key->blob->len);
|
||||
memset(&rkey, 0, sizeof(rkey));
|
||||
rkey.comment = dupstr(key->comment);
|
||||
rsa_ssh1_readpub(key->blob->u, key->blob->len, &rkey, NULL,
|
||||
get_rsa_ssh1_pub(src, &rkey, NULL,
|
||||
RSA_SSH1_EXPONENT_FIRST);
|
||||
ssh1_write_pubkey(fp, &rkey);
|
||||
freersakey(&rkey);
|
||||
|
Reference in New Issue
Block a user