annotate src/lib-ntlm/ntlm-encrypt.h @ 14629:c93ca5e46a8a

Marked functions parameters that are allowed to be NULL. Some APIs were also changed. The non-obvious APIs where NULL parameter was changed to "" are master_service_init() and auth_master_user_list_init(). These checks can currently be enabled only on a patched clang: http://llvm.org/bugs/show_bug.cgi?id=6786
author Timo Sirainen <tss@iki.fi>
date Sun, 24 Jun 2012 00:52:57 +0300
parents e4eb71ae8e96
children d0d7b810646b
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
6410
e4eb71ae8e96 Changed .h ifdef/defines to use <NAME>_H format.
Timo Sirainen <tss@iki.fi>
parents: 2692
diff changeset
1 #ifndef NTLM_ENCRYPT_H
e4eb71ae8e96 Changed .h ifdef/defines to use <NAME>_H format.
Timo Sirainen <tss@iki.fi>
parents: 2692
diff changeset
2 #define NTLM_ENCRYPT_H
2377
8f5be0be3199 NTLM authentication. Patch by Andrey Panin
Timo Sirainen <tss@iki.fi>
parents:
diff changeset
3
8f5be0be3199 NTLM authentication. Patch by Andrey Panin
Timo Sirainen <tss@iki.fi>
parents:
diff changeset
4 const unsigned char *
2381
6531fd0f779f Added LANMAN password scheme. Patch by Andrey Panin
Timo Sirainen <tss@iki.fi>
parents: 2377
diff changeset
5 lm_hash(const char *passwd, unsigned char hash[LM_HASH_SIZE]);
6531fd0f779f Added LANMAN password scheme. Patch by Andrey Panin
Timo Sirainen <tss@iki.fi>
parents: 2377
diff changeset
6
6531fd0f779f Added LANMAN password scheme. Patch by Andrey Panin
Timo Sirainen <tss@iki.fi>
parents: 2377
diff changeset
7 const unsigned char *
2377
8f5be0be3199 NTLM authentication. Patch by Andrey Panin
Timo Sirainen <tss@iki.fi>
parents:
diff changeset
8 ntlm_v1_hash(const char *passwd, unsigned char hash[NTLMSSP_HASH_SIZE]);
8f5be0be3199 NTLM authentication. Patch by Andrey Panin
Timo Sirainen <tss@iki.fi>
parents:
diff changeset
9
8f5be0be3199 NTLM authentication. Patch by Andrey Panin
Timo Sirainen <tss@iki.fi>
parents:
diff changeset
10 void ntlmssp_v1_response(const unsigned char *hash,
8f5be0be3199 NTLM authentication. Patch by Andrey Panin
Timo Sirainen <tss@iki.fi>
parents:
diff changeset
11 const unsigned char *challenge,
8f5be0be3199 NTLM authentication. Patch by Andrey Panin
Timo Sirainen <tss@iki.fi>
parents:
diff changeset
12 unsigned char response[NTLMSSP_RESPONSE_SIZE]);
8f5be0be3199 NTLM authentication. Patch by Andrey Panin
Timo Sirainen <tss@iki.fi>
parents:
diff changeset
13
2692
1065a557516b NTLM2 authentication support. Patch by Andrey Panin
Timo Sirainen <tss@iki.fi>
parents: 2381
diff changeset
14 void ntlmssp2_response( const unsigned char *hash,
1065a557516b NTLM2 authentication support. Patch by Andrey Panin
Timo Sirainen <tss@iki.fi>
parents: 2381
diff changeset
15 const unsigned char *server_challenge,
1065a557516b NTLM2 authentication support. Patch by Andrey Panin
Timo Sirainen <tss@iki.fi>
parents: 2381
diff changeset
16 const unsigned char *client_challenge,
1065a557516b NTLM2 authentication support. Patch by Andrey Panin
Timo Sirainen <tss@iki.fi>
parents: 2381
diff changeset
17 unsigned char response[NTLMSSP_RESPONSE_SIZE]);
1065a557516b NTLM2 authentication support. Patch by Andrey Panin
Timo Sirainen <tss@iki.fi>
parents: 2381
diff changeset
18
2377
8f5be0be3199 NTLM authentication. Patch by Andrey Panin
Timo Sirainen <tss@iki.fi>
parents:
diff changeset
19 void ntlmssp_v2_response(const char *user, const char *target,
8f5be0be3199 NTLM authentication. Patch by Andrey Panin
Timo Sirainen <tss@iki.fi>
parents:
diff changeset
20 const unsigned char *hash_v1,
8f5be0be3199 NTLM authentication. Patch by Andrey Panin
Timo Sirainen <tss@iki.fi>
parents:
diff changeset
21 const unsigned char *challenge,
8f5be0be3199 NTLM authentication. Patch by Andrey Panin
Timo Sirainen <tss@iki.fi>
parents:
diff changeset
22 const unsigned char *blob, size_t blob_size,
14629
c93ca5e46a8a Marked functions parameters that are allowed to be NULL. Some APIs were also changed.
Timo Sirainen <tss@iki.fi>
parents: 6410
diff changeset
23 unsigned char response[NTLMSSP_V2_RESPONSE_SIZE])
c93ca5e46a8a Marked functions parameters that are allowed to be NULL. Some APIs were also changed.
Timo Sirainen <tss@iki.fi>
parents: 6410
diff changeset
24 ATTR_NULL(2);
2377
8f5be0be3199 NTLM authentication. Patch by Andrey Panin
Timo Sirainen <tss@iki.fi>
parents:
diff changeset
25
6410
e4eb71ae8e96 Changed .h ifdef/defines to use <NAME>_H format.
Timo Sirainen <tss@iki.fi>
parents: 2692
diff changeset
26 #endif