make realm_of_tgt a macro
authorJohn Kohl <jtkohl@mit.edu>
Fri, 2 Feb 1990 17:18:20 +0000 (17:18 +0000)
committerJohn Kohl <jtkohl@mit.edu>
Fri, 2 Feb 1990 17:18:20 +0000 (17:18 +0000)
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

index 8bfb8fedc03372791378c7f18c70fdc8b888a486..e8d77a187da5b9eca9ce695dd47203f5ca3d99da 100644 (file)
 
 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))