1
0
mirror of https://git.tartarus.org/simon/putty.git synced 2025-07-01 03:22:48 -05:00

New utility functions to make ptrlens.

One to make one from a NUL-terminated string, and another to make one
from a strbuf. I've switched over all the obvious cases where I should
have been using these functions.
This commit is contained in:
Simon Tatham
2018-10-13 16:30:59 +01:00
parent b9bfc81531
commit 56096ba558
5 changed files with 18 additions and 6 deletions

View File

@ -816,7 +816,7 @@ int main(int argc, char **argv)
const ssh_keyalg *alg = find_pubkey_alg(ssh2alg);
if (alg)
bits = ssh_key_public_bits(
alg, make_ptrlen(ssh2blob->s, ssh2blob->len));
alg, ptrlen_from_strbuf(ssh2blob));
else
bits = -1;
} else {