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