From 45f9fc314654603e59679ead6e23f0f0a0e03c23 Mon Sep 17 00:00:00 2001 From: John Kohl Date: Wed, 7 Feb 1990 17:41:08 +0000 Subject: add KRB5_KDC_MKEY_1, KRB5_KDC_MKEY_2, krb5_mkey_pwd_prompt1, krb5_mkey_pwd_prompt2 fix proto for krb5_db_free_principal add proto for krb5_db_fetch_mkey git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@304 dc483132-0cff-0310-8789-dd5450dbe970 --- src/include/krb5/kdb.h | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) (limited to 'src/include/krb5/kdb.h') diff --git a/src/include/krb5/kdb.h b/src/include/krb5/kdb.h index 7403285213..5fa365da94 100644 --- a/src/include/krb5/kdb.h +++ b/src/include/krb5/kdb.h @@ -39,6 +39,14 @@ typedef struct _krb5_db_entry { /* XXX depends on knowledge of krb5_parse_name() formats */ #define KRB5_KDB_M_NAME "K/M" /* Kerberos/Master */ +/* prompts used by default when reading the KDC password from the keyboard. */ +#define KRB5_KDC_MKEY_1 "Enter KDC database master key:" +#define KRB5_KDC_MKEY_2 "Re-enter KDC database master key to verify:" + +extern char *krb5_mkey_pwd_prompt1; +extern char *krb5_mkey_pwd_prompt2; + + /* libkdb.spec */ krb5_error_code krb5_db_set_name PROTOTYPE((char * )); @@ -62,12 +70,11 @@ krb5_error_code krb5_db_get_principal krb5_db_entry *, int *, krb5_boolean * )); -krb5_error_code krb5_db_free_principal +void krb5_db_free_principal PROTOTYPE((krb5_db_entry *, int )); krb5_error_code krb5_db_put_principal PROTOTYPE((krb5_db_entry *, - int , int * )); krb5_error_code krb5_db_iterate PROTOTYPE((krb5_error_code (* ) PROTOTYPE((krb5_pointer, @@ -75,5 +82,8 @@ krb5_error_code krb5_db_iterate krb5_pointer )); krb5_error_code krb5_db_verify_master_key PROTOTYPE((krb5_principal, krb5_keyblock *, krb5_encrypt_block *)); +krb5_error_code krb5_db_fetch_mkey + PROTOTYPE((krb5_principal, krb5_encrypt_block *, krb5_boolean, + krb5_keyblock * )); #endif /* __KRB5_KDB5__ */ -- cgit