fix prototype for db_age to use time_t
authorJohn Kohl <jtkohl@mit.edu>
Tue, 13 Feb 1990 17:02:55 +0000 (17:02 +0000)
committerJohn Kohl <jtkohl@mit.edu>
Tue, 13 Feb 1990 17:02:55 +0000 (17:02 +0000)
add hack defines for DB constants

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@363 dc483132-0cff-0310-8789-dd5450dbe970

src/include/krb5/kdb.h

index f15b38d63829bf27b9f2ed42348749a097913033..dcd6b6eb878967ab0967687f5d26947711115c79 100644 (file)
@@ -59,7 +59,7 @@ krb5_error_code krb5_db_fini
        PROTOTYPE((void ));
 krb5_error_code krb5_db_get_age
        PROTOTYPE((char *,
-                  krb5_timestamp * ));
+                  time_t * ));
 krb5_error_code krb5_db_create
        PROTOTYPE((char * ));
 krb5_error_code krb5_db_rename
@@ -90,4 +90,14 @@ krb5_error_code krb5_kdb_encrypt_key
 krb5_error_code krb5_kdb_decrypt_key
        PROTOTYPE((krb5_encrypt_block *, krb5_keyblock *, krb5_keyblock *));
 
+/* XXX these belong in some config file */
+#define        KRB5_KDB_MAX_LIFE       (60*60*24) /* one day */
+#define        KRB5_KDB_MAX_RLIFE      (60*60*24*7) /* one week */
+#define        KRB5_KDB_EXPIRATION     2145830400 /* Thu Jan  1 00:00:00 2038 UTC */
+
+#define KRB5_KDB_DEF_FLAGS     (KRB5_KDB_DISALLOW_DUP_SKEY)
+
+/* XXX THIS REALLY BELONGS ELSEWHERE */
+#define        TGTNAME "krbtgt"
+
 #endif /* __KRB5_KDB5__ */