mirror of
https://git.tartarus.org/simon/putty.git
synced 2025-07-15 18:17:32 -05:00
Replace more (pointer, length) arg pairs with ptrlen.
The abstract method ssh_key_sign(), and the concrete functions ssh_rsakex_newkey() and rsa_ssh1_public_blob_len(), now each take a ptrlen argument in place of a separate pointer and length pair. Partly that's because I'm generally preferring ptrlens these days and it keeps argument lists short and tidy-looking, but mostly it's because it will make those functions easier to wrap in my upcoming test system.
This commit is contained in:
@ -537,7 +537,7 @@ void ssh2kex_coroutine(struct ssh2_transport_state *s, bool *aborted)
|
||||
|
||||
rsakeydata = get_string(pktin);
|
||||
|
||||
s->rsa_kex_key = ssh_rsakex_newkey(rsakeydata.ptr, rsakeydata.len);
|
||||
s->rsa_kex_key = ssh_rsakex_newkey(rsakeydata);
|
||||
if (!s->rsa_kex_key) {
|
||||
ssh_proto_error(s->ppl.ssh,
|
||||
"Unable to parse RSA public key packet");
|
||||
|
Reference in New Issue
Block a user