From f09452b1be679c48d94ade94e046fd9b52aab807 Mon Sep 17 00:00:00 2001 From: Tom Yu Date: Fri, 1 Sep 2000 01:36:09 +0000 Subject: [PATCH] * 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 --- src/include/kerberosIV/ChangeLog | 5 +++++ src/include/kerberosIV/krb.h | 9 +++++++++ 2 files changed, 14 insertions(+) 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 *, -- 2.26.2