1
0
mirror of https://git.tartarus.org/simon/putty.git synced 2025-07-05 21:42:47 -05:00

testcrypt: allow ssh_key constructors to fail.

If key decoding or verification fails, those functions can return
NULL. Recognise that in the testcrypt API, so that I can test them.
This commit is contained in:
Simon Tatham
2019-04-28 09:59:28 +01:00
parent 4d0c2ca90f
commit e9e800c773
2 changed files with 3 additions and 2 deletions

View File

@ -515,6 +515,7 @@ static void return_val_string_asciz(strbuf *out, char *s)
NULLABLE_RETURN_WRAPPER(val_string_asciz, char *)
NULLABLE_RETURN_WRAPPER(val_cipher, ssh_cipher *)
NULLABLE_RETURN_WRAPPER(val_hash, ssh_hash *)
NULLABLE_RETURN_WRAPPER(val_key, ssh_key *)
static void handle_hello(BinarySource *in, strbuf *out)
{