Path: blob/main/crypto/heimdal/lib/hdb/hdb-protos.h
34889 views
/* This is a generated file */1#ifndef __hdb_protos_h__2#define __hdb_protos_h__34#include <stdarg.h>56#ifdef __cplusplus7extern "C" {8#endif910krb5_error_code11hdb_add_master_key (12krb5_context /*context*/,13krb5_keyblock */*key*/,14hdb_master_key */*inout*/);1516krb5_error_code17hdb_check_db_format (18krb5_context /*context*/,19HDB */*db*/);2021krb5_error_code22hdb_clear_extension (23krb5_context /*context*/,24hdb_entry */*entry*/,25int /*type*/);2627krb5_error_code28hdb_clear_master_key (29krb5_context /*context*/,30HDB */*db*/);3132krb5_error_code33hdb_create (34krb5_context /*context*/,35HDB **/*db*/,36const char */*filename*/);3738krb5_error_code39hdb_db_create (40krb5_context /*context*/,41HDB **/*db*/,42const char */*filename*/);4344const char *45hdb_db_dir (krb5_context /*context*/);4647const char *48hdb_dbinfo_get_acl_file (49krb5_context /*context*/,50struct hdb_dbinfo */*dbp*/);5152const krb5_config_binding *53hdb_dbinfo_get_binding (54krb5_context /*context*/,55struct hdb_dbinfo */*dbp*/);5657const char *58hdb_dbinfo_get_dbname (59krb5_context /*context*/,60struct hdb_dbinfo */*dbp*/);6162const char *63hdb_dbinfo_get_label (64krb5_context /*context*/,65struct hdb_dbinfo */*dbp*/);6667const char *68hdb_dbinfo_get_log_file (69krb5_context /*context*/,70struct hdb_dbinfo */*dbp*/);7172const char *73hdb_dbinfo_get_mkey_file (74krb5_context /*context*/,75struct hdb_dbinfo */*dbp*/);7677struct hdb_dbinfo *78hdb_dbinfo_get_next (79struct hdb_dbinfo */*dbp*/,80struct hdb_dbinfo */*dbprevp*/);8182const char *83hdb_dbinfo_get_realm (84krb5_context /*context*/,85struct hdb_dbinfo */*dbp*/);8687const char *88hdb_default_db (krb5_context /*context*/);8990krb5_error_code91hdb_enctype2key (92krb5_context /*context*/,93hdb_entry */*e*/,94krb5_enctype /*enctype*/,95Key **/*key*/);9697krb5_error_code98hdb_entry2string (99krb5_context /*context*/,100hdb_entry */*ent*/,101char **/*str*/);102103int104hdb_entry2value (105krb5_context /*context*/,106const hdb_entry */*ent*/,107krb5_data */*value*/);108109int110hdb_entry_alias2value (111krb5_context /*context*/,112const hdb_entry_alias */*alias*/,113krb5_data */*value*/);114115krb5_error_code116hdb_entry_check_mandatory (117krb5_context /*context*/,118const hdb_entry */*ent*/);119120int121hdb_entry_clear_password (122krb5_context /*context*/,123hdb_entry */*entry*/);124125krb5_error_code126hdb_entry_get_ConstrainedDelegACL (127const hdb_entry */*entry*/,128const HDB_Ext_Constrained_delegation_acl **/*a*/);129130krb5_error_code131hdb_entry_get_aliases (132const hdb_entry */*entry*/,133const HDB_Ext_Aliases **/*a*/);134135int136hdb_entry_get_password (137krb5_context /*context*/,138HDB */*db*/,139const hdb_entry */*entry*/,140char **/*p*/);141142krb5_error_code143hdb_entry_get_pkinit_acl (144const hdb_entry */*entry*/,145const HDB_Ext_PKINIT_acl **/*a*/);146147krb5_error_code148hdb_entry_get_pkinit_cert (149const hdb_entry */*entry*/,150const HDB_Ext_PKINIT_cert **/*a*/);151152krb5_error_code153hdb_entry_get_pkinit_hash (154const hdb_entry */*entry*/,155const HDB_Ext_PKINIT_hash **/*a*/);156157krb5_error_code158hdb_entry_get_pw_change_time (159const hdb_entry */*entry*/,160time_t */*t*/);161162int163hdb_entry_set_password (164krb5_context /*context*/,165HDB */*db*/,166hdb_entry */*entry*/,167const char */*p*/);168169krb5_error_code170hdb_entry_set_pw_change_time (171krb5_context /*context*/,172hdb_entry */*entry*/,173time_t /*t*/);174175HDB_extension *176hdb_find_extension (177const hdb_entry */*entry*/,178int /*type*/);179180krb5_error_code181hdb_foreach (182krb5_context /*context*/,183HDB */*db*/,184unsigned /*flags*/,185hdb_foreach_func_t /*func*/,186void */*data*/);187188void189hdb_free_dbinfo (190krb5_context /*context*/,191struct hdb_dbinfo **/*dbp*/);192193void194hdb_free_entry (195krb5_context /*context*/,196hdb_entry_ex */*ent*/);197198void199hdb_free_key (Key */*key*/);200201void202hdb_free_keys (203krb5_context /*context*/,204int /*len*/,205Key */*keys*/);206207void208hdb_free_master_key (209krb5_context /*context*/,210hdb_master_key /*mkey*/);211212krb5_error_code213hdb_generate_key_set (214krb5_context /*context*/,215krb5_principal /*principal*/,216Key **/*ret_key_set*/,217size_t */*nkeyset*/,218int /*no_salt*/);219220krb5_error_code221hdb_generate_key_set_password (222krb5_context /*context*/,223krb5_principal /*principal*/,224const char */*password*/,225Key **/*keys*/,226size_t */*num_keys*/);227228int229hdb_get_dbinfo (230krb5_context /*context*/,231struct hdb_dbinfo **/*dbp*/);232233krb5_error_code234hdb_init_db (235krb5_context /*context*/,236HDB */*db*/);237238int239hdb_key2principal (240krb5_context /*context*/,241krb5_data */*key*/,242krb5_principal /*p*/);243244krb5_error_code245hdb_keytab_create (246krb5_context /*context*/,247HDB ** /*db*/,248const char */*arg*/);249250krb5_error_code251hdb_ldap_create (252krb5_context /*context*/,253HDB ** /*db*/,254const char */*arg*/);255256krb5_error_code257hdb_ldapi_create (258krb5_context /*context*/,259HDB ** /*db*/,260const char */*arg*/);261262krb5_error_code263hdb_list_builtin (264krb5_context /*context*/,265char **/*list*/);266267krb5_error_code268hdb_lock (269int /*fd*/,270int /*operation*/);271272krb5_error_code273hdb_mdb_create (274krb5_context /*context*/,275HDB **/*db*/,276const char */*filename*/);277278krb5_error_code279hdb_ndbm_create (280krb5_context /*context*/,281HDB **/*db*/,282const char */*filename*/);283284krb5_error_code285hdb_next_enctype2key (286krb5_context /*context*/,287const hdb_entry */*e*/,288krb5_enctype /*enctype*/,289Key **/*key*/);290291int292hdb_principal2key (293krb5_context /*context*/,294krb5_const_principal /*p*/,295krb5_data */*key*/);296297krb5_error_code298hdb_print_entry (299krb5_context /*context*/,300HDB */*db*/,301hdb_entry_ex */*entry*/,302void */*data*/);303304krb5_error_code305hdb_process_master_key (306krb5_context /*context*/,307int /*kvno*/,308krb5_keyblock */*key*/,309krb5_enctype /*etype*/,310hdb_master_key */*mkey*/);311312krb5_error_code313hdb_read_master_key (314krb5_context /*context*/,315const char */*filename*/,316hdb_master_key */*mkey*/);317318krb5_error_code319hdb_replace_extension (320krb5_context /*context*/,321hdb_entry */*entry*/,322const HDB_extension */*ext*/);323324krb5_error_code325hdb_seal_key (326krb5_context /*context*/,327HDB */*db*/,328Key */*k*/);329330krb5_error_code331hdb_seal_key_mkey (332krb5_context /*context*/,333Key */*k*/,334hdb_master_key /*mkey*/);335336krb5_error_code337hdb_seal_keys (338krb5_context /*context*/,339HDB */*db*/,340hdb_entry */*ent*/);341342krb5_error_code343hdb_seal_keys_mkey (344krb5_context /*context*/,345hdb_entry */*ent*/,346hdb_master_key /*mkey*/);347348krb5_error_code349hdb_set_master_key (350krb5_context /*context*/,351HDB */*db*/,352krb5_keyblock */*key*/);353354krb5_error_code355hdb_set_master_keyfile (356krb5_context /*context*/,357HDB */*db*/,358const char */*keyfile*/);359360krb5_error_code361hdb_sqlite_create (362krb5_context /*context*/,363HDB **/*db*/,364const char */*argument*/);365366krb5_error_code367hdb_unlock (int /*fd*/);368369krb5_error_code370hdb_unseal_key (371krb5_context /*context*/,372HDB */*db*/,373Key */*k*/);374375krb5_error_code376hdb_unseal_key_mkey (377krb5_context /*context*/,378Key */*k*/,379hdb_master_key /*mkey*/);380381krb5_error_code382hdb_unseal_keys (383krb5_context /*context*/,384HDB */*db*/,385hdb_entry */*ent*/);386387krb5_error_code388hdb_unseal_keys_mkey (389krb5_context /*context*/,390hdb_entry */*ent*/,391hdb_master_key /*mkey*/);392393int394hdb_value2entry (395krb5_context /*context*/,396krb5_data */*value*/,397hdb_entry */*ent*/);398399int400hdb_value2entry_alias (401krb5_context /*context*/,402krb5_data */*value*/,403hdb_entry_alias */*ent*/);404405krb5_error_code406hdb_write_master_key (407krb5_context /*context*/,408const char */*filename*/,409hdb_master_key /*mkey*/);410411#ifdef __cplusplus412}413#endif414415#endif /* __hdb_protos_h__ */416417418