From bf6ebf1d257d3b96ea09ca0c8dbe53e8b3712aea Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Love=20H=C3=B6rnquist=20=C3=85strand?= Date: Fri, 28 Dec 2007 16:16:39 +0000 Subject: [PATCH] Check result of heim_ntlm_decode_type3(). git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@22371 ec53bebd-3082-4978-b11e-865c3cabbd6b --- lib/ntlm/test_ntlm.c | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/lib/ntlm/test_ntlm.c b/lib/ntlm/test_ntlm.c index 326b27844..6f8c78096 100644 --- a/lib/ntlm/test_ntlm.c +++ b/lib/ntlm/test_ntlm.c @@ -139,6 +139,16 @@ test_parse(void) if (ret) errx(1, "heim_ntlm_decode_type3"); + if (strcmp("workstation", type3.ws) != 0) + errx(1, "type3 ws wrong"); + + if (strcmp(rk_UNCONST(target), type3.targetname) != 0) + errx(1, "type3 targetname wrong"); + + if (strcmp(rk_UNCONST(user), type3.username) != 0) + errx(1, "type3 username wrong"); + + heim_ntlm_free_type3(&type3); /*