From a7ea3bf40b7a8962edbea307f612c154f900df71 Mon Sep 17 00:00:00 2001 From: John Kohl Date: Fri, 19 Jan 1990 17:05:25 +0000 Subject: [PATCH] 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 --- src/include/krb5/kdb.h | 40 +++++++++++++++++++++++++++++++++++++++- 1 file changed, 39 insertions(+), 1 deletion(-) 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__ */ -- 2.26.2