From: John Kohl Date: Fri, 19 Jan 1990 17:05:25 +0000 (+0000) Subject: add tag name to structure X-Git-Tag: krb5-1.0-alpha2~1236 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=a7ea3bf40b7a8962edbea307f612c154f900df71;p=krb5.git 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 --- diff --git a/src/include/krb5/kdb.h b/src/include/krb5/kdb.h index f1c488784..a5028c52e 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__ */