mirror of
https://git.tartarus.org/simon/putty.git
synced 2025-06-30 19:12:48 -05:00
Fix text name of hmac-sha1-96-buggy.
I carefully set up separate mechanisms for the "-96" suffix on the hash name and the "bug-compatible" in parens after it, so that the latter could share its parens with annotations from the underlying hash. And then I forgot to _use_ the second mechanism! Also added ssh2_mac_text_name to the testcrypt API so I could check it easily. The result before this fix: >>> ssh2_mac_text_name(ssh2_mac_new("hmac_sha1_96_buggy", None)) 'HMAC-SHA-1-96 (bug-compatible) (unaccelerated)' And after, which is what I intended all along: >>> ssh2_mac_text_name(ssh2_mac_new("hmac_sha1_96_buggy", None)) 'HMAC-SHA-1-96 (bug-compatible, unaccelerated)'
This commit is contained in:
@ -138,6 +138,7 @@ FUNC2(void, ssh2_mac_setkey, val_mac, val_string_ptrlen)
|
||||
FUNC1(void, ssh2_mac_start, val_mac)
|
||||
FUNC2(void, ssh2_mac_update, val_mac, val_string_ptrlen)
|
||||
FUNC1(val_string, ssh2_mac_genresult, val_mac)
|
||||
FUNC1(val_string_asciz_const, ssh2_mac_text_name, val_mac)
|
||||
|
||||
/*
|
||||
* The ssh_key abstraction. All the uses of BinarySink and
|
||||
|
Reference in New Issue
Block a user