* srv_rcache.c (krb5_get_server_rcache):
* rd_safe.c (krb5_rd_safe):
* rd_req_dec.c (krb5_rd_req_decoded):
* rd_priv.c (krb5_rd_priv):
* rd_cred.c (krb5_rd_cred):
* gc_via_tkt.c (krb5_get_cred_via_tkt):
* get_in_tkt.c (verify_as_reply): Replace use of krb5_clockskew with
context->clockskew.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@7063
dc483132-0cff-0310-8789-
dd5450dbe970
Wed Nov 8 02:50:59 1995 Theodore Y. Ts'o <tytso@dcl>
+ * krbconfig.c: Removed the krb5_clockskew variable.
+
+ * srv_rcache.c (krb5_get_server_rcache):
+ * rd_safe.c (krb5_rd_safe):
+ * rd_req_dec.c (krb5_rd_req_decoded):
+ * rd_priv.c (krb5_rd_priv):
+ * rd_cred.c (krb5_rd_cred):
+ * gc_via_tkt.c (krb5_get_cred_via_tkt):
+ * get_in_tkt.c (verify_as_reply): Replace use of krb5_clockskew
+ with context->clockskew.
+
* encrypt_tk.c (cleanup_scratch): Changed interface to no longer
require an eblock; we can use our own and figure out the
enctype from the passed-in key.
#include "k5-int.h"
#include "int-proto.h"
-extern krb5_deltat krb5_clockskew;
-#define in_clock_skew(date, now) (labs((date)-(now)) < krb5_clockskew)
+#define in_clock_skew(date, now) (labs((date)-(now)) < context->clockskew)
static krb5_error_code
krb5_kdcrep2creds(context, pkdcrep, address, psectkt, ppcreds)
*/
-extern krb5_deltat krb5_clockskew;
-
/* some typedef's for the function args to make things look a bit cleaner */
typedef krb5_error_code (*git_key_proc) PROTOTYPE((krb5_context,
if ((request->from == 0) &&
(labs(as_reply->enc_part2->times.starttime - time_now)
- > krb5_clockskew))
+ > context->clockskew))
return (KRB5_KDCREP_SKEW);
return 0;
#include "k5-int.h"
-krb5_deltat krb5_clockskew = 5 * 60; /* five minutes */
krb5_cksumtype krb5_kdc_req_sumtype = CKSUMTYPE_RSA_MD5;
krb5_flags krb5_kdc_default_options = KDC_OPT_RENEWABLE_OK;
/*----------------------- krb5_rd_cred -----------------------*/
-extern krb5_deltat krb5_clockskew;
-#define in_clock_skew(date) (labs((date)-currenttime) < krb5_clockskew)
+#define in_clock_skew(date) (labs((date)-currenttime) < context->clockskew)
/*
* This functions takes as input an KRB_CRED message, validates it, and
#include "cleanup.h"
#include "auth_con.h"
-extern krb5_deltat krb5_clockskew;
-#define in_clock_skew(date) (labs((date)-currenttime) < krb5_clockskew)
+#define in_clock_skew(date) (labs((date)-currenttime) < context->clockskew)
/*
static krb5_error_code decrypt_authenticator
PROTOTYPE((krb5_context, const krb5_ap_req *, krb5_authenticator **));
-extern krb5_deltat krb5_clockskew;
-#define in_clock_skew(date) (labs((date)-currenttime) < krb5_clockskew)
+#define in_clock_skew(date) (labs((date)-currenttime) < context->clockskew)
static krb5_error_code
krb5_rd_req_decrypt_tkt_part(context, req, keytab)
if ((retval = krb5_timeofday(context, ¤ttime)))
goto cleanup;
- if (starttime - currenttime > krb5_clockskew) {
+ if (starttime - currenttime > context->clockskew) {
retval = KRB5KRB_AP_ERR_TKT_NYV; /* ticket not yet valid */
goto cleanup;
}
retval = KRB5KRB_AP_ERR_SKEW;
goto cleanup;
}
- if (currenttime - req->ticket->enc_part2->times.endtime > krb5_clockskew) {
+ if ((currenttime - req->ticket->enc_part2->times.endtime) >
+ context->clockskew) {
retval = KRB5KRB_AP_ERR_TKT_EXPIRED; /* ticket expired */
goto cleanup;
}
#include "cleanup.h"
#include "auth_con.h"
-extern krb5_deltat krb5_clockskew;
-#define in_clock_skew(date) (labs((date)-currenttime) < krb5_clockskew)
+#define in_clock_skew(date) (labs((date)-currenttime) < context->clockskew)
/*
parses a KRB_SAFE message from inbuf, placing the integrity-protected user
krb5_rcache rcache;
krb5_octet response;
krb5_data null_server;
- extern krb5_deltat krb5_clockskew;
/*
* Zero out problem variable. If problem is set at the end of
/*
* Now, let's read the AP_REQ message and decode it
*/
- if (retval = krb5_read_message(context, fd, &inbuf))
+ if ((retval = krb5_read_message(context, fd, &inbuf)))
return retval;
if (*auth_context == NULL) {
krb5_rcache rcache = 0;
char *cachename = 0;
char tmp[4];
- extern krb5_deltat krb5_clockskew;
krb5_error_code retval;
int len, p, i;
* initialize it.
*/
if (krb5_rc_recover(context, rcache)) {
- if ((retval = krb5_rc_initialize(context, rcache, krb5_clockskew))) {
+ if ((retval = krb5_rc_initialize(context, rcache,
+ context->clockskew))) {
krb5_rc_close(context, rcache);
rcache = 0;
goto cleanup;