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:
@ -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)
|
||||
{
|
||||
|
Reference in New Issue
Block a user