xref: /freebsd/crypto/heimdal/lib/kadm5/kadm5-protos.h (revision c19800e8cd5640693f36f2040db4ab5e8d738146)
18373020dSJacques Vidrine /* This is a generated file */
25e9cd1aeSAssar Westerlund #ifndef __kadm5_protos_h__
35e9cd1aeSAssar Westerlund #define __kadm5_protos_h__
45e9cd1aeSAssar Westerlund 
58373020dSJacques Vidrine #include <stdarg.h>
65e9cd1aeSAssar Westerlund 
7c19800e8SDoug Rabson #ifdef __cplusplus
8c19800e8SDoug Rabson extern "C" {
9c19800e8SDoug Rabson #endif
10c19800e8SDoug Rabson 
11c19800e8SDoug Rabson kadm5_ret_t
12c19800e8SDoug Rabson kadm5_ad_init_with_password (
13c19800e8SDoug Rabson 	const char */*client_name*/,
14c19800e8SDoug Rabson 	const char */*password*/,
15c19800e8SDoug Rabson 	const char */*service_name*/,
16c19800e8SDoug Rabson 	kadm5_config_params */*realm_params*/,
17c19800e8SDoug Rabson 	unsigned long /*struct_version*/,
18c19800e8SDoug Rabson 	unsigned long /*api_version*/,
19c19800e8SDoug Rabson 	void **/*server_handle*/);
20c19800e8SDoug Rabson 
21c19800e8SDoug Rabson kadm5_ret_t
22c19800e8SDoug Rabson kadm5_ad_init_with_password_ctx (
23c19800e8SDoug Rabson 	krb5_context /*context*/,
24c19800e8SDoug Rabson 	const char */*client_name*/,
25c19800e8SDoug Rabson 	const char */*password*/,
26c19800e8SDoug Rabson 	const char */*service_name*/,
27c19800e8SDoug Rabson 	kadm5_config_params */*realm_params*/,
28c19800e8SDoug Rabson 	unsigned long /*struct_version*/,
29c19800e8SDoug Rabson 	unsigned long /*api_version*/,
30c19800e8SDoug Rabson 	void **/*server_handle*/);
31c19800e8SDoug Rabson 
32c19800e8SDoug Rabson krb5_error_code
33c19800e8SDoug Rabson kadm5_add_passwd_quality_verifier (
34c19800e8SDoug Rabson 	krb5_context /*context*/,
35c19800e8SDoug Rabson 	const char */*check_library*/);
36c19800e8SDoug Rabson 
375e9cd1aeSAssar Westerlund const char *
388373020dSJacques Vidrine kadm5_check_password_quality (
398373020dSJacques Vidrine 	krb5_context /*context*/,
408373020dSJacques Vidrine 	krb5_principal /*principal*/,
418373020dSJacques Vidrine 	krb5_data */*pwd_data*/);
428373020dSJacques Vidrine 
438373020dSJacques Vidrine kadm5_ret_t
448373020dSJacques Vidrine kadm5_chpass_principal (
458373020dSJacques Vidrine 	void */*server_handle*/,
468373020dSJacques Vidrine 	krb5_principal /*princ*/,
47c19800e8SDoug Rabson 	const char */*password*/);
488373020dSJacques Vidrine 
498373020dSJacques Vidrine kadm5_ret_t
508373020dSJacques Vidrine kadm5_chpass_principal_with_key (
518373020dSJacques Vidrine 	void */*server_handle*/,
528373020dSJacques Vidrine 	krb5_principal /*princ*/,
538373020dSJacques Vidrine 	int /*n_key_data*/,
548373020dSJacques Vidrine 	krb5_key_data */*key_data*/);
558373020dSJacques Vidrine 
568373020dSJacques Vidrine kadm5_ret_t
578373020dSJacques Vidrine kadm5_create_principal (
588373020dSJacques Vidrine 	void */*server_handle*/,
598373020dSJacques Vidrine 	kadm5_principal_ent_t /*princ*/,
60c19800e8SDoug Rabson 	uint32_t /*mask*/,
61c19800e8SDoug Rabson 	const char */*password*/);
628373020dSJacques Vidrine 
638373020dSJacques Vidrine kadm5_ret_t
648373020dSJacques Vidrine kadm5_delete_principal (
658373020dSJacques Vidrine 	void */*server_handle*/,
668373020dSJacques Vidrine 	krb5_principal /*princ*/);
678373020dSJacques Vidrine 
688373020dSJacques Vidrine kadm5_ret_t
698373020dSJacques Vidrine kadm5_destroy (void */*server_handle*/);
708373020dSJacques Vidrine 
718373020dSJacques Vidrine kadm5_ret_t
728373020dSJacques Vidrine kadm5_flush (void */*server_handle*/);
738373020dSJacques Vidrine 
748373020dSJacques Vidrine void
758373020dSJacques Vidrine kadm5_free_key_data (
768373020dSJacques Vidrine 	void */*server_handle*/,
778373020dSJacques Vidrine 	int16_t */*n_key_data*/,
788373020dSJacques Vidrine 	krb5_key_data */*key_data*/);
798373020dSJacques Vidrine 
808373020dSJacques Vidrine void
818373020dSJacques Vidrine kadm5_free_name_list (
828373020dSJacques Vidrine 	void */*server_handle*/,
838373020dSJacques Vidrine 	char **/*names*/,
848373020dSJacques Vidrine 	int */*count*/);
858373020dSJacques Vidrine 
868373020dSJacques Vidrine void
878373020dSJacques Vidrine kadm5_free_principal_ent (
888373020dSJacques Vidrine 	void */*server_handle*/,
898373020dSJacques Vidrine 	kadm5_principal_ent_t /*princ*/);
908373020dSJacques Vidrine 
918373020dSJacques Vidrine kadm5_ret_t
928373020dSJacques Vidrine kadm5_get_principal (
938373020dSJacques Vidrine 	void */*server_handle*/,
948373020dSJacques Vidrine 	krb5_principal /*princ*/,
958373020dSJacques Vidrine 	kadm5_principal_ent_t /*out*/,
96c19800e8SDoug Rabson 	uint32_t /*mask*/);
978373020dSJacques Vidrine 
988373020dSJacques Vidrine kadm5_ret_t
998373020dSJacques Vidrine kadm5_get_principals (
1008373020dSJacques Vidrine 	void */*server_handle*/,
101c19800e8SDoug Rabson 	const char */*expression*/,
1028373020dSJacques Vidrine 	char ***/*princs*/,
1038373020dSJacques Vidrine 	int */*count*/);
1048373020dSJacques Vidrine 
1058373020dSJacques Vidrine kadm5_ret_t
1068373020dSJacques Vidrine kadm5_get_privs (
1078373020dSJacques Vidrine 	void */*server_handle*/,
108c19800e8SDoug Rabson 	uint32_t */*privs*/);
1098373020dSJacques Vidrine 
1108373020dSJacques Vidrine kadm5_ret_t
1118373020dSJacques Vidrine kadm5_init_with_creds (
1128373020dSJacques Vidrine 	const char */*client_name*/,
1138373020dSJacques Vidrine 	krb5_ccache /*ccache*/,
1148373020dSJacques Vidrine 	const char */*service_name*/,
1158373020dSJacques Vidrine 	kadm5_config_params */*realm_params*/,
1168373020dSJacques Vidrine 	unsigned long /*struct_version*/,
1178373020dSJacques Vidrine 	unsigned long /*api_version*/,
1188373020dSJacques Vidrine 	void **/*server_handle*/);
1198373020dSJacques Vidrine 
1208373020dSJacques Vidrine kadm5_ret_t
1218373020dSJacques Vidrine kadm5_init_with_creds_ctx (
1228373020dSJacques Vidrine 	krb5_context /*context*/,
1238373020dSJacques Vidrine 	const char */*client_name*/,
1248373020dSJacques Vidrine 	krb5_ccache /*ccache*/,
1258373020dSJacques Vidrine 	const char */*service_name*/,
1268373020dSJacques Vidrine 	kadm5_config_params */*realm_params*/,
1278373020dSJacques Vidrine 	unsigned long /*struct_version*/,
1288373020dSJacques Vidrine 	unsigned long /*api_version*/,
1298373020dSJacques Vidrine 	void **/*server_handle*/);
1308373020dSJacques Vidrine 
1318373020dSJacques Vidrine kadm5_ret_t
1328373020dSJacques Vidrine kadm5_init_with_password (
1338373020dSJacques Vidrine 	const char */*client_name*/,
1348373020dSJacques Vidrine 	const char */*password*/,
1358373020dSJacques Vidrine 	const char */*service_name*/,
1368373020dSJacques Vidrine 	kadm5_config_params */*realm_params*/,
1378373020dSJacques Vidrine 	unsigned long /*struct_version*/,
1388373020dSJacques Vidrine 	unsigned long /*api_version*/,
1398373020dSJacques Vidrine 	void **/*server_handle*/);
1408373020dSJacques Vidrine 
1418373020dSJacques Vidrine kadm5_ret_t
1428373020dSJacques Vidrine kadm5_init_with_password_ctx (
1438373020dSJacques Vidrine 	krb5_context /*context*/,
1448373020dSJacques Vidrine 	const char */*client_name*/,
1458373020dSJacques Vidrine 	const char */*password*/,
1468373020dSJacques Vidrine 	const char */*service_name*/,
1478373020dSJacques Vidrine 	kadm5_config_params */*realm_params*/,
1488373020dSJacques Vidrine 	unsigned long /*struct_version*/,
1498373020dSJacques Vidrine 	unsigned long /*api_version*/,
1508373020dSJacques Vidrine 	void **/*server_handle*/);
1518373020dSJacques Vidrine 
1528373020dSJacques Vidrine kadm5_ret_t
1538373020dSJacques Vidrine kadm5_init_with_skey (
1548373020dSJacques Vidrine 	const char */*client_name*/,
1558373020dSJacques Vidrine 	const char */*keytab*/,
1568373020dSJacques Vidrine 	const char */*service_name*/,
1578373020dSJacques Vidrine 	kadm5_config_params */*realm_params*/,
1588373020dSJacques Vidrine 	unsigned long /*struct_version*/,
1598373020dSJacques Vidrine 	unsigned long /*api_version*/,
1608373020dSJacques Vidrine 	void **/*server_handle*/);
1618373020dSJacques Vidrine 
1628373020dSJacques Vidrine kadm5_ret_t
1638373020dSJacques Vidrine kadm5_init_with_skey_ctx (
1648373020dSJacques Vidrine 	krb5_context /*context*/,
1658373020dSJacques Vidrine 	const char */*client_name*/,
1668373020dSJacques Vidrine 	const char */*keytab*/,
1678373020dSJacques Vidrine 	const char */*service_name*/,
1688373020dSJacques Vidrine 	kadm5_config_params */*realm_params*/,
1698373020dSJacques Vidrine 	unsigned long /*struct_version*/,
1708373020dSJacques Vidrine 	unsigned long /*api_version*/,
1718373020dSJacques Vidrine 	void **/*server_handle*/);
1728373020dSJacques Vidrine 
1738373020dSJacques Vidrine kadm5_ret_t
1748373020dSJacques Vidrine kadm5_modify_principal (
1758373020dSJacques Vidrine 	void */*server_handle*/,
1768373020dSJacques Vidrine 	kadm5_principal_ent_t /*princ*/,
177c19800e8SDoug Rabson 	uint32_t /*mask*/);
1788373020dSJacques Vidrine 
1798373020dSJacques Vidrine kadm5_ret_t
1808373020dSJacques Vidrine kadm5_randkey_principal (
1818373020dSJacques Vidrine 	void */*server_handle*/,
1828373020dSJacques Vidrine 	krb5_principal /*princ*/,
1838373020dSJacques Vidrine 	krb5_keyblock **/*new_keys*/,
1848373020dSJacques Vidrine 	int */*n_keys*/);
1858373020dSJacques Vidrine 
1868373020dSJacques Vidrine kadm5_ret_t
1878373020dSJacques Vidrine kadm5_rename_principal (
1888373020dSJacques Vidrine 	void */*server_handle*/,
1898373020dSJacques Vidrine 	krb5_principal /*source*/,
1908373020dSJacques Vidrine 	krb5_principal /*target*/);
1918373020dSJacques Vidrine 
1928373020dSJacques Vidrine kadm5_ret_t
1938373020dSJacques Vidrine kadm5_ret_key_data (
1948373020dSJacques Vidrine 	krb5_storage */*sp*/,
1958373020dSJacques Vidrine 	krb5_key_data */*key*/);
1968373020dSJacques Vidrine 
1978373020dSJacques Vidrine kadm5_ret_t
1988373020dSJacques Vidrine kadm5_ret_principal_ent (
1998373020dSJacques Vidrine 	krb5_storage */*sp*/,
2008373020dSJacques Vidrine 	kadm5_principal_ent_t /*princ*/);
2018373020dSJacques Vidrine 
2028373020dSJacques Vidrine kadm5_ret_t
2038373020dSJacques Vidrine kadm5_ret_principal_ent_mask (
2048373020dSJacques Vidrine 	krb5_storage */*sp*/,
2058373020dSJacques Vidrine 	kadm5_principal_ent_t /*princ*/,
206c19800e8SDoug Rabson 	uint32_t */*mask*/);
2078373020dSJacques Vidrine 
2088373020dSJacques Vidrine kadm5_ret_t
2098373020dSJacques Vidrine kadm5_ret_tl_data (
2108373020dSJacques Vidrine 	krb5_storage */*sp*/,
2118373020dSJacques Vidrine 	krb5_tl_data */*tl*/);
2128373020dSJacques Vidrine 
2138373020dSJacques Vidrine void
2148373020dSJacques Vidrine kadm5_setup_passwd_quality_check (
2158373020dSJacques Vidrine 	krb5_context /*context*/,
2168373020dSJacques Vidrine 	const char */*check_library*/,
2178373020dSJacques Vidrine 	const char */*check_function*/);
2188373020dSJacques Vidrine 
2198373020dSJacques Vidrine kadm5_ret_t
2208373020dSJacques Vidrine kadm5_store_key_data (
2218373020dSJacques Vidrine 	krb5_storage */*sp*/,
2228373020dSJacques Vidrine 	krb5_key_data */*key*/);
2238373020dSJacques Vidrine 
2248373020dSJacques Vidrine kadm5_ret_t
2258373020dSJacques Vidrine kadm5_store_principal_ent (
2268373020dSJacques Vidrine 	krb5_storage */*sp*/,
2278373020dSJacques Vidrine 	kadm5_principal_ent_t /*princ*/);
2288373020dSJacques Vidrine 
2298373020dSJacques Vidrine kadm5_ret_t
2308373020dSJacques Vidrine kadm5_store_principal_ent_mask (
2318373020dSJacques Vidrine 	krb5_storage */*sp*/,
2328373020dSJacques Vidrine 	kadm5_principal_ent_t /*princ*/,
233c19800e8SDoug Rabson 	uint32_t /*mask*/);
2348373020dSJacques Vidrine 
2358373020dSJacques Vidrine kadm5_ret_t
2368373020dSJacques Vidrine kadm5_store_tl_data (
2378373020dSJacques Vidrine 	krb5_storage */*sp*/,
2388373020dSJacques Vidrine 	krb5_tl_data */*tl*/);
2395e9cd1aeSAssar Westerlund 
240c19800e8SDoug Rabson #ifdef __cplusplus
241c19800e8SDoug Rabson }
242c19800e8SDoug Rabson #endif
243c19800e8SDoug Rabson 
2445e9cd1aeSAssar Westerlund #endif /* __kadm5_protos_h__ */
245