summaryrefslogtreecommitdiffstats
path: root/src/include/kdb.h
diff options
context:
space:
mode:
authorTom Yu <tlyu@mit.edu>2009-10-31 00:48:38 +0000
committerTom Yu <tlyu@mit.edu>2009-10-31 00:48:38 +0000
commit02d6bcbc98a214e7aeaaa9f45f0db8784a7b743b (patch)
tree61b9147863cd8be3eff63903dc36cae168254bd5 /src/include/kdb.h
parent162ab371748cba0cc6f172419bd6e71fa04bb878 (diff)
downloadkrb5-02d6bcbc98a214e7aeaaa9f45f0db8784a7b743b.tar.gz
krb5-02d6bcbc98a214e7aeaaa9f45f0db8784a7b743b.tar.xz
krb5-02d6bcbc98a214e7aeaaa9f45f0db8784a7b743b.zip
make mark-cstyle
make reindent git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@23100 dc483132-0cff-0310-8789-dd5450dbe970
Diffstat (limited to 'src/include/kdb.h')
-rw-r--r--src/include/kdb.h128
1 files changed, 64 insertions, 64 deletions
diff --git a/src/include/kdb.h b/src/include/kdb.h
index d74e3e3235..7506f1c0e1 100644
--- a/src/include/kdb.h
+++ b/src/include/kdb.h
@@ -8,7 +8,7 @@
* require a specific license from the United States Government.
* It is the responsibility of any person or organization contemplating
* export to obtain such a license before exporting.
- *
+ *
* WITHIN THAT CONSTRAINT, permission to use, copy, modify, and
* distribute this software and its documentation for any purpose and
* without fee is hereby granted, provided that the above copyright
@@ -22,21 +22,21 @@
* M.I.T. makes no representations about the suitability of
* this software for any purpose. It is provided "as is" without express
* or implied warranty.
- *
+ *
*
* KDC Database interface definitions.
*/
/*
* Copyright (C) 1998 by the FundsXpress, INC.
- *
+ *
* All rights reserved.
- *
+ *
* Export of this software from the United States of America may require
* a specific license from the United States Government. It is the
* responsibility of any person or organization contemplating export to
* obtain such a license before exporting.
- *
+ *
* WITHIN THAT CONSTRAINT, permission to use, copy, modify, and
* distribute this software and its documentation for any purpose and
* without fee is hereby granted, provided that the above copyright
@@ -47,7 +47,7 @@
* permission. FundsXpress makes no representations about the suitability of
* this software for any purpose. It is provided "as is" without express
* or implied warranty.
- *
+ *
* THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR
* IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
* WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE.
@@ -112,12 +112,12 @@
*/
typedef struct _krb5_tl_data {
struct _krb5_tl_data* tl_data_next; /* NOT saved */
- krb5_int16 tl_data_type;
- krb5_ui_2 tl_data_length;
- krb5_octet * tl_data_contents;
+ krb5_int16 tl_data_type;
+ krb5_ui_2 tl_data_length;
+ krb5_octet * tl_data_contents;
} krb5_tl_data;
-/*
+/*
* If this ever changes up the version number and make the arrays be as
* big as necessary.
*
@@ -134,14 +134,14 @@ typedef struct _krb5_key_data {
#define KRB5_KDB_V1_KEY_DATA_ARRAY 2 /* # of array elements */
typedef struct _krb5_keysalt {
- krb5_int16 type;
+ krb5_int16 type;
krb5_data data; /* Length, data */
} krb5_keysalt;
typedef struct _krb5_db_entry_new {
krb5_magic magic; /* NOT saved */
- krb5_ui_2 len;
- krb5_ui_4 mask; /* members currently changed/set */
+ krb5_ui_2 len;
+ krb5_ui_4 mask; /* members currently changed/set */
krb5_flags attributes;
krb5_deltat max_life;
krb5_deltat max_renewable_life;
@@ -155,7 +155,7 @@ typedef struct _krb5_db_entry_new {
krb5_ui_2 e_length; /* Length of extra data */
krb5_octet * e_data; /* Extra data to be saved */
- krb5_principal princ; /* Length, data */
+ krb5_principal princ; /* Length, data */
krb5_tl_data * tl_data; /* Linked list */
krb5_key_data * key_data; /* Array */
} krb5_db_entry;
@@ -259,11 +259,11 @@ extern char *krb5_mkey_pwd_prompt2;
#define KRB5_KDB_OPEN_RO 1
#ifndef KRB5_KDB_SRV_TYPE_KDC
-#define KRB5_KDB_SRV_TYPE_KDC 0x0100
+#define KRB5_KDB_SRV_TYPE_KDC 0x0100
#endif
#ifndef KRB5_KDB_SRV_TYPE_ADMIN
-#define KRB5_KDB_SRV_TYPE_ADMIN 0x0200
+#define KRB5_KDB_SRV_TYPE_ADMIN 0x0200
#endif
#ifndef KRB5_KDB_SRV_TYPE_PASSWD
@@ -271,7 +271,7 @@ extern char *krb5_mkey_pwd_prompt2;
#endif
#ifndef KRB5_KDB_SRV_TYPE_OTHER
-#define KRB5_KDB_SRV_TYPE_OTHER 0x0400
+#define KRB5_KDB_SRV_TYPE_OTHER 0x0400
#endif
#define KRB5_KDB_OPT_SET_DB_NAME 0
@@ -322,7 +322,7 @@ krb5_error_code krb5_free_supported_realms ( krb5_context kcontext,
krb5_error_code krb5_db_set_master_key_ext ( krb5_context kcontext,
char *pwd,
krb5_keyblock *key );
-krb5_error_code krb5_db_set_mkey ( krb5_context context,
+krb5_error_code krb5_db_set_mkey ( krb5_context context,
krb5_keyblock *key);
krb5_error_code krb5_db_get_mkey ( krb5_context kcontext,
krb5_keyblock **key );
@@ -335,14 +335,14 @@ krb5_error_code krb5_db_get_mkey_list( krb5_context kcontext,
krb5_error_code krb5_db_free_master_key ( krb5_context kcontext,
krb5_keyblock *key );
-krb5_error_code krb5_db_store_master_key ( krb5_context kcontext,
- char *keyfile,
+krb5_error_code krb5_db_store_master_key ( krb5_context kcontext,
+ char *keyfile,
krb5_principal mname,
krb5_kvno kvno,
krb5_keyblock *key,
char *master_pwd);
-krb5_error_code krb5_db_store_master_key_list ( krb5_context kcontext,
- char *keyfile,
+krb5_error_code krb5_db_store_master_key_list ( krb5_context kcontext,
+ char *keyfile,
krb5_principal mname,
krb5_keylist_node *keylist,
char *master_pwd);
@@ -379,12 +379,12 @@ krb5_dbe_find_enctype( krb5_context kcontext,
krb5_key_data **kdatap);
-krb5_error_code krb5_dbe_search_enctype ( krb5_context kcontext,
- krb5_db_entry *dbentp,
- krb5_int32 *start,
- krb5_int32 ktype,
- krb5_int32 stype,
- krb5_int32 kvno,
+krb5_error_code krb5_dbe_search_enctype ( krb5_context kcontext,
+ krb5_db_entry *dbentp,
+ krb5_int32 *start,
+ krb5_int32 ktype,
+ krb5_int32 stype,
+ krb5_int32 kvno,
krb5_key_data **kdatap);
krb5_error_code
@@ -437,7 +437,7 @@ krb5_dbe_lookup_mod_princ_data( krb5_context context,
krb5_db_entry * entry,
krb5_timestamp * mod_time,
krb5_principal * mod_princ);
-
+
krb5_error_code
krb5_dbe_lookup_mkey_aux( krb5_context context,
krb5_db_entry * entry,
@@ -552,12 +552,12 @@ krb5_db_get_key_data_kvno( krb5_context context,
*/
krb5_error_code
-krb5_dbe_def_search_enctype( krb5_context kcontext,
- krb5_db_entry *dbentp,
- krb5_int32 *start,
- krb5_int32 ktype,
- krb5_int32 stype,
- krb5_int32 kvno,
+krb5_dbe_def_search_enctype( krb5_context kcontext,
+ krb5_db_entry *dbentp,
+ krb5_int32 *start,
+ krb5_int32 ktype,
+ krb5_int32 stype,
+ krb5_int32 kvno,
krb5_key_data **kdatap);
krb5_error_code
@@ -651,32 +651,32 @@ krb5_dbekd_def_encrypt_key_data( krb5_context context,
int keyver,
krb5_key_data * key_data);
-krb5_error_code
-krb5_db_create_policy( krb5_context kcontext,
+krb5_error_code
+krb5_db_create_policy( krb5_context kcontext,
osa_policy_ent_t policy);
-krb5_error_code
-krb5_db_get_policy ( krb5_context kcontext,
- char *name,
+krb5_error_code
+krb5_db_get_policy ( krb5_context kcontext,
+ char *name,
osa_policy_ent_t *policy,
int *nentries);
-krb5_error_code
-krb5_db_put_policy( krb5_context kcontext,
+krb5_error_code
+krb5_db_put_policy( krb5_context kcontext,
osa_policy_ent_t policy);
-krb5_error_code
+krb5_error_code
krb5_db_iter_policy( krb5_context kcontext,
char *match_entry,
osa_adb_iter_policy_func func,
void *data);
-krb5_error_code
-krb5_db_delete_policy( krb5_context kcontext,
+krb5_error_code
+krb5_db_delete_policy( krb5_context kcontext,
char *policy);
-void
-krb5_db_free_policy( krb5_context kcontext,
+void
+krb5_db_free_policy( krb5_context kcontext,
osa_policy_ent_t policy);
@@ -741,8 +741,8 @@ typedef struct _kdb_vftabl {
char *conf_section,
char ** db_args );
- krb5_error_code (*db_get_age) ( krb5_context kcontext,
- char *db_name,
+ krb5_error_code (*db_get_age) ( krb5_context kcontext,
+ char *db_name,
time_t *age );
krb5_error_code (*db_set_option) ( krb5_context kcontext,
@@ -820,8 +820,8 @@ typedef struct _kdb_vftabl {
/* optional functions */
- krb5_error_code (*set_master_key) ( krb5_context kcontext,
- char *pwd,
+ krb5_error_code (*set_master_key) ( krb5_context kcontext,
+ char *pwd,
krb5_keyblock *key);
krb5_error_code (*get_master_key) ( krb5_context kcontext,
@@ -835,12 +835,12 @@ typedef struct _kdb_vftabl {
krb5_error_code (*setup_master_key_name) ( krb5_context kcontext,
char *keyname,
- char *realm,
- char **fullname,
+ char *realm,
+ char **fullname,
krb5_principal *principal);
- krb5_error_code (*store_master_key) ( krb5_context kcontext,
- char *db_arg,
+ krb5_error_code (*store_master_key) ( krb5_context kcontext,
+ char *db_arg,
krb5_principal mname,
krb5_kvno kvno,
krb5_keyblock *key,
@@ -863,20 +863,20 @@ typedef struct _kdb_vftabl {
krb5_kvno kvno,
krb5_keylist_node **mkeys_list);
- krb5_error_code (*store_master_key_list) ( krb5_context kcontext,
- char *db_arg,
+ krb5_error_code (*store_master_key_list) ( krb5_context kcontext,
+ char *db_arg,
krb5_principal mname,
krb5_keylist_node *keylist,
char *master_pwd);
- krb5_error_code (*dbe_search_enctype) ( krb5_context kcontext,
- krb5_db_entry *dbentp,
- krb5_int32 *start,
- krb5_int32 ktype,
- krb5_int32 stype,
- krb5_int32 kvno,
+ krb5_error_code (*dbe_search_enctype) ( krb5_context kcontext,
+ krb5_db_entry *dbentp,
+ krb5_int32 *start,
+ krb5_int32 ktype,
+ krb5_int32 stype,
+ krb5_int32 kvno,
krb5_key_data **kdatap);
-
+
krb5_error_code
(*db_change_pwd) ( krb5_context context,