From a9e2c34d4de4323cbe8540698ca2edbbfb8f9de5 Mon Sep 17 00:00:00 2001 From: John Kohl Date: Fri, 2 Feb 1990 17:18:20 +0000 Subject: [PATCH] make realm_of_tgt a macro add kdc_convert_key, decrypt_tgs_req git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@233 dc483132-0cff-0310-8789-dd5450dbe970 --- src/kdc/kdc_util.h | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) diff --git a/src/kdc/kdc_util.h b/src/kdc/kdc_util.h index 8bfb8fedc..e8d77a187 100644 --- a/src/kdc/kdc_util.h +++ b/src/kdc/kdc_util.h @@ -18,20 +18,30 @@ krb5_error_code check_hot_list PROTOTYPE((krb5_ticket *)); krb5_boolean realm_compare PROTOTYPE((krb5_data *, krb5_principal)); -krb5_data * realm_of_tgt PROTOTYPE((krb5_ticket *)); krb5_error_code compress_transited PROTOTYPE((krb5_data, - krb5_principal, - krb5_data *)); + krb5_principal, + krb5_data *)); krb5_error_code concat_authorization_data PROTOTYPE((krb5_authdata **, krb5_authdata **, krb5_authdata ***)); krb5_error_code fetch_last_req_info PROTOTYPE((krb5_db_entry *, krb5_last_req_entry ***)); +krb5_error_code kdc_convert_key PROTOTYPE((krb5_keyblock *, + krb5_keyblock *, + int)); +krb5_error_code decrypt_tgs_req PROTOTYPE((krb5_tgs_req *)); + +/* which way to convert key? */ +#define CONVERT_INTO_DB 0 +#define CONVERT_OUTOF_DB 1 + #define isset(flagfield, flag) (flagfield & (flag)) #define set(flagfield, flag) (flagfield |= (flag)) #define clear(flagfield, flag) (flagfield &= ~(flag)) +#define realm_of_tgt(ticket) ((ticket)->server[0]) + #ifndef min #define min(a, b) ((a) < (b) ? (a) : (b)) #define max(a, b) ((a) > (b) ? (a) : (b)) -- 2.26.2