From 04e37babae72d1da44edca732468d745bf11dcf6 Mon Sep 17 00:00:00 2001 From: Theodore Tso Date: Thu, 11 Jul 1996 00:32:12 +0000 Subject: [PATCH] Add a call to krb5_win_do_init() on Win16 and Win32 machines. This is where we do timebomb and version server checking. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@8677 dc483132-0cff-0310-8789-dd5450dbe970 --- src/lib/krb5/krb/ChangeLog | 6 ++++++ src/lib/krb5/krb/init_ctx.c | 12 ++++++++++++ 2 files changed, 18 insertions(+) diff --git a/src/lib/krb5/krb/ChangeLog b/src/lib/krb5/krb/ChangeLog index 6234b1bb3..d9e529f9f 100644 --- a/src/lib/krb5/krb/ChangeLog +++ b/src/lib/krb5/krb/ChangeLog @@ -1,3 +1,9 @@ +Wed Jul 10 20:22:41 1996 Theodore Y. Ts'o + + * init_ctx.c (krb5_init_context): Add a call to krb5_win_do_init() + on Win16 and Win32 machines. This is where we do timebomb + and version server checking. + Sun Jul 7 15:14:43 1996 Ezra Peisach * get_creds.c: (krb5_get_credentials_val_renew_core) Combine diff --git a/src/lib/krb5/krb/init_ctx.c b/src/lib/krb5/krb/init_ctx.c index 83b2c48cd..ec2406776 100644 --- a/src/lib/krb5/krb/init_ctx.c +++ b/src/lib/krb5/krb/init_ctx.c @@ -26,6 +26,10 @@ #include "k5-int.h" #include +#if (defined(_MSDOS) || defined(_WIN32)) +extern void krb5_win_do_init(); +#endif + krb5_error_code INTERFACE krb5_init_context(context) krb5_context *context; @@ -34,6 +38,14 @@ krb5_init_context(context) krb5_error_code retval; int tmp; +#if (defined(_MSDOS) || defined(_WIN32)) + /* + * krb5_win_do_init() is defined in win_glue.c, and this is + * where we handle the timebomb and version server checks. + */ + krb5_win_do_init(); +#endif + *context = 0; ctx = malloc(sizeof(struct _krb5_context)); -- 2.26.2