krb5_string_to_deltat
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@9834 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
@@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright (c) 1997 - 2000 Kungliga Tekniska H<>gskolan
|
* Copyright (c) 1997 - 2001 Kungliga Tekniska H<>gskolan
|
||||||
* (Royal Institute of Technology, Stockholm, Sweden).
|
* (Royal Institute of Technology, Stockholm, Sweden).
|
||||||
* All rights reserved.
|
* All rights reserved.
|
||||||
*
|
*
|
||||||
@@ -77,3 +77,11 @@ krb5_format_time(krb5_context context, time_t t,
|
|||||||
strftime(s, len, include_time ? context->time_fmt : context->date_fmt, tm);
|
strftime(s, len, include_time ? context->time_fmt : context->date_fmt, tm);
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
krb5_error_code
|
||||||
|
krb5_string_to_deltat(const char *string, krb5_deltat *deltat)
|
||||||
|
{
|
||||||
|
if((*deltat = parse_time(string, "s")) == -1)
|
||||||
|
return EINVAL;
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
Reference in New Issue
Block a user