Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
84 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
<testcase> | ||
<info> | ||
<keywords> | ||
unittest | ||
NTLM | ||
</keywords> | ||
</info> | ||
|
||
# | ||
# Client-side | ||
<client> | ||
<server> | ||
none | ||
</server> | ||
<features> | ||
unittest | ||
NTLM | ||
</features> | ||
<name> | ||
NTLM unit tests | ||
</name> | ||
<tool> | ||
unit1600 | ||
</tool> | ||
</client> | ||
|
||
</testcase> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,2 @@ | ||
unit13[0-9][0-9] | ||
unit1600 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
/*************************************************************************** | ||
* _ _ ____ _ | ||
* Project ___| | | | _ \| | | ||
* / __| | | | |_) | | | ||
* | (__| |_| | _ <| |___ | ||
* \___|\___/|_| \_\_____| | ||
* | ||
* Copyright (C) 1998 - 2015, Daniel Stenberg, <daniel@haxx.se>, et al. | ||
* | ||
* This software is licensed as described in the file COPYING, which | ||
* you should have received as part of this distribution. The terms | ||
* are also available at http://curl.haxx.se/docs/copyright.html. | ||
* | ||
* You may opt to use, copy, modify, merge, publish, distribute and/or sell | ||
* copies of the Software, and permit persons to whom the Software is | ||
* furnished to do so, under the terms of the COPYING file. | ||
* | ||
* This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY | ||
* KIND, either express or implied. | ||
* | ||
***************************************************************************/ | ||
#include "curlcheck.h" | ||
|
||
#include "urldata.h" | ||
#include "curl_ntlm_core.h" | ||
|
||
CURL *easy; | ||
|
||
static CURLcode unit_setup(void) | ||
{ | ||
easy = curl_easy_init(); | ||
return CURLE_OK; | ||
} | ||
|
||
static void unit_stop(void) | ||
{ | ||
curl_easy_cleanup(easy); | ||
} | ||
|
||
UNITTEST_START | ||
|
||
unsigned char output[21]; | ||
unsigned char *testp = output; | ||
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); | ||
|
||
UNITTEST_STOP |