(krb5_string_to_deltat): default to "s" again, MIT's behavior was

actually that it failed to parse the number (and thus used the
default). Even better, ticket_lifetime (that was a consumer supposed a
of the interface) was documented but never implemented, when it was
implemented, people configuraiton files started to fail.
Also, use KRB5_DELTAT_BADFORMAT as a failure code.


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@14308 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
Love Hörnquist Åstrand
2004-10-13 17:57:11 +00:00
parent adf9706ec8
commit 8311097ae4

View File

@@ -108,7 +108,7 @@ krb5_format_time(krb5_context context, time_t t,
krb5_error_code KRB5_LIB_FUNCTION
krb5_string_to_deltat(const char *string, krb5_deltat *deltat)
{
if((*deltat = parse_time(string, "m")) == -1)
return EINVAL;
if((*deltat = parse_time(string, "s")) == -1)
return KRB5_DELTAT_BADFORMAT;
return 0;
}