annotate src/lib-ntlm/ntlm-encrypt.h @ 2692:1065a557516b HEAD

NTLM2 authentication support. Patch by Andrey Panin
author Timo Sirainen <tss@iki.fi>
date Tue, 05 Oct 2004 23:01:05 +0300
parents 6531fd0f779f
children e4eb71ae8e96
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
2377
8f5be0be3199 NTLM authentication. Patch by Andrey Panin
Timo Sirainen <tss@iki.fi>
parents:
diff changeset
1 #ifndef __NTLM_ENCRYPT__
8f5be0be3199 NTLM authentication. Patch by Andrey Panin
Timo Sirainen <tss@iki.fi>
parents:
diff changeset
2 #define __NTLM_ENCRYPT__
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,
8f5be0be3199 NTLM authentication. Patch by Andrey Panin
Timo Sirainen <tss@iki.fi>
parents:
diff changeset
23 unsigned char response[NTLMSSP_V2_RESPONSE_SIZE]);
8f5be0be3199 NTLM authentication. Patch by Andrey Panin
Timo Sirainen <tss@iki.fi>
parents:
diff changeset
24
8f5be0be3199 NTLM authentication. Patch by Andrey Panin
Timo Sirainen <tss@iki.fi>
parents:
diff changeset
25 #endif /* __NTLM_ENCRYPT__ */