Squash commits for KfW updates
authorTom Yu <tlyu@mit.edu>
Wed, 14 Dec 2011 00:07:54 +0000 (00:07 +0000)
committerTom Yu <tlyu@mit.edu>
Wed, 14 Dec 2011 00:07:54 +0000 (00:07 +0000)
commit93d3863162eef1ba9c27709145183ca5ce33a14a
tree9dd7b56bdf4424831f783967f8cd29c8d2547bd9
parentfd8bcf5841e5affdc1622b723c2a0242ed03b7be
Squash commits for KfW updates

windows ccapiserver: replace Sleep with event wait

Signed-off-by: Kevin Wasserman <kevin.wasserman@painless-security.com>
fix warning in test_cc_credentials_iterator_next.c

include test_ccapi_iterators.h for check_cc_credentials_iterator_next

Make ccapiserver exit if its receiveloop thread terminates for any reason.

This happens, for example, when the rpc endpoint is already registered
by another ccapiserver process.  There's no reason to leave a zombie
process running that can't receive messages.

windows ccapi: launch server without console by default.

Signed-off-by: Kevin Wasserman <kevin.wasserman@painless-security.com>
windows ccapi: use a random challenge to authenticate ccapiserver.

Signed-off-by: Kevin Wasserman <kevin.wasserman@painless-security.com>
LeashView.cpp: only specify TVIF_TEXT if there is actually text.

Signed-off-by: Kevin Wasserman <kevin.wasserman@painless-security.com>
kfw installer: add runtime.wxi WIXINCLUDES in Makefile to fix dependencies.

Signed-off-by: Kevin Wasserman <kevin.wasserman@painless-security.com>
Windows leash64 fixes: use proper names for leash and krb5 dlls

Signed-off-by: Kevin Wasserman <kevin.wasserman@painless-security.com>
Windows leash fixes: 'make install' installs leash exes.

Signed-off-by: Kevin Wasserman <kevin.wasserman@painless-security.com>
kfw installer: use MSVC 2010 merge modules

Signed-off-by: Kevin Wasserman <kevin.wasserman@painless-security.com>
kfw installer: install leash32.exe

Signed-off-by: Kevin Wasserman <kevin.wasserman@painless-security.com>
kfw: clean out unused #defines from Lglobals.h

Signed-off-by: Kevin Wasserman <kevin.wasserman@painless-security.com>
kfw: use correct message id to obtain tgt from leash

Signed-off-by: Kevin Wasserman <kevin.wasserman@painless-security.com>
kfw: update copyright notice in license.rtf

Signed-off-by: Kevin Wasserman <kevin.wasserman@painless-security.com>
kfw fixes: install xpprof32

TODO: xpprof64!

Signed-off-by: Kevin Wasserman <kevin.wasserman@painless-security.com>
kfw installer: purge support for old compilers

Signed-off-by: Kevin Wasserman <kevin.wasserman@painless-security.com>
kfw installer: don't build installer into installer

Signed-off-by: Kevin Wasserman <kevin.wasserman@painless-security.com>
kfw fixes: make leash ignore credentials that store config principals.

Signed-off-by: Kevin Wasserman <kevin.wasserman@painless-security.com>
kfw fix: make Leash_kdestroy() actually destroy k5 tickets

Signed-off-by: Kevin Wasserman <kevin.wasserman@painless-security.com>
kfw fix: Add custom "Password incorrect" message to Leash_int_kinit_ex()

Overrides obscure KRB5KRB_AP_ERR_BAD_INTEGRITY message.

Signed-off-by: Kevin Wasserman <kevin.wasserman@painless-security.com>
kfw fixes: define USE_MESSAGE_BOX in leashdll code for user feedback.

Signed-off-by: Kevin Wasserman <kevin.wasserman@painless-security.com>
kfw fixes: krb5_get_init_creds_opt_init->krb5_get_init_creds_opt_alloc

Should enable leash to generate config credentials (needs verification!)

Signed-off-by: Kevin Wasserman <kevin.wasserman@painless-security.com>
kfw fix: int -> size_t to fix warning in krb5routines.c

Signed-off-by: Kevin Wasserman <kevin.wasserman@painless-security.com>
kfw fix: restructure low ticket warning popup code to workaround mfc bug

mfc bug causes assertions when dialog is generated from
within PreTranslateMessages() (MSG input param points to a global
variable which is corrupted in the dialog message loop).  So we need
to instead PostMessage() to cause the popup later.
Also fixed logic to cause warning dialog to actually be modal as intended
when the leash window is not minimized.

Signed-off-by: Kevin Wasserman <kevin.wasserman@painless-security.com>
kfw fixes: fix _snprintf usage; use full error code in leash_error_message

Signed-off-by: Kevin Wasserman <kevin.wasserman@painless-security.com>
kfw fixes: ccapiserver only quits after all clients detach.

Not sure if this is really a good idea or not...

Signed-off-by: Kevin Wasserman <kevin.wasserman@painless-security.com>
kfw: generate manifests

Signed-off-by: Kevin Wasserman <kevin.wasserman@painless-security.com>
kfw installer: generate leash shortcuts (desktop and start menu)

...also install xpprof64

Signed-off-by: Kevin Wasserman <kevin.wasserman@painless-security.com>
kfw: fix 'K5_ORIGINAL_NAME' for 64 bit dlls.

...still need to actually to define _WIN64 for rc.exe though

Signed-off-by: Kevin Wasserman <kevin.wasserman@painless-security.com>
kfw installer: purge bufferoverflowu from custom.dll

Signed-off-by: Kevin Wasserman <kevin.wasserman@painless-security.com>
kfw: rename leash32/64.exe to simply leash.exe

Also install leash.exe in 64 bit installer.

Split cci_thread_init into per-process and per-thread portions

Call the per-thread code on thread attach and per-process once per
process.  Previously, while the function was named 'thread', it was
only actually called once per process.  Currently, the per-thread
code does nothing on non-windows platforms and is not even actually
invoked.

Fixes a windows bug when multiple non-main threads try to use ccapi
at the same time.

Signed-off-by: Kevin Wasserman <kevin.wasserman@painless-security.com>
kfw leash: add -console option to create console for debug output

Signed-off-by: Kevin Wasserman <kevin.wasserman@painless-security.com>
kfw: use _WIN64 names where appropriate

Signed-off-by: Kevin Wasserman <kevin.wasserman@painless-security.com>
kfw leash: bracket krb.con code with #ifndef NO_KRB4

Signed-off-by: Kevin Wasserman <kevin.wasserman@painless-security.com>
kfw installer: install krb5.ini to CommonAppDataFolder, not WindowsFolder

...but only if there isn't already a krb5.ini in the WindowsFolder.

Signed-off-by: Kevin Wasserman <kevin.wasserman@painless-security.com>
kfw: "make install" also installs pdbs

Signed-off-by: Kevin Wasserman <kevin.wasserman@painless-security.com>
kfw installer: leash32.pdb->leash.pdb

kfw installer: add site-local.wxi

Signed-off-by: Kevin Wasserman <kevin.wasserman@painless-security.com>
kfw: leash htmlhelp file source

Signed-off-by: Kevin Wasserman <kevin.wasserman@painless-security.com>
kfw: use html help in leash

Signed-off-by: Kevin Wasserman <kevin.wasserman@painless-security.com>
kfw: "make install" installs htmlhelp (leash.chm)

Signed-off-by: Kevin Wasserman <kevin.wasserman@painless-security.com>
kfw installer: install leash help file (leash.chm)

Signed-off-by: Kevin Wasserman <kevin.wasserman@painless-security.com>
kfw: remove line breaks from html to fix table of contents generation

Signed-off-by: Kevin Wasserman <kevin.wasserman@painless-security.com>
kfw leash help: fix/add aliases for command help

Signed-off-by: Kevin Wasserman <kevin.wasserman@painless-security.com>
kfw leash: fix bad data in get tickets dialog when -autoinit specified

Signed-off-by: Kevin Wasserman <kevin.wasserman@painless-security.com>
ticket: 7050
version_fixed: 1.10
status: resolved

git-svn-id: svn://anonsvn.mit.edu/krb5/branches/krb5-1-10@25585 dc483132-0cff-0310-8789-dd5450dbe970
160 files changed:
src/Makefile.in
src/ccapi/common/win/OldCC/autolock.hxx
src/ccapi/common/win/win-utils.h
src/ccapi/lib/ccapi_context.c
src/ccapi/lib/ccapi_ipc.c
src/ccapi/lib/ccapi_ipc.h
src/ccapi/lib/ccapi_os_ipc.h
src/ccapi/lib/win/OldCC/client.cxx
src/ccapi/lib/win/ccapi_os_ipc.cxx
src/ccapi/lib/win/debug.exports
src/ccapi/lib/win/dllmain.cxx
src/ccapi/server/ccs_server.c
src/ccapi/server/ccs_server.h
src/ccapi/server/win/WorkItem.cpp
src/ccapi/server/win/WorkQueue.cpp
src/ccapi/server/win/WorkQueue.h
src/ccapi/server/win/ccs_os_server.cpp
src/ccapi/server/win/workitem.h
src/ccapi/test/test_cc_credentials_iterator_next.c
src/config/win-pre.in
src/lib/krb5/os/init_os_ctx.c
src/util/wshelper/res_init.c
src/windows/include/loadfuncs-krb5.h
src/windows/installer/wix/Makefile
src/windows/installer/wix/config.wxi
src/windows/installer/wix/custom/custom.cpp
src/windows/installer/wix/features.wxi
src/windows/installer/wix/files.wxi
src/windows/installer/wix/lang/license.rtf
src/windows/installer/wix/platform.wxi
src/windows/installer/wix/runtime.wxi
src/windows/installer/wix/site-local.wxi [new file with mode: 0644]
src/windows/leash/KrbRealmHostMaintenance.cpp
src/windows/leash/Leash.cpp
src/windows/leash/Leash.h
src/windows/leash/LeashProperties.cpp
src/windows/leash/LeashView.cpp
src/windows/leash/LeashView.h
src/windows/leash/Lglobals.h
src/windows/leash/Makefile.in
src/windows/leash/htmlhelp/Images/Bullet.gif [new file with mode: 0644]
src/windows/leash/htmlhelp/Images/Kerberos_auth_serv_fig_10.jpg [new file with mode: 0644]
src/windows/leash/htmlhelp/Images/Kerberos_auth_serv_fig_11.jpg [new file with mode: 0644]
src/windows/leash/htmlhelp/Images/Kerberos_auth_serv_fig_12.jpg [new file with mode: 0644]
src/windows/leash/htmlhelp/Images/Kerberos_auth_serv_fig_13.jpg [new file with mode: 0644]
src/windows/leash/htmlhelp/Images/Kerberos_auth_serv_fig_5.jpg [new file with mode: 0644]
src/windows/leash/htmlhelp/Images/Kerberos_auth_serv_fig_6.jpg [new file with mode: 0644]
src/windows/leash/htmlhelp/Images/Kerberos_auth_serv_fig_7.jpg [new file with mode: 0644]
src/windows/leash/htmlhelp/Images/Kerberos_auth_serv_fig_8.jpg [new file with mode: 0644]
src/windows/leash/htmlhelp/Images/Kerberos_auth_serv_fig_9.jpg [new file with mode: 0644]
src/windows/leash/htmlhelp/Images/Leash_about_leash.jpg [new file with mode: 0644]
src/windows/leash/htmlhelp/Images/Leash_change_password.JPG [new file with mode: 0644]
src/windows/leash/htmlhelp/Images/Leash_debug_window.jpg [new file with mode: 0644]
src/windows/leash/htmlhelp/Images/Leash_display_window.jpg [new file with mode: 0644]
src/windows/leash/htmlhelp/Images/Leash_init_ticket_advanced.jpg [new file with mode: 0644]
src/windows/leash/htmlhelp/Images/Leash_init_ticket_basic.jpg [new file with mode: 0644]
src/windows/leash/htmlhelp/Images/Leash_menu_action.jpg [new file with mode: 0644]
src/windows/leash/htmlhelp/Images/Leash_menu_file.jpg [new file with mode: 0644]
src/windows/leash/htmlhelp/Images/Leash_menu_help.jpg [new file with mode: 0644]
src/windows/leash/htmlhelp/Images/Leash_menu_options.jpg [new file with mode: 0644]
src/windows/leash/htmlhelp/Images/Leash_menu_view.jpg [new file with mode: 0644]
src/windows/leash/htmlhelp/Images/Leash_properties_afs.jpg [new file with mode: 0644]
src/windows/leash/htmlhelp/Images/Leash_properties_krb4.jpg [new file with mode: 0644]
src/windows/leash/htmlhelp/Images/Leash_properties_krb5_1.jpg [new file with mode: 0644]
src/windows/leash/htmlhelp/Images/Leash_properties_krb5_2.jpg [new file with mode: 0644]
src/windows/leash/htmlhelp/Images/Leash_properties_krb_1.jpg [new file with mode: 0644]
src/windows/leash/htmlhelp/Images/Leash_properties_krb_2.jpg [new file with mode: 0644]
src/windows/leash/htmlhelp/Images/Leash_properties_krb_3.jpg [new file with mode: 0644]
src/windows/leash/htmlhelp/Images/Leash_properties_krb_4.jpg [new file with mode: 0644]
src/windows/leash/htmlhelp/Images/Leash_properties_leash.jpg [new file with mode: 0644]
src/windows/leash/htmlhelp/Images/Leash_systray_icons.jpg [new file with mode: 0644]
src/windows/leash/htmlhelp/Images/Leash_systray_menu.jpg [new file with mode: 0644]
src/windows/leash/htmlhelp/Images/Leash_toolbar.jpg [new file with mode: 0644]
src/windows/leash/htmlhelp/Makefile.in [new file with mode: 0644]
src/windows/leash/htmlhelp/Table of Contents.hhc [new file with mode: 0644]
src/windows/leash/htmlhelp/html/afx_hidw_status_bar.htm [new file with mode: 0644]
src/windows/leash/htmlhelp/html/afx_hidw_toolbar.htm [new file with mode: 0644]
src/windows/leash/htmlhelp/html/hid_app_about.htm [new file with mode: 0644]
src/windows/leash/htmlhelp/html/hid_app_exit.htm [new file with mode: 0644]
src/windows/leash/htmlhelp/html/hid_context_help.htm [new file with mode: 0644]
src/windows/leash/htmlhelp/html/hid_help_index.htm [new file with mode: 0644]
src/windows/leash/htmlhelp/html/hid_help_using.htm [new file with mode: 0644]
src/windows/leash/htmlhelp/html/hid_sc_close.htm [new file with mode: 0644]
src/windows/leash/htmlhelp/html/hid_sc_maximize.htm [new file with mode: 0644]
src/windows/leash/htmlhelp/html/hid_sc_minimize.htm [new file with mode: 0644]
src/windows/leash/htmlhelp/html/hid_sc_move.htm [new file with mode: 0644]
src/windows/leash/htmlhelp/html/hid_sc_restore.htm [new file with mode: 0644]
src/windows/leash/htmlhelp/html/hid_sc_size.htm [new file with mode: 0644]
src/windows/leash/htmlhelp/html/hid_view_status_bar.htm [new file with mode: 0644]
src/windows/leash/htmlhelp/html/hid_view_toolbar.htm [new file with mode: 0644]
src/windows/leash/htmlhelp/html/leash_acknowledgements.htm [new file with mode: 0644]
src/windows/leash/htmlhelp/html/leash_bug_reports.htm [new file with mode: 0644]
src/windows/leash/htmlhelp/html/leash_command_change_password.htm [new file with mode: 0644]
src/windows/leash/htmlhelp/html/leash_command_destroy_tickets.htm [new file with mode: 0644]
src/windows/leash/htmlhelp/html/leash_command_get_tickets.htm [new file with mode: 0644]
src/windows/leash/htmlhelp/html/leash_command_import_tickets.htm [new file with mode: 0644]
src/windows/leash/htmlhelp/html/leash_command_renew_tickets.htm [new file with mode: 0644]
src/windows/leash/htmlhelp/html/leash_command_reset_window.htm [new file with mode: 0644]
src/windows/leash/htmlhelp/html/leash_command_sync_time.htm [new file with mode: 0644]
src/windows/leash/htmlhelp/html/leash_command_update_display.htm [new file with mode: 0644]
src/windows/leash/htmlhelp/html/leash_copyright.htm [new file with mode: 0644]
src/windows/leash/htmlhelp/html/leash_errors.htm [new file with mode: 0644]
src/windows/leash/htmlhelp/html/leash_export.htm [new file with mode: 0644]
src/windows/leash/htmlhelp/html/leash_external_aklog.htm [new file with mode: 0644]
src/windows/leash/htmlhelp/html/leash_external_kdestroy.htm [new file with mode: 0644]
src/windows/leash/htmlhelp/html/leash_external_kinit.htm [new file with mode: 0644]
src/windows/leash/htmlhelp/html/leash_external_klist.htm [new file with mode: 0644]
src/windows/leash/htmlhelp/html/leash_external_ms2mit.htm [new file with mode: 0644]
src/windows/leash/htmlhelp/html/leash_file_exit.htm [new file with mode: 0644]
src/windows/leash/htmlhelp/html/leash_help_about_leash32.htm [new file with mode: 0644]
src/windows/leash/htmlhelp/html/leash_kerberos_copyright.htm [new file with mode: 0644]
src/windows/leash/htmlhelp/html/leash_manpage_aklog.htm [new file with mode: 0644]
src/windows/leash/htmlhelp/html/leash_manpage_kdestroy.htm [new file with mode: 0644]
src/windows/leash/htmlhelp/html/leash_manpage_kinit.htm [new file with mode: 0644]
src/windows/leash/htmlhelp/html/leash_manpage_klist.htm [new file with mode: 0644]
src/windows/leash/htmlhelp/html/leash_manpage_ms2mit.htm [new file with mode: 0644]
src/windows/leash/htmlhelp/html/leash_manpages.htm [new file with mode: 0644]
src/windows/leash/htmlhelp/html/leash_menu_commands.htm [new file with mode: 0644]
src/windows/leash/htmlhelp/html/leash_menu_help_why_use.htm [new file with mode: 0644]
src/windows/leash/htmlhelp/html/leash_option_afs_properties.htm [new file with mode: 0644]
src/windows/leash/htmlhelp/html/leash_option_auto_renewal.htm [new file with mode: 0644]
src/windows/leash/htmlhelp/html/leash_option_destroy_tickets_on_exit.htm [new file with mode: 0644]
src/windows/leash/htmlhelp/html/leash_option_expiration_alarm.htm [new file with mode: 0644]
src/windows/leash/htmlhelp/html/leash_option_kerberos_properties.htm [new file with mode: 0644]
src/windows/leash/htmlhelp/html/leash_option_krb4_properties.htm [new file with mode: 0644]
src/windows/leash/htmlhelp/html/leash_option_krb5_properties.htm [new file with mode: 0644]
src/windows/leash/htmlhelp/html/leash_option_leash_properties.htm [new file with mode: 0644]
src/windows/leash/htmlhelp/html/leash_option_upper_case_realm.htm [new file with mode: 0644]
src/windows/leash/htmlhelp/html/leash_topic_about_kerberos.htm [new file with mode: 0644]
src/windows/leash/htmlhelp/html/leash_topic_error_57.htm [new file with mode: 0644]
src/windows/leash/htmlhelp/html/leash_topic_error_62.htm [new file with mode: 0644]
src/windows/leash/htmlhelp/html/leash_topic_error_8.htm [new file with mode: 0644]
src/windows/leash/htmlhelp/html/leash_topic_error_invalid_principal.htm [new file with mode: 0644]
src/windows/leash/htmlhelp/html/leash_topic_kerberos_auth_service.htm [new file with mode: 0644]
src/windows/leash/htmlhelp/html/leash_topic_kerberos_command_prompt.htm [new file with mode: 0644]
src/windows/leash/htmlhelp/html/leash_topic_kerberos_help_topics.htm [new file with mode: 0644]
src/windows/leash/htmlhelp/html/leash_topic_kerberos_names.htm [new file with mode: 0644]
src/windows/leash/htmlhelp/html/leash_topic_kerberos_principals.htm [new file with mode: 0644]
src/windows/leash/htmlhelp/html/leash_topic_kerberos_tickets.htm [new file with mode: 0644]
src/windows/leash/htmlhelp/html/leash_topic_leash_help_topics.htm [new file with mode: 0644]
src/windows/leash/htmlhelp/html/leash_topic_leash_systray.htm [new file with mode: 0644]
src/windows/leash/htmlhelp/html/leash_topic_leash_window.htm [new file with mode: 0644]
src/windows/leash/htmlhelp/html/leash_topic_online_help.htm [new file with mode: 0644]
src/windows/leash/htmlhelp/html/leash_topic_password_choice.htm [new file with mode: 0644]
src/windows/leash/htmlhelp/html/leash_topic_timing_issues.htm [new file with mode: 0644]
src/windows/leash/htmlhelp/html/leash_topic_why_use.htm [new file with mode: 0644]
src/windows/leash/htmlhelp/html/leash_view_debug_window.htm [new file with mode: 0644]
src/windows/leash/htmlhelp/html/leash_view_large_icons.htm [new file with mode: 0644]
src/windows/leash/htmlhelp/html/leash_view_status_bar.htm [new file with mode: 0644]
src/windows/leash/htmlhelp/html/leash_view_toolbar.htm [new file with mode: 0644]
src/windows/leash/htmlhelp/leash32.hhk [new file with mode: 0644]
src/windows/leash/htmlhelp/leash32.hhp [new file with mode: 0644]
src/windows/leash/out2con.cpp [new file with mode: 0644]
src/windows/leash/out2con.h [new file with mode: 0644]
src/windows/leashdll/Makefile.in
src/windows/leashdll/krb5routines.c
src/windows/leashdll/leashdll.c
src/windows/leashdll/leashdll.h
src/windows/leashdll/lshfunc.c
src/windows/version.rc