1 /* This is a generated file */
2 #ifndef __heimntlm_protos_h__
3 #define __heimntlm_protos_h__
12 heim_ntlm_build_ntlm1_master (
15 struct ntlm_buf */
*session*/
,
16 struct ntlm_buf */
*master*/
);
19 heim_ntlm_build_ntlm2_master (
22 struct ntlm_buf */
*blob*/
,
23 struct ntlm_buf */
*session*/
,
24 struct ntlm_buf */
*master*/
);
27 heim_ntlm_calculate_lm2 (
30 const char */
*username*/
,
31 const char */
*target*/
,
32 const unsigned char serverchallenge
[8],
33 unsigned char ntlmv2
[16],
34 struct ntlm_buf */
*answer*/
);
37 heim_ntlm_calculate_ntlm1 (
40 unsigned char challenge
[8],
41 struct ntlm_buf */
*answer*/
);
44 heim_ntlm_calculate_ntlm2 (
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*/
);
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*/
);
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]);
69 heim_ntlm_decode_targetinfo (
70 const struct ntlm_buf */
*data*/
,
72 struct ntlm_targetinfo */
*ti*/
);
75 heim_ntlm_decode_type1 (
76 const struct ntlm_buf */
*buf*/
,
77 struct ntlm_type1 */
*data*/
);
80 heim_ntlm_decode_type2 (
81 const struct ntlm_buf */
*buf*/
,
82 struct ntlm_type2 */
*type2*/
);
85 heim_ntlm_decode_type3 (
86 const struct ntlm_buf */
*buf*/
,
88 struct ntlm_type3 */
*type3*/
);
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]);
99 heim_ntlm_encode_targetinfo (
100 const struct ntlm_targetinfo */
*ti*/
,
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*/
);
120 heim_ntlm_free_buf (struct ntlm_buf */
*p*/
);
123 heim_ntlm_free_targetinfo (struct ntlm_targetinfo */
*ti*/
);
126 heim_ntlm_free_type1 (struct ntlm_type1 */
*data*/
);
129 heim_ntlm_free_type2 (struct ntlm_type2 */
*data*/
);
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*/
);
148 const char */
*password*/
,
149 struct ntlm_buf */
*key*/
);
152 heim_ntlm_ntlmv2_key (
155 const char */
*username*/
,
156 const char */
*target*/
,
157 unsigned char ntlmv2
[16]);
160 heim_ntlm_unparse_flags (
166 heim_ntlm_v1_base_session (
169 struct ntlm_buf */
*session*/
);
172 heim_ntlm_v2_base_session (
175 struct ntlm_buf */
*ntlmResponse*/
,
176 struct ntlm_buf */
*session*/
);
179 heim_ntlm_verify_ntlm2 (
182 const char */
*username*/
,
183 const char */
*target*/
,
185 const unsigned char serverchallenge
[8],
186 const struct ntlm_buf */
*answer*/
,
187 struct ntlm_buf */
*infotarget*/
,
188 unsigned char ntlmv2
[16]);
194 #endif /* __heimntlm_protos_h__ */