Home | History | Annotate | Line # | Download | only in include
hdb-protos.h revision 1.1.20.1
      1       1.1  elric /* This is a generated file */
      2       1.1  elric #ifndef __hdb_protos_h__
      3       1.1  elric #define __hdb_protos_h__
      4  1.1.20.1    snj #ifndef DOXY
      5       1.1  elric 
      6       1.1  elric #include <stdarg.h>
      7       1.1  elric 
      8       1.1  elric #ifdef __cplusplus
      9       1.1  elric extern "C" {
     10       1.1  elric #endif
     11       1.1  elric 
     12       1.1  elric krb5_error_code
     13  1.1.20.1    snj entry2mit_string_int (
     14  1.1.20.1    snj 	krb5_context /*context*/,
     15  1.1.20.1    snj 	krb5_storage */*sp*/,
     16  1.1.20.1    snj 	hdb_entry */*ent*/);
     17  1.1.20.1    snj 
     18  1.1.20.1    snj /**
     19  1.1.20.1    snj  * This function adds an HDB entry's current keyset to the entry's key
     20  1.1.20.1    snj  * history.  The current keyset is left alone; the caller is responsible
     21  1.1.20.1    snj  * for freeing it.
     22  1.1.20.1    snj  *
     23  1.1.20.1    snj  * @param context   Context
     24  1.1.20.1    snj  * @param entry	    HDB entry
     25  1.1.20.1    snj  */
     26  1.1.20.1    snj 
     27  1.1.20.1    snj krb5_error_code
     28  1.1.20.1    snj hdb_add_current_keys_to_history (
     29  1.1.20.1    snj 	krb5_context /*context*/,
     30  1.1.20.1    snj 	hdb_entry */*entry*/);
     31  1.1.20.1    snj 
     32  1.1.20.1    snj /**
     33  1.1.20.1    snj  * This function adds a key to an HDB entry's key history.
     34  1.1.20.1    snj  *
     35  1.1.20.1    snj  * @param context   Context
     36  1.1.20.1    snj  * @param entry	    HDB entry
     37  1.1.20.1    snj  * @param kvno	    Key version number of the key to add to the history
     38  1.1.20.1    snj  * @param key	    The Key to add
     39  1.1.20.1    snj  */
     40  1.1.20.1    snj 
     41  1.1.20.1    snj krb5_error_code
     42  1.1.20.1    snj hdb_add_history_key (
     43  1.1.20.1    snj 	krb5_context /*context*/,
     44  1.1.20.1    snj 	hdb_entry */*entry*/,
     45  1.1.20.1    snj 	krb5_kvno /*kvno*/,
     46  1.1.20.1    snj 	Key */*key*/);
     47  1.1.20.1    snj 
     48  1.1.20.1    snj krb5_error_code
     49       1.1  elric hdb_add_master_key (
     50       1.1  elric 	krb5_context /*context*/,
     51       1.1  elric 	krb5_keyblock */*key*/,
     52       1.1  elric 	hdb_master_key */*inout*/);
     53       1.1  elric 
     54  1.1.20.1    snj /**
     55  1.1.20.1    snj  * This function changes an hdb_entry's kvno, swapping the current key
     56  1.1.20.1    snj  * set with a historical keyset.  If no historical keys are found then
     57  1.1.20.1    snj  * an error is returned (the caller can still set entry->kvno directly).
     58  1.1.20.1    snj  *
     59  1.1.20.1    snj  * @param context	krb5_context
     60  1.1.20.1    snj  * @param new_kvno	New kvno for the entry
     61  1.1.20.1    snj  * @param entry		hdb_entry to modify
     62  1.1.20.1    snj  */
     63  1.1.20.1    snj 
     64  1.1.20.1    snj krb5_error_code
     65  1.1.20.1    snj hdb_change_kvno (
     66  1.1.20.1    snj 	krb5_context /*context*/,
     67  1.1.20.1    snj 	krb5_kvno /*new_kvno*/,
     68  1.1.20.1    snj 	hdb_entry */*entry*/);
     69  1.1.20.1    snj 
     70       1.1  elric krb5_error_code
     71       1.1  elric hdb_check_db_format (
     72       1.1  elric 	krb5_context /*context*/,
     73       1.1  elric 	HDB */*db*/);
     74       1.1  elric 
     75       1.1  elric krb5_error_code
     76       1.1  elric hdb_clear_extension (
     77       1.1  elric 	krb5_context /*context*/,
     78       1.1  elric 	hdb_entry */*entry*/,
     79       1.1  elric 	int /*type*/);
     80       1.1  elric 
     81       1.1  elric krb5_error_code
     82       1.1  elric hdb_clear_master_key (
     83       1.1  elric 	krb5_context /*context*/,
     84       1.1  elric 	HDB */*db*/);
     85       1.1  elric 
     86  1.1.20.1    snj /**
     87  1.1.20.1    snj  * Create a handle for a Kerberos database
     88  1.1.20.1    snj  *
     89  1.1.20.1    snj  * Create a handle for a Kerberos database backend specified by a
     90  1.1.20.1    snj  * filename.  Doesn't create a file if its doesn't exists, you have to
     91  1.1.20.1    snj  * use O_CREAT to tell the backend to create the file.
     92  1.1.20.1    snj  */
     93  1.1.20.1    snj 
     94       1.1  elric krb5_error_code
     95       1.1  elric hdb_create (
     96       1.1  elric 	krb5_context /*context*/,
     97       1.1  elric 	HDB **/*db*/,
     98       1.1  elric 	const char */*filename*/);
     99       1.1  elric 
    100       1.1  elric krb5_error_code
    101  1.1.20.1    snj hdb_db1_create (
    102       1.1  elric 	krb5_context /*context*/,
    103       1.1  elric 	HDB **/*db*/,
    104       1.1  elric 	const char */*filename*/);
    105       1.1  elric 
    106  1.1.20.1    snj krb5_error_code
    107  1.1.20.1    snj hdb_db3_create (
    108  1.1.20.1    snj 	krb5_context /*context*/,
    109  1.1.20.1    snj 	HDB **/*db*/,
    110  1.1.20.1    snj 	const char */*filename*/);
    111  1.1.20.1    snj 
    112  1.1.20.1    snj /**
    113  1.1.20.1    snj  * Return the directory where the hdb database resides.
    114  1.1.20.1    snj  *
    115  1.1.20.1    snj  * @param context Kerberos 5 context.
    116  1.1.20.1    snj  *
    117  1.1.20.1    snj  * @return string pointing to directory.
    118  1.1.20.1    snj  */
    119  1.1.20.1    snj 
    120       1.1  elric const char *
    121       1.1  elric hdb_db_dir (krb5_context /*context*/);
    122       1.1  elric 
    123       1.1  elric const char *
    124       1.1  elric hdb_dbinfo_get_acl_file (
    125       1.1  elric 	krb5_context /*context*/,
    126       1.1  elric 	struct hdb_dbinfo */*dbp*/);
    127       1.1  elric 
    128       1.1  elric const krb5_config_binding *
    129       1.1  elric hdb_dbinfo_get_binding (
    130       1.1  elric 	krb5_context /*context*/,
    131       1.1  elric 	struct hdb_dbinfo */*dbp*/);
    132       1.1  elric 
    133       1.1  elric const char *
    134       1.1  elric hdb_dbinfo_get_dbname (
    135       1.1  elric 	krb5_context /*context*/,
    136       1.1  elric 	struct hdb_dbinfo */*dbp*/);
    137       1.1  elric 
    138       1.1  elric const char *
    139       1.1  elric hdb_dbinfo_get_label (
    140       1.1  elric 	krb5_context /*context*/,
    141       1.1  elric 	struct hdb_dbinfo */*dbp*/);
    142       1.1  elric 
    143       1.1  elric const char *
    144       1.1  elric hdb_dbinfo_get_log_file (
    145       1.1  elric 	krb5_context /*context*/,
    146       1.1  elric 	struct hdb_dbinfo */*dbp*/);
    147       1.1  elric 
    148       1.1  elric const char *
    149       1.1  elric hdb_dbinfo_get_mkey_file (
    150       1.1  elric 	krb5_context /*context*/,
    151       1.1  elric 	struct hdb_dbinfo */*dbp*/);
    152       1.1  elric 
    153       1.1  elric struct hdb_dbinfo *
    154       1.1  elric hdb_dbinfo_get_next (
    155       1.1  elric 	struct hdb_dbinfo */*dbp*/,
    156       1.1  elric 	struct hdb_dbinfo */*dbprevp*/);
    157       1.1  elric 
    158       1.1  elric const char *
    159       1.1  elric hdb_dbinfo_get_realm (
    160       1.1  elric 	krb5_context /*context*/,
    161       1.1  elric 	struct hdb_dbinfo */*dbp*/);
    162       1.1  elric 
    163  1.1.20.1    snj /**
    164  1.1.20.1    snj  * Return the default hdb database resides.
    165  1.1.20.1    snj  *
    166  1.1.20.1    snj  * @param context Kerberos 5 context.
    167  1.1.20.1    snj  *
    168  1.1.20.1    snj  * @return string pointing to directory.
    169  1.1.20.1    snj  */
    170  1.1.20.1    snj 
    171       1.1  elric const char *
    172       1.1  elric hdb_default_db (krb5_context /*context*/);
    173       1.1  elric 
    174       1.1  elric krb5_error_code
    175       1.1  elric hdb_enctype2key (
    176       1.1  elric 	krb5_context /*context*/,
    177       1.1  elric 	hdb_entry */*e*/,
    178  1.1.20.1    snj 	const Keys */*keyset*/,
    179       1.1  elric 	krb5_enctype /*enctype*/,
    180       1.1  elric 	Key **/*key*/);
    181       1.1  elric 
    182       1.1  elric krb5_error_code
    183       1.1  elric hdb_entry2string (
    184       1.1  elric 	krb5_context /*context*/,
    185       1.1  elric 	hdb_entry */*ent*/,
    186       1.1  elric 	char **/*str*/);
    187       1.1  elric 
    188       1.1  elric int
    189       1.1  elric hdb_entry2value (
    190       1.1  elric 	krb5_context /*context*/,
    191       1.1  elric 	const hdb_entry */*ent*/,
    192       1.1  elric 	krb5_data */*value*/);
    193       1.1  elric 
    194       1.1  elric int
    195       1.1  elric hdb_entry_alias2value (
    196       1.1  elric 	krb5_context /*context*/,
    197       1.1  elric 	const hdb_entry_alias */*alias*/,
    198       1.1  elric 	krb5_data */*value*/);
    199       1.1  elric 
    200       1.1  elric krb5_error_code
    201       1.1  elric hdb_entry_check_mandatory (
    202       1.1  elric 	krb5_context /*context*/,
    203       1.1  elric 	const hdb_entry */*ent*/);
    204       1.1  elric 
    205  1.1.20.1    snj krb5_error_code
    206  1.1.20.1    snj hdb_entry_clear_kvno_diff_clnt (
    207  1.1.20.1    snj 	krb5_context /*context*/,
    208  1.1.20.1    snj 	hdb_entry */*entry*/);
    209  1.1.20.1    snj 
    210  1.1.20.1    snj krb5_error_code
    211  1.1.20.1    snj hdb_entry_clear_kvno_diff_svc (
    212  1.1.20.1    snj 	krb5_context /*context*/,
    213  1.1.20.1    snj 	hdb_entry */*entry*/);
    214  1.1.20.1    snj 
    215       1.1  elric int
    216       1.1  elric hdb_entry_clear_password (
    217       1.1  elric 	krb5_context /*context*/,
    218       1.1  elric 	hdb_entry */*entry*/);
    219       1.1  elric 
    220       1.1  elric krb5_error_code
    221       1.1  elric hdb_entry_get_ConstrainedDelegACL (
    222       1.1  elric 	const hdb_entry */*entry*/,
    223       1.1  elric 	const HDB_Ext_Constrained_delegation_acl **/*a*/);
    224       1.1  elric 
    225       1.1  elric krb5_error_code
    226       1.1  elric hdb_entry_get_aliases (
    227       1.1  elric 	const hdb_entry */*entry*/,
    228       1.1  elric 	const HDB_Ext_Aliases **/*a*/);
    229       1.1  elric 
    230  1.1.20.1    snj unsigned int
    231  1.1.20.1    snj hdb_entry_get_kvno_diff_clnt (const hdb_entry */*entry*/);
    232  1.1.20.1    snj 
    233  1.1.20.1    snj unsigned int
    234  1.1.20.1    snj hdb_entry_get_kvno_diff_svc (const hdb_entry */*entry*/);
    235  1.1.20.1    snj 
    236       1.1  elric int
    237       1.1  elric hdb_entry_get_password (
    238       1.1  elric 	krb5_context /*context*/,
    239       1.1  elric 	HDB */*db*/,
    240       1.1  elric 	const hdb_entry */*entry*/,
    241       1.1  elric 	char **/*p*/);
    242       1.1  elric 
    243       1.1  elric krb5_error_code
    244       1.1  elric hdb_entry_get_pkinit_acl (
    245       1.1  elric 	const hdb_entry */*entry*/,
    246       1.1  elric 	const HDB_Ext_PKINIT_acl **/*a*/);
    247       1.1  elric 
    248       1.1  elric krb5_error_code
    249       1.1  elric hdb_entry_get_pkinit_cert (
    250       1.1  elric 	const hdb_entry */*entry*/,
    251       1.1  elric 	const HDB_Ext_PKINIT_cert **/*a*/);
    252       1.1  elric 
    253       1.1  elric krb5_error_code
    254       1.1  elric hdb_entry_get_pkinit_hash (
    255       1.1  elric 	const hdb_entry */*entry*/,
    256       1.1  elric 	const HDB_Ext_PKINIT_hash **/*a*/);
    257       1.1  elric 
    258       1.1  elric krb5_error_code
    259       1.1  elric hdb_entry_get_pw_change_time (
    260       1.1  elric 	const hdb_entry */*entry*/,
    261       1.1  elric 	time_t */*t*/);
    262       1.1  elric 
    263  1.1.20.1    snj krb5_error_code
    264  1.1.20.1    snj hdb_entry_set_kvno_diff_clnt (
    265  1.1.20.1    snj 	krb5_context /*context*/,
    266  1.1.20.1    snj 	hdb_entry */*entry*/,
    267  1.1.20.1    snj 	unsigned int /*diff*/);
    268  1.1.20.1    snj 
    269  1.1.20.1    snj krb5_error_code
    270  1.1.20.1    snj hdb_entry_set_kvno_diff_svc (
    271  1.1.20.1    snj 	krb5_context /*context*/,
    272  1.1.20.1    snj 	hdb_entry */*entry*/,
    273  1.1.20.1    snj 	unsigned int /*diff*/);
    274  1.1.20.1    snj 
    275       1.1  elric int
    276       1.1  elric hdb_entry_set_password (
    277       1.1  elric 	krb5_context /*context*/,
    278       1.1  elric 	HDB */*db*/,
    279       1.1  elric 	hdb_entry */*entry*/,
    280       1.1  elric 	const char */*p*/);
    281       1.1  elric 
    282       1.1  elric krb5_error_code
    283       1.1  elric hdb_entry_set_pw_change_time (
    284       1.1  elric 	krb5_context /*context*/,
    285       1.1  elric 	hdb_entry */*entry*/,
    286       1.1  elric 	time_t /*t*/);
    287       1.1  elric 
    288       1.1  elric HDB_extension *
    289       1.1  elric hdb_find_extension (
    290       1.1  elric 	const hdb_entry */*entry*/,
    291       1.1  elric 	int /*type*/);
    292       1.1  elric 
    293       1.1  elric krb5_error_code
    294       1.1  elric hdb_foreach (
    295       1.1  elric 	krb5_context /*context*/,
    296       1.1  elric 	HDB */*db*/,
    297       1.1  elric 	unsigned /*flags*/,
    298       1.1  elric 	hdb_foreach_func_t /*func*/,
    299       1.1  elric 	void */*data*/);
    300       1.1  elric 
    301       1.1  elric void
    302       1.1  elric hdb_free_dbinfo (
    303       1.1  elric 	krb5_context /*context*/,
    304       1.1  elric 	struct hdb_dbinfo **/*dbp*/);
    305       1.1  elric 
    306       1.1  elric void
    307       1.1  elric hdb_free_entry (
    308       1.1  elric 	krb5_context /*context*/,
    309       1.1  elric 	hdb_entry_ex */*ent*/);
    310       1.1  elric 
    311       1.1  elric void
    312       1.1  elric hdb_free_key (Key */*key*/);
    313       1.1  elric 
    314       1.1  elric void
    315       1.1  elric hdb_free_keys (
    316       1.1  elric 	krb5_context /*context*/,
    317       1.1  elric 	int /*len*/,
    318       1.1  elric 	Key */*keys*/);
    319       1.1  elric 
    320       1.1  elric void
    321       1.1  elric hdb_free_master_key (
    322       1.1  elric 	krb5_context /*context*/,
    323       1.1  elric 	hdb_master_key /*mkey*/);
    324       1.1  elric 
    325       1.1  elric krb5_error_code
    326       1.1  elric hdb_generate_key_set (
    327       1.1  elric 	krb5_context /*context*/,
    328       1.1  elric 	krb5_principal /*principal*/,
    329  1.1.20.1    snj 	krb5_key_salt_tuple */*ks_tuple*/,
    330  1.1.20.1    snj 	int /*n_ks_tuple*/,
    331       1.1  elric 	Key **/*ret_key_set*/,
    332       1.1  elric 	size_t */*nkeyset*/,
    333       1.1  elric 	int /*no_salt*/);
    334       1.1  elric 
    335       1.1  elric krb5_error_code
    336       1.1  elric hdb_generate_key_set_password (
    337       1.1  elric 	krb5_context /*context*/,
    338       1.1  elric 	krb5_principal /*principal*/,
    339       1.1  elric 	const char */*password*/,
    340  1.1.20.1    snj 	krb5_key_salt_tuple */*ks_tuple*/,
    341  1.1.20.1    snj 	int /*n_ks_tuple*/,
    342       1.1  elric 	Key **/*keys*/,
    343       1.1  elric 	size_t */*num_keys*/);
    344       1.1  elric 
    345       1.1  elric int
    346       1.1  elric hdb_get_dbinfo (
    347       1.1  elric 	krb5_context /*context*/,
    348       1.1  elric 	struct hdb_dbinfo **/*dbp*/);
    349       1.1  elric 
    350       1.1  elric krb5_error_code
    351       1.1  elric hdb_init_db (
    352       1.1  elric 	krb5_context /*context*/,
    353       1.1  elric 	HDB */*db*/);
    354       1.1  elric 
    355       1.1  elric int
    356       1.1  elric hdb_key2principal (
    357       1.1  elric 	krb5_context /*context*/,
    358       1.1  elric 	krb5_data */*key*/,
    359       1.1  elric 	krb5_principal /*p*/);
    360       1.1  elric 
    361       1.1  elric krb5_error_code
    362       1.1  elric hdb_keytab_create (
    363       1.1  elric 	krb5_context /*context*/,
    364       1.1  elric 	HDB ** /*db*/,
    365       1.1  elric 	const char */*arg*/);
    366       1.1  elric 
    367  1.1.20.1    snj const Keys *
    368  1.1.20.1    snj hdb_kvno2keys (
    369  1.1.20.1    snj 	krb5_context /*context*/,
    370  1.1.20.1    snj 	const hdb_entry */*e*/,
    371  1.1.20.1    snj 	krb5_kvno /*kvno*/);
    372  1.1.20.1    snj 
    373       1.1  elric krb5_error_code
    374       1.1  elric hdb_ldap_create (
    375       1.1  elric 	krb5_context /*context*/,
    376       1.1  elric 	HDB ** /*db*/,
    377       1.1  elric 	const char */*arg*/);
    378       1.1  elric 
    379       1.1  elric krb5_error_code
    380       1.1  elric hdb_ldapi_create (
    381       1.1  elric 	krb5_context /*context*/,
    382       1.1  elric 	HDB ** /*db*/,
    383       1.1  elric 	const char */*arg*/);
    384       1.1  elric 
    385       1.1  elric krb5_error_code
    386       1.1  elric hdb_list_builtin (
    387       1.1  elric 	krb5_context /*context*/,
    388       1.1  elric 	char **/*list*/);
    389       1.1  elric 
    390       1.1  elric krb5_error_code
    391       1.1  elric hdb_lock (
    392       1.1  elric 	int /*fd*/,
    393       1.1  elric 	int /*operation*/);
    394       1.1  elric 
    395       1.1  elric krb5_error_code
    396       1.1  elric hdb_mdb_create (
    397       1.1  elric 	krb5_context /*context*/,
    398       1.1  elric 	HDB **/*db*/,
    399       1.1  elric 	const char */*filename*/);
    400       1.1  elric 
    401       1.1  elric krb5_error_code
    402  1.1.20.1    snj hdb_mitdb_create (
    403  1.1.20.1    snj 	krb5_context /*context*/,
    404  1.1.20.1    snj 	HDB **/*db*/,
    405  1.1.20.1    snj 	const char */*filename*/);
    406  1.1.20.1    snj 
    407  1.1.20.1    snj krb5_error_code
    408       1.1  elric hdb_ndbm_create (
    409       1.1  elric 	krb5_context /*context*/,
    410       1.1  elric 	HDB **/*db*/,
    411       1.1  elric 	const char */*filename*/);
    412       1.1  elric 
    413       1.1  elric krb5_error_code
    414       1.1  elric hdb_next_enctype2key (
    415       1.1  elric 	krb5_context /*context*/,
    416       1.1  elric 	const hdb_entry */*e*/,
    417  1.1.20.1    snj 	const Keys */*keyset*/,
    418       1.1  elric 	krb5_enctype /*enctype*/,
    419       1.1  elric 	Key **/*key*/);
    420       1.1  elric 
    421       1.1  elric int
    422       1.1  elric hdb_principal2key (
    423       1.1  elric 	krb5_context /*context*/,
    424       1.1  elric 	krb5_const_principal /*p*/,
    425       1.1  elric 	krb5_data */*key*/);
    426       1.1  elric 
    427       1.1  elric krb5_error_code
    428       1.1  elric hdb_print_entry (
    429       1.1  elric 	krb5_context /*context*/,
    430       1.1  elric 	HDB */*db*/,
    431       1.1  elric 	hdb_entry_ex */*entry*/,
    432       1.1  elric 	void */*data*/);
    433       1.1  elric 
    434       1.1  elric krb5_error_code
    435       1.1  elric hdb_process_master_key (
    436       1.1  elric 	krb5_context /*context*/,
    437       1.1  elric 	int /*kvno*/,
    438       1.1  elric 	krb5_keyblock */*key*/,
    439       1.1  elric 	krb5_enctype /*etype*/,
    440       1.1  elric 	hdb_master_key */*mkey*/);
    441       1.1  elric 
    442  1.1.20.1    snj /**
    443  1.1.20.1    snj  * This function prunes an HDB entry's keys that are too old to have been used
    444  1.1.20.1    snj  * to mint still valid tickets (based on the entry's maximum ticket lifetime).
    445  1.1.20.1    snj  *
    446  1.1.20.1    snj  * @param context   Context
    447  1.1.20.1    snj  * @param entry	    HDB entry
    448  1.1.20.1    snj  */
    449  1.1.20.1    snj 
    450  1.1.20.1    snj krb5_error_code
    451  1.1.20.1    snj hdb_prune_keys (
    452  1.1.20.1    snj 	krb5_context /*context*/,
    453  1.1.20.1    snj 	hdb_entry */*entry*/);
    454  1.1.20.1    snj 
    455       1.1  elric krb5_error_code
    456       1.1  elric hdb_read_master_key (
    457       1.1  elric 	krb5_context /*context*/,
    458       1.1  elric 	const char */*filename*/,
    459       1.1  elric 	hdb_master_key */*mkey*/);
    460       1.1  elric 
    461       1.1  elric krb5_error_code
    462       1.1  elric hdb_replace_extension (
    463       1.1  elric 	krb5_context /*context*/,
    464       1.1  elric 	hdb_entry */*entry*/,
    465       1.1  elric 	const HDB_extension */*ext*/);
    466       1.1  elric 
    467       1.1  elric krb5_error_code
    468       1.1  elric hdb_seal_key (
    469       1.1  elric 	krb5_context /*context*/,
    470       1.1  elric 	HDB */*db*/,
    471       1.1  elric 	Key */*k*/);
    472       1.1  elric 
    473       1.1  elric krb5_error_code
    474       1.1  elric hdb_seal_key_mkey (
    475       1.1  elric 	krb5_context /*context*/,
    476       1.1  elric 	Key */*k*/,
    477       1.1  elric 	hdb_master_key /*mkey*/);
    478       1.1  elric 
    479       1.1  elric krb5_error_code
    480       1.1  elric hdb_seal_keys (
    481       1.1  elric 	krb5_context /*context*/,
    482       1.1  elric 	HDB */*db*/,
    483       1.1  elric 	hdb_entry */*ent*/);
    484       1.1  elric 
    485       1.1  elric krb5_error_code
    486       1.1  elric hdb_seal_keys_mkey (
    487       1.1  elric 	krb5_context /*context*/,
    488       1.1  elric 	hdb_entry */*ent*/,
    489       1.1  elric 	hdb_master_key /*mkey*/);
    490       1.1  elric 
    491       1.1  elric krb5_error_code
    492  1.1.20.1    snj hdb_set_last_modified_by (
    493  1.1.20.1    snj 	krb5_context /*context*/,
    494  1.1.20.1    snj 	hdb_entry */*entry*/,
    495  1.1.20.1    snj 	krb5_principal /*modby*/,
    496  1.1.20.1    snj 	time_t /*modtime*/);
    497  1.1.20.1    snj 
    498  1.1.20.1    snj krb5_error_code
    499       1.1  elric hdb_set_master_key (
    500       1.1  elric 	krb5_context /*context*/,
    501       1.1  elric 	HDB */*db*/,
    502       1.1  elric 	krb5_keyblock */*key*/);
    503       1.1  elric 
    504       1.1  elric krb5_error_code
    505       1.1  elric hdb_set_master_keyfile (
    506       1.1  elric 	krb5_context /*context*/,
    507       1.1  elric 	HDB */*db*/,
    508       1.1  elric 	const char */*keyfile*/);
    509       1.1  elric 
    510  1.1.20.1    snj /**
    511  1.1.20.1    snj  * Create SQLITE object, and creates the on disk database if its doesn't exists.
    512  1.1.20.1    snj  *
    513  1.1.20.1    snj  * @param context A Kerberos 5 context.
    514  1.1.20.1    snj  * @param db a returned database handle.
    515  1.1.20.1    snj  * @param filename filename
    516  1.1.20.1    snj  *
    517  1.1.20.1    snj  * @return        0 on success, an error code if not
    518  1.1.20.1    snj  */
    519  1.1.20.1    snj 
    520       1.1  elric krb5_error_code
    521       1.1  elric hdb_sqlite_create (
    522       1.1  elric 	krb5_context /*context*/,
    523       1.1  elric 	HDB **/*db*/,
    524  1.1.20.1    snj 	const char */*filename*/);
    525       1.1  elric 
    526       1.1  elric krb5_error_code
    527       1.1  elric hdb_unlock (int /*fd*/);
    528       1.1  elric 
    529       1.1  elric krb5_error_code
    530       1.1  elric hdb_unseal_key (
    531       1.1  elric 	krb5_context /*context*/,
    532       1.1  elric 	HDB */*db*/,
    533       1.1  elric 	Key */*k*/);
    534       1.1  elric 
    535       1.1  elric krb5_error_code
    536       1.1  elric hdb_unseal_key_mkey (
    537       1.1  elric 	krb5_context /*context*/,
    538       1.1  elric 	Key */*k*/,
    539       1.1  elric 	hdb_master_key /*mkey*/);
    540       1.1  elric 
    541       1.1  elric krb5_error_code
    542       1.1  elric hdb_unseal_keys (
    543       1.1  elric 	krb5_context /*context*/,
    544       1.1  elric 	HDB */*db*/,
    545       1.1  elric 	hdb_entry */*ent*/);
    546       1.1  elric 
    547       1.1  elric krb5_error_code
    548  1.1.20.1    snj hdb_unseal_keys_kvno (
    549  1.1.20.1    snj 	krb5_context /*context*/,
    550  1.1.20.1    snj 	HDB */*db*/,
    551  1.1.20.1    snj 	krb5_kvno /*kvno*/,
    552  1.1.20.1    snj 	unsigned /*flags*/,
    553  1.1.20.1    snj 	hdb_entry */*ent*/);
    554  1.1.20.1    snj 
    555  1.1.20.1    snj krb5_error_code
    556       1.1  elric hdb_unseal_keys_mkey (
    557       1.1  elric 	krb5_context /*context*/,
    558       1.1  elric 	hdb_entry */*ent*/,
    559       1.1  elric 	hdb_master_key /*mkey*/);
    560       1.1  elric 
    561       1.1  elric int
    562       1.1  elric hdb_value2entry (
    563       1.1  elric 	krb5_context /*context*/,
    564       1.1  elric 	krb5_data */*value*/,
    565       1.1  elric 	hdb_entry */*ent*/);
    566       1.1  elric 
    567       1.1  elric int
    568       1.1  elric hdb_value2entry_alias (
    569       1.1  elric 	krb5_context /*context*/,
    570       1.1  elric 	krb5_data */*value*/,
    571       1.1  elric 	hdb_entry_alias */*ent*/);
    572       1.1  elric 
    573       1.1  elric krb5_error_code
    574       1.1  elric hdb_write_master_key (
    575       1.1  elric 	krb5_context /*context*/,
    576       1.1  elric 	const char */*filename*/,
    577       1.1  elric 	hdb_master_key /*mkey*/);
    578       1.1  elric 
    579       1.1  elric #ifdef __cplusplus
    580       1.1  elric }
    581       1.1  elric #endif
    582       1.1  elric 
    583  1.1.20.1    snj #endif /* DOXY */
    584       1.1  elric #endif /* __hdb_protos_h__ */
    585