etc/services - sync with NetBSD-8
[minix.git] / crypto / external / bsd / heimdal / include / heimntlm-protos.h
blob5f56536ffc3b802e2e5b13f6ac839a4a68893d4d
1 /* This is a generated file */
2 #ifndef __heimntlm_protos_h__
3 #define __heimntlm_protos_h__
5 #include <stdarg.h>
7 #ifdef __cplusplus
8 extern "C" {
9 #endif
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*/);
18 int
19 heim_ntlm_build_ntlm2_master (
20 void */*key*/,
21 size_t /*len*/,
22 struct ntlm_buf */*blob*/,
23 struct ntlm_buf */*session*/,
24 struct ntlm_buf */*master*/);
26 int
27 heim_ntlm_calculate_lm2 (
28 const void */*key*/,
29 size_t /*len*/,
30 const char */*username*/,
31 const char */*target*/,
32 const unsigned char serverchallenge[8],
33 unsigned char ntlmv2[16],
34 struct ntlm_buf */*answer*/);
36 int
37 heim_ntlm_calculate_ntlm1 (
38 void */*key*/,
39 size_t /*len*/,
40 unsigned char challenge[8],
41 struct ntlm_buf */*answer*/);
43 int
44 heim_ntlm_calculate_ntlm2 (
45 const void */*key*/,
46 size_t /*len*/,
47 const char */*username*/,
48 const char */*target*/,
49 const unsigned char serverchallenge[8],
50 const struct ntlm_buf */*infotarget*/,
51 unsigned char ntlmv2[16],
52 struct ntlm_buf */*answer*/);
54 int
55 heim_ntlm_calculate_ntlm2_sess (
56 const unsigned char clnt_nonce[8],
57 const unsigned char svr_chal[8],
58 const unsigned char ntlm_hash[16],
59 struct ntlm_buf */*lm*/,
60 struct ntlm_buf */*ntlm*/);
62 int
63 heim_ntlm_calculate_ntlm2_sess_hash (
64 const unsigned char clnt_nonce[8],
65 const unsigned char svr_chal[8],
66 unsigned char verifier[8]);
68 int
69 heim_ntlm_decode_targetinfo (
70 const struct ntlm_buf */*data*/,
71 int /*ucs2*/,
72 struct ntlm_targetinfo */*ti*/);
74 int
75 heim_ntlm_decode_type1 (
76 const struct ntlm_buf */*buf*/,
77 struct ntlm_type1 */*data*/);
79 int
80 heim_ntlm_decode_type2 (
81 const struct ntlm_buf */*buf*/,
82 struct ntlm_type2 */*type2*/);
84 int
85 heim_ntlm_decode_type3 (
86 const struct ntlm_buf */*buf*/,
87 int /*ucs2*/,
88 struct ntlm_type3 */*type3*/);
90 void
91 heim_ntlm_derive_ntlm2_sess (
92 const unsigned char sessionkey[16],
93 const unsigned char */*clnt_nonce*/,
94 size_t /*clnt_nonce_length*/,
95 const unsigned char svr_chal[8],
96 unsigned char derivedkey[16]);
98 int
99 heim_ntlm_encode_targetinfo (
100 const struct ntlm_targetinfo */*ti*/,
101 int /*ucs2*/,
102 struct ntlm_buf */*data*/);
105 heim_ntlm_encode_type1 (
106 const struct ntlm_type1 */*type1*/,
107 struct ntlm_buf */*data*/);
110 heim_ntlm_encode_type2 (
111 const struct ntlm_type2 */*type2*/,
112 struct ntlm_buf */*data*/);
115 heim_ntlm_encode_type3 (
116 const struct ntlm_type3 */*type3*/,
117 struct ntlm_buf */*data*/);
119 void
120 heim_ntlm_free_buf (struct ntlm_buf */*p*/);
122 void
123 heim_ntlm_free_targetinfo (struct ntlm_targetinfo */*ti*/);
125 void
126 heim_ntlm_free_type1 (struct ntlm_type1 */*data*/);
128 void
129 heim_ntlm_free_type2 (struct ntlm_type2 */*data*/);
131 void
132 heim_ntlm_free_type3 (struct ntlm_type3 */*data*/);
135 heim_ntlm_keyex_unwrap (
136 struct ntlm_buf */*baseKey*/,
137 struct ntlm_buf */*encryptedSession*/,
138 struct ntlm_buf */*session*/);
141 heim_ntlm_keyex_wrap (
142 struct ntlm_buf */*base_session*/,
143 struct ntlm_buf */*session*/,
144 struct ntlm_buf */*encryptedSession*/);
147 heim_ntlm_nt_key (
148 const char */*password*/,
149 struct ntlm_buf */*key*/);
152 heim_ntlm_ntlmv2_key (
153 const void */*key*/,
154 size_t /*len*/,
155 const char */*username*/,
156 const char */*target*/,
157 unsigned char ntlmv2[16]);
159 size_t
160 heim_ntlm_unparse_flags (
161 uint32_t /*flags*/,
162 char */*s*/,
163 size_t /*len*/);
166 heim_ntlm_v1_base_session (
167 void */*key*/,
168 size_t /*len*/,
169 struct ntlm_buf */*session*/);
172 heim_ntlm_v2_base_session (
173 void */*key*/,
174 size_t /*len*/,
175 struct ntlm_buf */*ntlmResponse*/,
176 struct ntlm_buf */*session*/);
179 heim_ntlm_verify_ntlm2 (
180 const void */*key*/,
181 size_t /*len*/,
182 const char */*username*/,
183 const char */*target*/,
184 time_t /*now*/,
185 const unsigned char serverchallenge[8],
186 const struct ntlm_buf */*answer*/,
187 struct ntlm_buf */*infotarget*/,
188 unsigned char ntlmv2[16]);
190 #ifdef __cplusplus
192 #endif
194 #endif /* __heimntlm_protos_h__ */