Commit Graph

84 Commits

Author SHA1 Message Date
Love Hörnquist Åstrand
c31be304c0 Use krb5_get_kdc_sec_offset.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@18528 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-10-17 16:00:00 +00:00
Love Hörnquist Åstrand
652da91adb Rename u_intXX_t to uintXX_t
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@17447 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-05-05 10:52:01 +00:00
Love Hörnquist Åstrand
a271224bab In the list caches view, rename the Status field to Expires.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@16245 ec53bebd-3082-4978-b11e-865c3cabbd6b
2005-10-26 19:46:10 +00:00
Love Hörnquist Åstrand
737b532df0 Change short flag of --list-caches to -l (-v is already used).
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@16125 ec53bebd-3082-4978-b11e-865c3cabbd6b
2005-10-06 19:56:38 +00:00
Love Hörnquist Åstrand
cd2ce0c2a6 Add option --list-caches that lists the avaible caches and their status.
$ klist --list-caches
  Principal        Cache name               Status
lha@E.KTH.SE     2                        Valid
lha@SU.SE        1                        Expired
lha/root@SU.SE   0                        Expired
lha@N.L.NXS.SE   Initial default ccache   Expired


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@16114 ec53bebd-3082-4978-b11e-865c3cabbd6b
2005-10-01 03:39:59 +00:00
Love Hörnquist Åstrand
ded223d98f (check_for_tgt): Re-order code so it only free the credential if one
was returned.


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@15947 ec53bebd-3082-4978-b11e-865c3cabbd6b
2005-08-22 20:18:06 +00:00
Love Hörnquist Åstrand
4c6f3aeaf3 If there are no addresses, print addressless instead of nothing.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@15603 ec53bebd-3082-4978-b11e-865c3cabbd6b
2005-07-09 03:27:19 +00:00
Love Hörnquist Åstrand
ac8c82785c s/optind/optidx/
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@15541 ec53bebd-3082-4978-b11e-865c3cabbd6b
2005-07-01 07:14:58 +00:00
Love Hörnquist Åstrand
d6b87a47d9 use strlcpy
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@14932 ec53bebd-3082-4978-b11e-865c3cabbd6b
2005-04-24 19:54:58 +00:00
Johan Danielsson
0326089c9f use rtbl_set_separator
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@14288 ec53bebd-3082-4978-b11e-865c3cabbd6b
2004-10-04 15:10:20 +00:00
Love Hörnquist Åstrand
f7a51721c2 (print_cred_verbose): keytypes are no longer, use enctype
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@14064 ec53bebd-3082-4978-b11e-865c3cabbd6b
2004-07-23 18:31:23 +00:00
Johan Danielsson
26457b7135 replace krb5_free_creds_contents by krb5_free_cred_contents
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@13790 ec53bebd-3082-4978-b11e-865c3cabbd6b
2004-04-25 19:25:35 +00:00
Johan Danielsson
0cad850aac (print_tickets): bail out if krb5_cc_next_cred returns error other
than KRB5_CC_END


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@12990 ec53bebd-3082-4978-b11e-865c3cabbd6b
2003-10-12 15:57:42 +00:00
Love Hörnquist Åstrand
cdeab003ac (check_for_tgt): set client as part of the pattern/match cred
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@12959 ec53bebd-3082-4978-b11e-865c3cabbd6b
2003-10-03 12:18:44 +00:00
Love Hörnquist Åstrand
1b0fb56912 (check_for_tgt): use krb5_cc_clear_mcred
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@12426 ec53bebd-3082-4978-b11e-865c3cabbd6b
2003-07-06 23:35:43 +00:00
Love Hörnquist Åstrand
d7e8189ab7 print tokens even if there isn't v4 support
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@12245 ec53bebd-3082-4978-b11e-865c3cabbd6b
2003-05-08 18:43:22 +00:00
Johan Danielsson
f8c722fc0d (display_tokens): allow tokens up to size of buffer (from Magnus
Holmberg)


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@11483 ec53bebd-3082-4978-b11e-865c3cabbd6b
2002-10-17 11:59:51 +00:00
Johan Danielsson
93c3f541eb (display_tokens): increase token buffer size, and add more checks of
the kernel data (from Love)


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@11143 ec53bebd-3082-4978-b11e-865c3cabbd6b
2002-08-20 09:05:18 +00:00
Johan Danielsson
6d6c02d255 (display_tokens): don't bail out before we get EDOM (signaling the end
of the tokens), the kernel can also return ENOTCONN, meaning that the
index does not exist anymore (for example if the token has expired)


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@11042 ec53bebd-3082-4978-b11e-865c3cabbd6b
2002-06-28 17:42:24 +00:00
Johan Danielsson
ba522c5e3a better align some headers
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@10936 ec53bebd-3082-4978-b11e-865c3cabbd6b
2002-04-18 16:10:10 +00:00
Assar Westerlund
06a574edbb transpose last two paramaters to krb5_cc_next_cred (as MIT does, and not as they document). From "Jacques A. Vidrine" <n@nectar.com>
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@9923 ec53bebd-3082-4978-b11e-865c3cabbd6b
2001-05-11 19:55:13 +00:00
Assar Westerlund
67422a6b02 s/[gs]et_progname/[gs]etprogname/
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@9704 ec53bebd-3082-4978-b11e-865c3cabbd6b
2001-02-20 01:44:56 +00:00
Assar Westerlund
2e050f0df7 (print_tickets): initialize `ct' to help gcc figure out it's not used
unitialized


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@9493 ec53bebd-3082-4978-b11e-865c3cabbd6b
2001-01-25 12:37:01 +00:00
Assar Westerlund
633782864b (main): handle krb5_init_context failure consistently
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@9443 ec53bebd-3082-4978-b11e-865c3cabbd6b
2000-12-31 08:05:03 +00:00
Assar Westerlund
3434a35932 print key versions numbers of v4 tickets in verbose mode
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@9192 ec53bebd-3082-4978-b11e-865c3cabbd6b
2000-11-15 23:10:15 +00:00
Johan Danielsson
528097b3bb make -a and -n aliases for -v
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@8747 ec53bebd-3082-4978-b11e-865c3cabbd6b
2000-07-22 00:07:37 +00:00
Johan Danielsson
0aaf7d52b9 add flags for preauth and hwauth
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@8627 ec53bebd-3082-4978-b11e-865c3cabbd6b
2000-07-08 20:40:48 +00:00
Johan Danielsson
68e64d204c use rtbl to format cred listing
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@8625 ec53bebd-3082-4978-b11e-865c3cabbd6b
2000-07-08 18:02:40 +00:00
Assar Westerlund
60ada09b01 continue even we have no v5 ccache.
make showing your krb4 tickets the default (if build with krb4
support)


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@8297 ec53bebd-3082-4978-b11e-865c3cabbd6b
2000-05-28 05:31:37 +00:00
Johan Danielsson
09b232fca4 change case of `verbose' to match the other options
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@8177 ec53bebd-3082-4978-b11e-865c3cabbd6b
2000-04-12 10:26:08 +00:00
Assar Westerlund
7d48b6d39e add support for display v4 tickets
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@8039 ec53bebd-3082-4978-b11e-865c3cabbd6b
2000-03-13 22:41:56 +00:00
Assar Westerlund
ec93c68b2d new krb5_timeofday
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@7871 ec53bebd-3082-4978-b11e-865c3cabbd6b
2000-02-06 08:15:40 +00:00
Johan Danielsson
c5b916ca6f remove advertising clause
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@7464 ec53bebd-3082-4978-b11e-865c3cabbd6b
1999-12-02 17:05:13 +00:00
Assar Westerlund
a69f4cf6dc signedness
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@7376 ec53bebd-3082-4978-b11e-865c3cabbd6b
1999-11-13 04:18:09 +00:00
Johan Danielsson
ddcd754dcf add a `--cache' flag
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@7019 ec53bebd-3082-4978-b11e-865c3cabbd6b
1999-09-24 12:53:41 +00:00
Assar Westerlund
d3f5d79294 strc{py,at}_truncate -> strlc{py,at}
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@6985 ec53bebd-3082-4978-b11e-865c3cabbd6b
1999-09-16 21:39:11 +00:00
Johan Danielsson
47c1301cd4 print cache version if verbose
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@6038 ec53bebd-3082-4978-b11e-865c3cabbd6b
1999-04-24 16:44:10 +00:00
Assar Westerlund
27af2f973d (--tokens): conditionalize on KRB4
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@6004 ec53bebd-3082-4978-b11e-865c3cabbd6b
1999-04-19 14:48:28 +00:00
Johan Danielsson
f3482e15f3 use krb5_cc_get_type
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@5977 ec53bebd-3082-4978-b11e-865c3cabbd6b
1999-04-18 13:48:46 +00:00
Assar Westerlund
3ad50e778d (print_cred_verbose): handle the case of a bad enctype
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@5896 ec53bebd-3082-4978-b11e-865c3cabbd6b
1999-04-09 18:26:23 +00:00
Johan Danielsson
a8bc3ac62f make it compile w/o krb4
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@5859 ec53bebd-3082-4978-b11e-865c3cabbd6b
1999-04-07 12:10:59 +00:00
Johan Danielsson
ea239f0081 (print_cred_verbose): use krb5_print_address
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@5806 ec53bebd-3082-4978-b11e-865c3cabbd6b
1999-03-29 19:32:21 +00:00
Assar Westerlund
aef4e16c4c add support for printing AFS tokens
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@5737 ec53bebd-3082-4978-b11e-865c3cabbd6b
1999-03-24 04:54:15 +00:00
Assar Westerlund
36b9d28a83 (main): don't print `no ticket file' with --test. From: Love
<lha@e.kth.se>


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@5730 ec53bebd-3082-4978-b11e-865c3cabbd6b
1999-03-24 03:40:13 +00:00
Johan Danielsson
64d4aa49d8 use print_version
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@5478 ec53bebd-3082-4978-b11e-865c3cabbd6b
1999-03-08 10:51:48 +00:00
Johan Danielsson
aaae186ab9 merge new-crypto branch
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@5332 ec53bebd-3082-4978-b11e-865c3cabbd6b
1999-02-11 21:03:59 +00:00
Assar Westerlund
934b736a61 add option -t | --test
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@5282 ec53bebd-3082-4978-b11e-865c3cabbd6b
1999-01-30 12:42:58 +00:00
Assar Westerlund
085021aea2 (usage): void-ize
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@5209 ec53bebd-3082-4978-b11e-865c3cabbd6b
1998-11-21 22:14:01 +00:00
Assar Westerlund
fc1956b05f new arg_printusage
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@5130 ec53bebd-3082-4978-b11e-865c3cabbd6b
1998-08-18 21:17:01 +00:00
Johan Danielsson
2c5800ad21 x
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@4746 ec53bebd-3082-4978-b11e-865c3cabbd6b
1998-04-05 19:39:53 +00:00