diff options
author | Daniel Stenberg <daniel@haxx.se> | 2015-02-03 20:59:54 +0100 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2015-02-03 21:03:11 +0100 |
commit | 83bb07027db631b880acaf2240cc2cb2b73cf1bc (patch) | |
tree | 89ddbf9a4de9db13254723e9bcddadbf32bc910d /tests/unit/unit1600.c | |
parent | 6b68aa989c9d5f6c031e992f44e5ad792ab48994 (diff) | |
download | gnurl-83bb07027db631b880acaf2240cc2cb2b73cf1bc.tar.gz gnurl-83bb07027db631b880acaf2240cc2cb2b73cf1bc.tar.bz2 gnurl-83bb07027db631b880acaf2240cc2cb2b73cf1bc.zip |
unit1600: unit test for Curl_ntlm_core_mk_nt_hash
Diffstat (limited to 'tests/unit/unit1600.c')
-rw-r--r-- | tests/unit/unit1600.c | 15 |
1 files changed, 13 insertions, 2 deletions
diff --git a/tests/unit/unit1600.c b/tests/unit/unit1600.c index 3cc0ebd8e..6e14d20ef 100644 --- a/tests/unit/unit1600.c +++ b/tests/unit/unit1600.c @@ -44,7 +44,18 @@ UNITTEST_START Curl_ntlm_core_mk_nt_hash(easy, "1", output); verify_memory(testp, - "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" - "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00", 21); + "\x69\x94\x3c\x5e\x63\xb4\xd2\xc1\x04\xdb" + "\xbc\xc1\x51\x38\xb7\x2b\x00\x00\x00\x00\x00", 21); + + Curl_ntlm_core_mk_nt_hash(easy, "hello-you-fool", output); + + verify_memory(testp, + "\x39\xaf\x87\xa6\x75\x0a\x7a\x00\xba\xa0" + "\xd3\x4f\x04\x9e\xc1\xd0\x00\x00\x00\x00\x00", 21); + + Curl_ntlm_core_mk_nt_hash(easy, "AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA", output); + + verify_memory(testp, + "\x36\x9d\xae\x06\x84\x7e\xe1\xc1\x4a\x94\x39\xea\x6f\x44\x8c\x65\x00\x00\x00\x00\x00", 21); UNITTEST_STOP |