diff options
author | Jeffrey Altman <jaltman@secure-endpoints.com> | 2004-01-31 00:46:38 +0000 |
---|---|---|
committer | Jeffrey Altman <jaltman@secure-endpoints.com> | 2004-01-31 00:46:38 +0000 |
commit | 64e4f38daeae9926ef7f50b24f49f4d7f8b8c971 (patch) | |
tree | e5174f23a7b49cf518dfdbd919af8fab97d844ed /src/windows/cns/cns.c | |
parent | 6db0f8c2309dbebb44893a0369a30ade74a1d348 (diff) | |
download | krb5-64e4f38daeae9926ef7f50b24f49f4d7f8b8c971.tar.gz krb5-64e4f38daeae9926ef7f50b24f49f4d7f8b8c971.tar.xz krb5-64e4f38daeae9926ef7f50b24f49f4d7f8b8c971.zip |
Add support for Addressless Ticket Checkbox. Applied patch from Doug Engert
ticket: 982
tags: pullup
target_version: 1.3.2
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@15989 dc483132-0cff-0310-8789-dd5450dbe970
Diffstat (limited to 'src/windows/cns/cns.c')
-rw-r--r-- | src/windows/cns/cns.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/windows/cns/cns.c b/src/windows/cns/cns.c index 13404b7366..7a02abba7e 100644 --- a/src/windows/cns/cns.c +++ b/src/windows/cns/cns.c @@ -58,6 +58,7 @@ char confname[FILENAME_MAX]; /* krb5.conf (or krb.conf for krb4) */ #ifdef KRB5 char ccname[FILENAME_MAX]; /* ccache file location */ BOOL forwardable; /* TRUE to get forwardable tickets */ +BOOL noaddresses; krb5_context k5_context; krb5_ccache k5_ccache; #endif @@ -1224,7 +1225,10 @@ kwin_command(HWND hwnd, int cid, HWND hwndCtl, UINT codeNotify) krb5_get_init_creds_opt_init(&opts); krb5_get_init_creds_opt_set_forwardable(&opts, forwardable); krb5_get_init_creds_opt_set_tkt_life(&opts, lifetime * 60); - + if (noaddresses) { + krb5_get_init_creds_opt_set_address_list(&opts, NULL); + } + /* * get the initial creds using the password and the options we set above */ @@ -1491,7 +1495,6 @@ kwin_paint(HWND hwnd) LRESULT CALLBACK kwin_wnd_proc(HWND hwnd, UINT message, WPARAM wParam, LPARAM lParam) { - int n; #if 0 if (message == wm_kerberos_changed) { /* Message from the ccache */ @@ -1704,6 +1707,7 @@ init_instance(HINSTANCE hinstance, int ncmdshow) * ticket options */ forwardable = cns_res.forwardable; + noaddresses = cns_res.noaddresses; /* * Load clock icons |