From: Tom Yu Date: Fri, 1 Sep 2000 01:36:09 +0000 (+0000) Subject: * krb.h: Add prototypes for krb_life_to_time() and X-Git-Tag: krb5-1.3-alpha1~1897 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=f09452b1be679c48d94ade94e046fd9b52aab807;p=krb5.git * krb.h: Add prototypes for krb_life_to_time() and krb_time_to_life(), as well as the KRB_NEVERDATE constant. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12643 dc483132-0cff-0310-8789-dd5450dbe970 --- diff --git a/src/include/kerberosIV/ChangeLog b/src/include/kerberosIV/ChangeLog index ba6dc2c0a..dd7aed80b 100644 --- a/src/include/kerberosIV/ChangeLog +++ b/src/include/kerberosIV/ChangeLog @@ -1,3 +1,8 @@ +2000-08-31 Tom Yu + + * krb.h: Add prototypes for krb_life_to_time() and + krb_time_to_life(), as well as the KRB_NEVERDATE constant. + 2000-08-02 Ezra Peisach * krb.h: Add prototypes for tf_init(), tf_get_pname(), diff --git a/src/include/kerberosIV/krb.h b/src/include/kerberosIV/krb.h index 66d9f4cb5..d8550c2eb 100644 --- a/src/include/kerberosIV/krb.h +++ b/src/include/kerberosIV/krb.h @@ -99,6 +99,8 @@ typedef unsigned short gid_t; #define DEFAULT_TKT_LIFE 255 /* default lifetime for krb_mk_req */ #endif +#define KRB_NEVERDATE ((KRB4_32)-1) + /* Definition of text structure used to pass text around */ #define MAX_KTXT_LEN 1250 @@ -540,6 +542,13 @@ KRB5_DLLIMP int KRB5_CALLCONV kname_parse /* kuserok.c */ KRB5_DLLIMP int KRB5_CALLCONV kuserok PROTOTYPE((AUTH_DAT FAR *kdata, char FAR *luser)); + +/* lifetime.c */ +KRB5_DLLIMP KRB4_32 KRB5_CALLCONV krb_life_to_time + PROTOTYPE((KRB4_32 start, int life)); +KRB5_DLLIMP int KRB5_CALLCONV krb_time_to_life + PROTOTYPE((KRB4_32 start, KRB4_32 end)); + /* mk_auth.c */ KRB5_DLLIMP int KRB5_CALLCONV krb_check_auth PROTOTYPE((KTEXT, unsigned KRB4_32 cksum, MSG_DAT FAR *,