Commit Graph

17162 Commits

Author SHA1 Message Date
Love Hörnquist Åstrand
0b7b83d732 Only allow exporting MN, reset exported_name.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@17805 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-07-05 22:41:57 +00:00
Love Hörnquist Åstrand
5f14a70630 drop gss_spnego_indicate_mechs
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@17804 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-07-05 22:38:02 +00:00
Love Hörnquist Åstrand
1fac73929a if the underlaying mech doesn't support gss_indicate_mechs, use the
oid in the mechswitch structure


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@17803 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-07-05 22:36:49 +00:00
Love Hörnquist Åstrand
3a8f9143b7 let the mech glue layer implement gss_indicate_mechs
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@17802 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-07-05 22:35:45 +00:00
Love Hörnquist Åstrand
34d35f83bf (gss_spnego_acquire_cred): don't care about desired_mechs, get our own
list with indicate_mechs and remote ourself.


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@17801 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-07-05 22:35:02 +00:00
Love Hörnquist Åstrand
909a02791f remove gss_spnego_inquire_names_for_mech, let the mechglue layer implement it
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@17800 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-07-05 21:32:49 +00:00
Love Hörnquist Åstrand
22ea639a6f x
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@17799 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-07-05 12:00:43 +00:00
Love Hörnquist Åstrand
5f62c460c3 (handle_vanilla_tcp): use unsigned integer for for length(
(handle_tcp): if the high bit it set in the unknown case, send back a
KRB_ERR_FIELD_TOOLONG


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@17798 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-07-05 12:00:16 +00:00
Love Hörnquist Åstrand
02a8293b7e Add get_version_capa, cache target_name.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@17797 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-07-03 10:53:21 +00:00
Love Hörnquist Åstrand
0822bf8ae4 use utname() to find the local hostname
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@17796 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-07-03 10:52:05 +00:00
Love Hörnquist Åstrand
ede9adf78c include <sys/utsname.h>
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@17795 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-07-03 10:51:37 +00:00
Love Hörnquist Åstrand
be85e19ad5 x
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@17794 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-07-02 22:36:49 +00:00
Love Hörnquist Åstrand
fffc248c1f break out creation of a client and make handleServer pthread_create compatible
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@17793 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-07-02 22:36:37 +00:00
Love Hörnquist Åstrand
40256ad394 break out out the build context function
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@17792 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-07-02 22:35:41 +00:00
Love Hörnquist Åstrand
a9558a6f9b x
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@17791 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-07-01 09:48:39 +00:00
Love Hörnquist Åstrand
bf43f47903 x
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@17790 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-07-01 09:47:57 +00:00
Love Hörnquist Åstrand
b18cca48b1 ignore Makefile.in
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@17789 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-07-01 09:37:27 +00:00
Love Hörnquist Åstrand
95ee7df071 externalize slave handling, add GetTargetName glue
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@17788 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-07-01 09:36:14 +00:00
Love Hörnquist Åstrand
706ef0ecd5 (krb5_parse_name): set *principal to NULL the first thing we do, so
that on failure its set to a known value


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@17787 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-07-01 09:30:15 +00:00
Love Hörnquist Åstrand
f409403b7d AcquireCreds: set principal to NULL to avoid memory corruption
GetTargetName: always send a string, even though we don't have a targetname


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@17786 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-07-01 09:28:42 +00:00
Love Hörnquist Åstrand
923d63fd9e x
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@17785 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-07-01 09:20:27 +00:00
Love Hörnquist Åstrand
afd0ce92a8 externalize principal/password handling
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@17784 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-07-01 09:07:02 +00:00
Love Hörnquist Åstrand
bff708b6c9 x
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@17783 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-07-01 08:51:06 +00:00
Love Hörnquist Åstrand
f69250b34c fix argument to gss_release_cred
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@17782 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-07-01 08:50:49 +00:00
Love Hörnquist Åstrand
7bee6b7a5b x
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@17781 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-07-01 08:44:50 +00:00
Love Hörnquist Åstrand
88c076e738 break out common function; add gssmaestro (that only tests one context for now)
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@17780 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-07-01 08:44:30 +00:00
Love Hörnquist Åstrand
0af8ebf043 (krb5_storage_from_fd): don't leak fd on malloc failure
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@17779 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-06-30 21:23:19 +00:00
Love Hörnquist Åstrand
9b1216b13c x
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@17778 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-06-30 20:57:50 +00:00
Love Hörnquist Åstrand
b1537f3cca Make work on compilers that are somewhat more picky then gcc4 (like gcc2.95)
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@17777 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-06-30 20:57:33 +00:00
Love Hörnquist Åstrand
606de3c785 x
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@17776 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-06-30 20:28:36 +00:00
Love Hörnquist Åstrand
056e83995c Add gssmask
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@17775 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-06-30 20:26:15 +00:00
Love Hörnquist Åstrand
85d0301916 Add appl/gssmask/Makefile
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@17774 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-06-30 20:24:48 +00:00
Love Hörnquist Åstrand
3585ec2167 x
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@17773 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-06-30 20:21:37 +00:00
Love Hörnquist Åstrand
1a7f7f4e24 split out fetching of credentials for easier reuse for pk-init testing
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@17772 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-06-30 20:21:24 +00:00
Love Hörnquist Åstrand
cbad9c5477 gssapi maggot replacement, handles context testing
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@17771 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-06-30 20:05:42 +00:00
Love Hörnquist Åstrand
54afe1180f (do_delegation): use KDCOptions2int to convert fwd_flags to an
integer, since otherwise int2KDCOptions in krb5_get_forwarded_creds wont do the right thing.


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@17770 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-06-30 19:38:40 +00:00
Love Hörnquist Åstrand
348154aed4 (gss_set_cred_option): free memory on failure
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@17769 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-06-30 19:35:17 +00:00
Love Hörnquist Åstrand
850616a934 (_gsskrb5_set_sec_context_option): init global kerberos context
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@17768 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-06-30 19:34:09 +00:00
Love Hörnquist Åstrand
997e17d6a4 (_gsskrb5_set_cred_option): init global kerberos context
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@17767 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-06-30 19:33:48 +00:00
Love Hörnquist Åstrand
81e9020b7d Insert the delegated sub cred on the delegated cred handle, not cred handle
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@17766 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-06-30 19:11:48 +00:00
Love Hörnquist Åstrand
f6770953cf (gss_accept_sec_context): handle the case where ret_flags == NULL
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@17765 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-06-30 18:42:41 +00:00
Love Hörnquist Åstrand
2901cf9c42 (add_builtin): set _gss_mech_switch->gm_mech_oid
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@17764 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-06-30 18:04:41 +00:00
Love Hörnquist Åstrand
ce5954837b (gss_set_cred_option): laod mechs
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@17763 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-06-30 17:41:54 +00:00
Love Hörnquist Åstrand
2709915a99 (krb5_cc_new_unique): use KRB5_DEFAULT_CCNAME as the default prefix
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@17762 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-06-30 17:08:40 +00:00
Love Hörnquist Åstrand
1af93ea1ef correct the directory for the gss test program
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@17761 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-06-30 14:10:51 +00:00
Love Hörnquist Åstrand
8cd7187d18 Add extern "C" for C++.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@17760 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-06-30 13:42:39 +00:00
Love Hörnquist Åstrand
0462a61c9d x
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@17759 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-06-30 13:41:49 +00:00
Love Hörnquist Åstrand
f4e84f2cac Add rtbl_add_column_entryv functions, printf like
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@17758 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-06-30 13:41:40 +00:00
Love Hörnquist Åstrand
cb915dd449 add tests/gss
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@17757 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-06-30 12:25:29 +00:00
Love Hörnquist Åstrand
146432c77a Add gss to SUBDIR
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@17756 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-06-30 12:24:59 +00:00