xref: /minix3/crypto/external/bsd/heimdal/include/kadm5-protos.h (revision ebfedea0ce5bbe81e252ddf32d732e40fb633fae)
1*ebfedea0SLionel Sambuc /* This is a generated file */
2*ebfedea0SLionel Sambuc #ifndef __kadm5_protos_h__
3*ebfedea0SLionel Sambuc #define __kadm5_protos_h__
4*ebfedea0SLionel Sambuc 
5*ebfedea0SLionel Sambuc #include <stdarg.h>
6*ebfedea0SLionel Sambuc 
7*ebfedea0SLionel Sambuc #ifdef __cplusplus
8*ebfedea0SLionel Sambuc extern "C" {
9*ebfedea0SLionel Sambuc #endif
10*ebfedea0SLionel Sambuc 
11*ebfedea0SLionel Sambuc kadm5_ret_t
12*ebfedea0SLionel Sambuc kadm5_ad_init_with_password (
13*ebfedea0SLionel Sambuc 	const char */*client_name*/,
14*ebfedea0SLionel Sambuc 	const char */*password*/,
15*ebfedea0SLionel Sambuc 	const char */*service_name*/,
16*ebfedea0SLionel Sambuc 	kadm5_config_params */*realm_params*/,
17*ebfedea0SLionel Sambuc 	unsigned long /*struct_version*/,
18*ebfedea0SLionel Sambuc 	unsigned long /*api_version*/,
19*ebfedea0SLionel Sambuc 	void **/*server_handle*/);
20*ebfedea0SLionel Sambuc 
21*ebfedea0SLionel Sambuc kadm5_ret_t
22*ebfedea0SLionel Sambuc kadm5_ad_init_with_password_ctx (
23*ebfedea0SLionel Sambuc 	krb5_context /*context*/,
24*ebfedea0SLionel Sambuc 	const char */*client_name*/,
25*ebfedea0SLionel Sambuc 	const char */*password*/,
26*ebfedea0SLionel Sambuc 	const char */*service_name*/,
27*ebfedea0SLionel Sambuc 	kadm5_config_params */*realm_params*/,
28*ebfedea0SLionel Sambuc 	unsigned long /*struct_version*/,
29*ebfedea0SLionel Sambuc 	unsigned long /*api_version*/,
30*ebfedea0SLionel Sambuc 	void **/*server_handle*/);
31*ebfedea0SLionel Sambuc 
32*ebfedea0SLionel Sambuc krb5_error_code
33*ebfedea0SLionel Sambuc kadm5_add_passwd_quality_verifier (
34*ebfedea0SLionel Sambuc 	krb5_context /*context*/,
35*ebfedea0SLionel Sambuc 	const char */*check_library*/);
36*ebfedea0SLionel Sambuc 
37*ebfedea0SLionel Sambuc const char *
38*ebfedea0SLionel Sambuc kadm5_check_password_quality (
39*ebfedea0SLionel Sambuc 	krb5_context /*context*/,
40*ebfedea0SLionel Sambuc 	krb5_principal /*principal*/,
41*ebfedea0SLionel Sambuc 	krb5_data */*pwd_data*/);
42*ebfedea0SLionel Sambuc 
43*ebfedea0SLionel Sambuc kadm5_ret_t
44*ebfedea0SLionel Sambuc kadm5_chpass_principal (
45*ebfedea0SLionel Sambuc 	void */*server_handle*/,
46*ebfedea0SLionel Sambuc 	krb5_principal /*princ*/,
47*ebfedea0SLionel Sambuc 	const char */*password*/);
48*ebfedea0SLionel Sambuc 
49*ebfedea0SLionel Sambuc kadm5_ret_t
50*ebfedea0SLionel Sambuc kadm5_chpass_principal_with_key (
51*ebfedea0SLionel Sambuc 	void */*server_handle*/,
52*ebfedea0SLionel Sambuc 	krb5_principal /*princ*/,
53*ebfedea0SLionel Sambuc 	int /*n_key_data*/,
54*ebfedea0SLionel Sambuc 	krb5_key_data */*key_data*/);
55*ebfedea0SLionel Sambuc 
56*ebfedea0SLionel Sambuc kadm5_ret_t
57*ebfedea0SLionel Sambuc kadm5_create_principal (
58*ebfedea0SLionel Sambuc 	void */*server_handle*/,
59*ebfedea0SLionel Sambuc 	kadm5_principal_ent_t /*princ*/,
60*ebfedea0SLionel Sambuc 	uint32_t /*mask*/,
61*ebfedea0SLionel Sambuc 	const char */*password*/);
62*ebfedea0SLionel Sambuc 
63*ebfedea0SLionel Sambuc kadm5_ret_t
64*ebfedea0SLionel Sambuc kadm5_delete_principal (
65*ebfedea0SLionel Sambuc 	void */*server_handle*/,
66*ebfedea0SLionel Sambuc 	krb5_principal /*princ*/);
67*ebfedea0SLionel Sambuc 
68*ebfedea0SLionel Sambuc kadm5_ret_t
69*ebfedea0SLionel Sambuc kadm5_destroy (void */*server_handle*/);
70*ebfedea0SLionel Sambuc 
71*ebfedea0SLionel Sambuc kadm5_ret_t
72*ebfedea0SLionel Sambuc kadm5_flush (void */*server_handle*/);
73*ebfedea0SLionel Sambuc 
74*ebfedea0SLionel Sambuc void
75*ebfedea0SLionel Sambuc kadm5_free_key_data (
76*ebfedea0SLionel Sambuc 	void */*server_handle*/,
77*ebfedea0SLionel Sambuc 	int16_t */*n_key_data*/,
78*ebfedea0SLionel Sambuc 	krb5_key_data */*key_data*/);
79*ebfedea0SLionel Sambuc 
80*ebfedea0SLionel Sambuc void
81*ebfedea0SLionel Sambuc kadm5_free_name_list (
82*ebfedea0SLionel Sambuc 	void */*server_handle*/,
83*ebfedea0SLionel Sambuc 	char **/*names*/,
84*ebfedea0SLionel Sambuc 	int */*count*/);
85*ebfedea0SLionel Sambuc 
86*ebfedea0SLionel Sambuc void
87*ebfedea0SLionel Sambuc kadm5_free_principal_ent (
88*ebfedea0SLionel Sambuc 	void */*server_handle*/,
89*ebfedea0SLionel Sambuc 	kadm5_principal_ent_t /*princ*/);
90*ebfedea0SLionel Sambuc 
91*ebfedea0SLionel Sambuc kadm5_ret_t
92*ebfedea0SLionel Sambuc kadm5_get_principal (
93*ebfedea0SLionel Sambuc 	void */*server_handle*/,
94*ebfedea0SLionel Sambuc 	krb5_principal /*princ*/,
95*ebfedea0SLionel Sambuc 	kadm5_principal_ent_t /*out*/,
96*ebfedea0SLionel Sambuc 	uint32_t /*mask*/);
97*ebfedea0SLionel Sambuc 
98*ebfedea0SLionel Sambuc kadm5_ret_t
99*ebfedea0SLionel Sambuc kadm5_get_principals (
100*ebfedea0SLionel Sambuc 	void */*server_handle*/,
101*ebfedea0SLionel Sambuc 	const char */*expression*/,
102*ebfedea0SLionel Sambuc 	char ***/*princs*/,
103*ebfedea0SLionel Sambuc 	int */*count*/);
104*ebfedea0SLionel Sambuc 
105*ebfedea0SLionel Sambuc kadm5_ret_t
106*ebfedea0SLionel Sambuc kadm5_get_privs (
107*ebfedea0SLionel Sambuc 	void */*server_handle*/,
108*ebfedea0SLionel Sambuc 	uint32_t */*privs*/);
109*ebfedea0SLionel Sambuc 
110*ebfedea0SLionel Sambuc kadm5_ret_t
111*ebfedea0SLionel Sambuc kadm5_init_with_creds (
112*ebfedea0SLionel Sambuc 	const char */*client_name*/,
113*ebfedea0SLionel Sambuc 	krb5_ccache /*ccache*/,
114*ebfedea0SLionel Sambuc 	const char */*service_name*/,
115*ebfedea0SLionel Sambuc 	kadm5_config_params */*realm_params*/,
116*ebfedea0SLionel Sambuc 	unsigned long /*struct_version*/,
117*ebfedea0SLionel Sambuc 	unsigned long /*api_version*/,
118*ebfedea0SLionel Sambuc 	void **/*server_handle*/);
119*ebfedea0SLionel Sambuc 
120*ebfedea0SLionel Sambuc kadm5_ret_t
121*ebfedea0SLionel Sambuc kadm5_init_with_creds_ctx (
122*ebfedea0SLionel Sambuc 	krb5_context /*context*/,
123*ebfedea0SLionel Sambuc 	const char */*client_name*/,
124*ebfedea0SLionel Sambuc 	krb5_ccache /*ccache*/,
125*ebfedea0SLionel Sambuc 	const char */*service_name*/,
126*ebfedea0SLionel Sambuc 	kadm5_config_params */*realm_params*/,
127*ebfedea0SLionel Sambuc 	unsigned long /*struct_version*/,
128*ebfedea0SLionel Sambuc 	unsigned long /*api_version*/,
129*ebfedea0SLionel Sambuc 	void **/*server_handle*/);
130*ebfedea0SLionel Sambuc 
131*ebfedea0SLionel Sambuc kadm5_ret_t
132*ebfedea0SLionel Sambuc kadm5_init_with_password (
133*ebfedea0SLionel Sambuc 	const char */*client_name*/,
134*ebfedea0SLionel Sambuc 	const char */*password*/,
135*ebfedea0SLionel Sambuc 	const char */*service_name*/,
136*ebfedea0SLionel Sambuc 	kadm5_config_params */*realm_params*/,
137*ebfedea0SLionel Sambuc 	unsigned long /*struct_version*/,
138*ebfedea0SLionel Sambuc 	unsigned long /*api_version*/,
139*ebfedea0SLionel Sambuc 	void **/*server_handle*/);
140*ebfedea0SLionel Sambuc 
141*ebfedea0SLionel Sambuc kadm5_ret_t
142*ebfedea0SLionel Sambuc kadm5_init_with_password_ctx (
143*ebfedea0SLionel Sambuc 	krb5_context /*context*/,
144*ebfedea0SLionel Sambuc 	const char */*client_name*/,
145*ebfedea0SLionel Sambuc 	const char */*password*/,
146*ebfedea0SLionel Sambuc 	const char */*service_name*/,
147*ebfedea0SLionel Sambuc 	kadm5_config_params */*realm_params*/,
148*ebfedea0SLionel Sambuc 	unsigned long /*struct_version*/,
149*ebfedea0SLionel Sambuc 	unsigned long /*api_version*/,
150*ebfedea0SLionel Sambuc 	void **/*server_handle*/);
151*ebfedea0SLionel Sambuc 
152*ebfedea0SLionel Sambuc kadm5_ret_t
153*ebfedea0SLionel Sambuc kadm5_init_with_skey (
154*ebfedea0SLionel Sambuc 	const char */*client_name*/,
155*ebfedea0SLionel Sambuc 	const char */*keytab*/,
156*ebfedea0SLionel Sambuc 	const char */*service_name*/,
157*ebfedea0SLionel Sambuc 	kadm5_config_params */*realm_params*/,
158*ebfedea0SLionel Sambuc 	unsigned long /*struct_version*/,
159*ebfedea0SLionel Sambuc 	unsigned long /*api_version*/,
160*ebfedea0SLionel Sambuc 	void **/*server_handle*/);
161*ebfedea0SLionel Sambuc 
162*ebfedea0SLionel Sambuc kadm5_ret_t
163*ebfedea0SLionel Sambuc kadm5_init_with_skey_ctx (
164*ebfedea0SLionel Sambuc 	krb5_context /*context*/,
165*ebfedea0SLionel Sambuc 	const char */*client_name*/,
166*ebfedea0SLionel Sambuc 	const char */*keytab*/,
167*ebfedea0SLionel Sambuc 	const char */*service_name*/,
168*ebfedea0SLionel Sambuc 	kadm5_config_params */*realm_params*/,
169*ebfedea0SLionel Sambuc 	unsigned long /*struct_version*/,
170*ebfedea0SLionel Sambuc 	unsigned long /*api_version*/,
171*ebfedea0SLionel Sambuc 	void **/*server_handle*/);
172*ebfedea0SLionel Sambuc 
173*ebfedea0SLionel Sambuc kadm5_ret_t
174*ebfedea0SLionel Sambuc kadm5_modify_principal (
175*ebfedea0SLionel Sambuc 	void */*server_handle*/,
176*ebfedea0SLionel Sambuc 	kadm5_principal_ent_t /*princ*/,
177*ebfedea0SLionel Sambuc 	uint32_t /*mask*/);
178*ebfedea0SLionel Sambuc 
179*ebfedea0SLionel Sambuc kadm5_ret_t
180*ebfedea0SLionel Sambuc kadm5_randkey_principal (
181*ebfedea0SLionel Sambuc 	void */*server_handle*/,
182*ebfedea0SLionel Sambuc 	krb5_principal /*princ*/,
183*ebfedea0SLionel Sambuc 	krb5_keyblock **/*new_keys*/,
184*ebfedea0SLionel Sambuc 	int */*n_keys*/);
185*ebfedea0SLionel Sambuc 
186*ebfedea0SLionel Sambuc kadm5_ret_t
187*ebfedea0SLionel Sambuc kadm5_rename_principal (
188*ebfedea0SLionel Sambuc 	void */*server_handle*/,
189*ebfedea0SLionel Sambuc 	krb5_principal /*source*/,
190*ebfedea0SLionel Sambuc 	krb5_principal /*target*/);
191*ebfedea0SLionel Sambuc 
192*ebfedea0SLionel Sambuc kadm5_ret_t
193*ebfedea0SLionel Sambuc kadm5_ret_key_data (
194*ebfedea0SLionel Sambuc 	krb5_storage */*sp*/,
195*ebfedea0SLionel Sambuc 	krb5_key_data */*key*/);
196*ebfedea0SLionel Sambuc 
197*ebfedea0SLionel Sambuc kadm5_ret_t
198*ebfedea0SLionel Sambuc kadm5_ret_principal_ent (
199*ebfedea0SLionel Sambuc 	krb5_storage */*sp*/,
200*ebfedea0SLionel Sambuc 	kadm5_principal_ent_t /*princ*/);
201*ebfedea0SLionel Sambuc 
202*ebfedea0SLionel Sambuc kadm5_ret_t
203*ebfedea0SLionel Sambuc kadm5_ret_principal_ent_mask (
204*ebfedea0SLionel Sambuc 	krb5_storage */*sp*/,
205*ebfedea0SLionel Sambuc 	kadm5_principal_ent_t /*princ*/,
206*ebfedea0SLionel Sambuc 	uint32_t */*mask*/);
207*ebfedea0SLionel Sambuc 
208*ebfedea0SLionel Sambuc kadm5_ret_t
209*ebfedea0SLionel Sambuc kadm5_ret_tl_data (
210*ebfedea0SLionel Sambuc 	krb5_storage */*sp*/,
211*ebfedea0SLionel Sambuc 	krb5_tl_data */*tl*/);
212*ebfedea0SLionel Sambuc 
213*ebfedea0SLionel Sambuc void
214*ebfedea0SLionel Sambuc kadm5_setup_passwd_quality_check (
215*ebfedea0SLionel Sambuc 	krb5_context /*context*/,
216*ebfedea0SLionel Sambuc 	const char */*check_library*/,
217*ebfedea0SLionel Sambuc 	const char */*check_function*/);
218*ebfedea0SLionel Sambuc 
219*ebfedea0SLionel Sambuc kadm5_ret_t
220*ebfedea0SLionel Sambuc kadm5_store_key_data (
221*ebfedea0SLionel Sambuc 	krb5_storage */*sp*/,
222*ebfedea0SLionel Sambuc 	krb5_key_data */*key*/);
223*ebfedea0SLionel Sambuc 
224*ebfedea0SLionel Sambuc kadm5_ret_t
225*ebfedea0SLionel Sambuc kadm5_store_principal_ent (
226*ebfedea0SLionel Sambuc 	krb5_storage */*sp*/,
227*ebfedea0SLionel Sambuc 	kadm5_principal_ent_t /*princ*/);
228*ebfedea0SLionel Sambuc 
229*ebfedea0SLionel Sambuc kadm5_ret_t
230*ebfedea0SLionel Sambuc kadm5_store_principal_ent_mask (
231*ebfedea0SLionel Sambuc 	krb5_storage */*sp*/,
232*ebfedea0SLionel Sambuc 	kadm5_principal_ent_t /*princ*/,
233*ebfedea0SLionel Sambuc 	uint32_t /*mask*/);
234*ebfedea0SLionel Sambuc 
235*ebfedea0SLionel Sambuc kadm5_ret_t
236*ebfedea0SLionel Sambuc kadm5_store_tl_data (
237*ebfedea0SLionel Sambuc 	krb5_storage */*sp*/,
238*ebfedea0SLionel Sambuc 	krb5_tl_data */*tl*/);
239*ebfedea0SLionel Sambuc 
240*ebfedea0SLionel Sambuc #ifdef __cplusplus
241*ebfedea0SLionel Sambuc }
242*ebfedea0SLionel Sambuc #endif
243*ebfedea0SLionel Sambuc 
244*ebfedea0SLionel Sambuc #endif /* __kadm5_protos_h__ */
245