Support parsing KRB-ERROR passed back from windows server when the time is out of sync, modify krb5_cc_[sg]et_config interface to handle principals too, add tests for this
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@23420 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
@@ -985,7 +985,7 @@ krb5_get_dns_canonicalize_hostname (krb5_context context)
|
||||
* @param sec seconds part of offset.
|
||||
* @param usec micro seconds part of offset.
|
||||
*
|
||||
* @return return non zero if the library uses DNS to canonicalize hostnames.
|
||||
* @return returns zero
|
||||
*
|
||||
* @ingroup krb5
|
||||
*/
|
||||
@@ -1000,6 +1000,27 @@ krb5_get_kdc_sec_offset (krb5_context context, int32_t *sec, int32_t *usec)
|
||||
return 0;
|
||||
}
|
||||
|
||||
/**
|
||||
* Set current offset in time to the KDC.
|
||||
*
|
||||
* @param context Kerberos 5 context.
|
||||
* @param sec seconds part of offset.
|
||||
* @param usec micro seconds part of offset.
|
||||
*
|
||||
* @return returns zero
|
||||
*
|
||||
* @ingroup krb5
|
||||
*/
|
||||
|
||||
krb5_error_code KRB5_LIB_FUNCTION
|
||||
krb5_set_kdc_sec_offset (krb5_context context, int32_t sec, int32_t usec)
|
||||
{
|
||||
context->kdc_sec_offset = sec;
|
||||
if (usec >= 0)
|
||||
context->kdc_usec_offset = usec;
|
||||
return 0;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get max time skew allowed.
|
||||
*
|
||||
|
Reference in New Issue
Block a user