diff options
author | John Kohl <jtkohl@mit.edu> | 1990-01-19 17:05:25 +0000 |
---|---|---|
committer | John Kohl <jtkohl@mit.edu> | 1990-01-19 17:05:25 +0000 |
commit | a7ea3bf40b7a8962edbea307f612c154f900df71 (patch) | |
tree | ebf2757f2ffa716e6bda9b48bc50dbfff389d37e /src/include/krb5/kdb.h | |
parent | a46539a160b6bb03bbe6f013c46f0807bdac3a59 (diff) | |
download | krb5-a7ea3bf40b7a8962edbea307f612c154f900df71.tar.gz krb5-a7ea3bf40b7a8962edbea307f612c154f900df71.tar.xz krb5-a7ea3bf40b7a8962edbea307f612c154f900df71.zip |
add tag name to structure
add KRB5_KDB_M_NAME
add prototypes
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@147 dc483132-0cff-0310-8789-dd5450dbe970
Diffstat (limited to 'src/include/krb5/kdb.h')
-rw-r--r-- | src/include/krb5/kdb.h | 40 |
1 files changed, 39 insertions, 1 deletions
diff --git a/src/include/krb5/kdb.h b/src/include/krb5/kdb.h index f1c4887840..a5028c52e1 100644 --- a/src/include/krb5/kdb.h +++ b/src/include/krb5/kdb.h @@ -16,7 +16,7 @@ #ifndef __KRB5_KDB5__ #define __KRB5_KDB5__ -typedef struct { +typedef struct _krb5_kdb_principal { krb5_principal principal; krb5_keyblock *key; krb5_kvno kvno; @@ -36,4 +36,42 @@ typedef struct { #define KRB5_KDB_DISALLOW_PROXIABLE 0x00000010 #define KRB5_KDB_DISALLOW_DUP_SKEY 0x00000020 +/* XXX depends on knowledge of krb5_parse_name() formats */ +#define KRB5_KDB_M_NAME "K/M" /* Kerberos/Master */ + +/* libkdb.spec */ +krb5_error_code krb5_db_set_name + PROTOTYPE((char *name )); +krb5_error_code krb5_db_set_nonblocking + PROTOTYPE((krb5_boolean newmode, + krb5_boolean *oldmode )); +krb5_error_code krb5_db_init + PROTOTYPE((void )); +krb5_error_code krb5_db_fini + PROTOTYPE((void )); +krb5_error_code krb5_db_get_age + PROTOTYPE((char *db_name, + krb5_timestamp *age )); +krb5_error_code krb5_db_create + PROTOTYPE((char *db_name )); +krb5_error_code krb5_db_rename + PROTOTYPE((char *from, + char *to )); +krb5_error_code krb5_db_get_principal + PROTOTYPE((krb5_principal searchfor, + krb5_kdb_principal *principal, + int *nprincs, + krb5_boolean *more )); +krb5_error_code krb5_db_free_principal + PROTOTYPE((krb5_kdb_principal *principal, + int nprincs )); +krb5_error_code krb5_db_put_principal + PROTOTYPE((krb5_kdb_principal *principal, + int nprincs, + int *nstored )); +krb5_error_code krb5_db_iterate + PROTOTYPE((krb5_error_code (*func ) PROTOTYPE((krb5_pointer, + krb5_kdb_principal *)), + krb5_pointer iterate_arg )); + #endif /* __KRB5_KDB5__ */ |