Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
T
TLMSP curl
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
CYBER - Cyber Security
TS 103 523 MSP
TLMSP
TLMSP curl
Commits
6b68aa98
Commit
6b68aa98
authored
10 years ago
by
Daniel Stenberg
Browse files
Options
Downloads
Patches
Plain Diff
unit1600: NTLM unit test
parent
8f027aa0
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
tests/data/test1600
+27
-0
27 additions, 0 deletions
tests/data/test1600
tests/unit/.gitignore
+1
-0
1 addition, 0 deletions
tests/unit/.gitignore
tests/unit/Makefile.inc
+6
-2
6 additions, 2 deletions
tests/unit/Makefile.inc
tests/unit/unit1600.c
+50
-0
50 additions, 0 deletions
tests/unit/unit1600.c
with
84 additions
and
2 deletions
tests/data/test1600
0 → 100644
+
27
−
0
View file @
6b68aa98
<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 diff is collapsed.
Click to expand it.
tests/unit/.gitignore
+
1
−
0
View file @
6b68aa98
unit13[0-9][0-9]
unit1600
This diff is collapsed.
Click to expand it.
tests/unit/Makefile.inc
+
6
−
2
View file @
6b68aa98
...
...
@@ -5,8 +5,9 @@ UNITFILES = curlcheck.h \
../libtest/first.c
# These are all unit test programs
UNITPROGS
=
unit1300 unit1301 unit1302 unit1303 unit1304 unit1305 unit1307
\
unit1308 unit1309 unit1330 unit1394 unit1395 unit1396 unit1397 unit1398
UNITPROGS
=
unit1300 unit1301 unit1302 unit1303 unit1304 unit1305 unit1307
\
unit1308 unit1309 unit1330 unit1394 unit1395 unit1396 unit1397 unit1398
\
unit1600
unit1300_SOURCES
=
unit1300.c
$(
UNITFILES
)
unit1300_CPPFLAGS
=
$(
AM_CPPFLAGS
)
...
...
@@ -56,3 +57,6 @@ unit1397_CPPFLAGS = $(AM_CPPFLAGS)
unit1398_SOURCES
=
unit1398.c
$(
UNITFILES
)
unit1398_CPPFLAGS
=
$(
AM_CPPFLAGS
)
unit1600_SOURCES
=
unit1600.c
$(
UNITFILES
)
unit1600_CPPFLAGS
=
$(
AM_CPPFLAGS
)
This diff is collapsed.
Click to expand it.
tests/unit/unit1600.c
0 → 100644
+
50
−
0
View file @
6b68aa98
/***************************************************************************
* _ _ ____ _
* 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
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment