mirror of
https://git.tartarus.org/simon/putty.git
synced 2025-06-30 19:12:48 -05:00
New marshalling function put_datapl().
Just like put_data(), but takes a ptrlen rather than separate ptr and len arguments, so it saves a bit of repetition at call sites. I probably should have written this ages ago, but better late than never; I've also converted every call site I can find that needed it.
This commit is contained in:
2
import.c
2
import.c
@ -905,7 +905,7 @@ static bool openssh_pem_write(
|
||||
seq = strbuf_new();
|
||||
for (i = 0; i < nnumbers; i++) {
|
||||
put_ber_id_len(seq, 2, numbers[i].len, 0);
|
||||
put_data(seq, numbers[i].ptr, numbers[i].len);
|
||||
put_datapl(seq, numbers[i]);
|
||||
}
|
||||
put_ber_id_len(outblob, 16, seq->len, ASN1_CONSTRUCTED);
|
||||
put_data(outblob, seq->s, seq->len);
|
||||
|
Reference in New Issue
Block a user