1
1
ntlmclient
2
2
==========
3
- ![ CI] ( https://github.com/ethomson/ntlmclient/workflows/CI/badge.svg ) ![ Coverity Build Status] ( https://scan.coverity.com/projects/15510/badge.svg?flat=1 )
3
+ [ ![ CI] ( https://github.com/ethomson/ntlmclient/workflows/CI/badge.svg )] ( https://github.com/ethomson/ntlmclient/actions?query=workflow%3ACI ) [ ![ Coverity Build Status] ( https://scan.coverity.com/projects/15510/badge.svg?flat=1 )] ( https://scan.coverity.com/projects/15510 )
4
4
5
5
ntlmclient is a pure C library that supports NTLM2 authentication for
6
6
POSIX systems. It is generally used to support authentication to
@@ -74,7 +74,7 @@ usage example is:
74
74
accept the defaults.
75
75
76
76
77
- ```
77
+ ``` c
78
78
ntlm_client *ntlm;
79
79
80
80
/* Create an NTLM client context, using the default options. This
@@ -93,7 +93,7 @@ usage example is:
93
93
94
94
(Functions return `0` on success and non-zero on error.)
95
95
96
- ```
96
+ ```c
97
97
if (ntlm_client_set_hostname(ntlm, "hostname", "DOMAIN") != 0 ||
98
98
ntlm_client_set_credentials(ntlm, "user", "DOMAIN", "secret") != 0) {
99
99
ntlm_client_set_target(ntlm, "SERVER") != 0) {
@@ -105,7 +105,7 @@ usage example is:
105
105
106
106
3 . Compute the negotiate message and deliver it to the server.
107
107
108
- ```
108
+ ``` c
109
109
const unsigned char *negotiate_msg;
110
110
size_t negotiate_len;
111
111
@@ -119,7 +119,7 @@ usage example is:
119
119
120
120
4. Read the challenge message from the server, provide it to the library.
121
121
122
- ```
122
+ ```c
123
123
/*
124
124
* Read the NTLM challenge message from the remote host. For HTTP,
125
125
* this will be in the `Authorization` header, following the SPNEGO
0 commit comments