2df32dfa50d9ea2dcee4c5420a71588410333c0a
[sfrench/samba-autobuild/.git] / source4 / heimdal / lib / ntlm / heimntlm-protos.h
1 /* This is a generated file */
2 #ifndef __heimntlm_protos_h__
3 #define __heimntlm_protos_h__
4
5 #include <stdarg.h>
6
7 #ifdef __cplusplus
8 extern "C" {
9 #endif
10
11 int
12 heim_ntlm_build_ntlm1_master (
13         void */*key*/,
14         size_t /*len*/,
15         struct ntlm_buf */*session*/,
16         struct ntlm_buf */*master*/);
17
18 int
19 heim_ntlm_calculate_ntlm1 (
20         void */*key*/,
21         size_t /*len*/,
22         unsigned char challange[8],
23         struct ntlm_buf */*answer*/);
24
25 int
26 heim_ntlm_calculate_ntlm2 (
27         const void */*key*/,
28         size_t /*len*/,
29         const char */*username*/,
30         const char */*target*/,
31         const unsigned char serverchallange[8],
32         const struct ntlm_buf */*infotarget*/,
33         unsigned char ntlmv2[16],
34         struct ntlm_buf */*answer*/);
35
36 int
37 heim_ntlm_decode_targetinfo (
38         struct ntlm_buf */*data*/,
39         int /*ucs2*/,
40         struct ntlm_targetinfo */*ti*/);
41
42 int
43 heim_ntlm_decode_type1 (
44         const struct ntlm_buf */*buf*/,
45         struct ntlm_type1 */*data*/);
46
47 int
48 heim_ntlm_decode_type2 (
49         const struct ntlm_buf */*buf*/,
50         struct ntlm_type2 */*type2*/);
51
52 int
53 heim_ntlm_decode_type3 (
54         const struct ntlm_buf */*buf*/,
55         int /*ucs2*/,
56         struct ntlm_type3 */*type3*/);
57
58 int
59 heim_ntlm_encode_targetinfo (
60         struct ntlm_targetinfo */*ti*/,
61         int /*ucs2*/,
62         struct ntlm_buf */*data*/);
63
64 int
65 heim_ntlm_encode_type1 (
66         const struct ntlm_type1 */*type1*/,
67         struct ntlm_buf */*data*/);
68
69 int
70 heim_ntlm_encode_type2 (
71         struct ntlm_type2 */*type2*/,
72         struct ntlm_buf */*data*/);
73
74 int
75 heim_ntlm_encode_type3 (
76         struct ntlm_type3 */*type3*/,
77         struct ntlm_buf */*data*/);
78
79 void
80 heim_ntlm_free_targetinfo (struct ntlm_targetinfo */*ti*/);
81
82 void
83 heim_ntlm_free_type1 (struct ntlm_type1 */*data*/);
84
85 void
86 heim_ntlm_free_type2 (struct ntlm_type2 */*data*/);
87
88 void
89 heim_ntlm_free_type3 (struct ntlm_type3 */*data*/);
90
91 int
92 heim_ntlm_nt_key (
93         const char */*password*/,
94         struct ntlm_buf */*key*/);
95
96 void
97 heim_ntlm_ntlmv2_key (
98         const void */*key*/,
99         size_t /*len*/,
100         const char */*username*/,
101         const char */*target*/,
102         unsigned char ntlmv2[16]);
103
104 int
105 heim_ntlm_verify_ntlm2 (
106         const void */*key*/,
107         size_t /*len*/,
108         const char */*username*/,
109         const char */*target*/,
110         time_t /*now*/,
111         const unsigned char serverchallange[8],
112         const struct ntlm_buf */*answer*/,
113         struct ntlm_buf */*infotarget*/,
114         unsigned char ntlmv2[16]);
115
116 #ifdef __cplusplus
117 }
118 #endif
119
120 #endif /* __heimntlm_protos_h__ */