Commit Graph

99 Commits

Author SHA1 Message Date
Love Hornquist Astrand
e568ea28b2 No need to check for NULL, principal is allocated. 2009-07-30 09:47:24 +02:00
Love Hörnquist Åstrand
44493f8921 use krb5_principal_get_realm
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@25118 ec53bebd-3082-4978-b11e-865c3cabbd6b
2009-04-16 08:13:51 +00:00
Love Hörnquist Åstrand
ebc8d73af1 don't set unused variables, remove undefined behavior:
"Pass-by-value argument in function is undefined."

git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@24869 ec53bebd-3082-4978-b11e-865c3cabbd6b
2009-02-27 03:33:26 +00:00
Love Hörnquist Åstrand
97b2277b95 move rcsid, make afs optional
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@24365 ec53bebd-3082-4978-b11e-865c3cabbd6b
2009-01-25 00:32:11 +00:00
Love Hörnquist Åstrand
35425fff7d print friendly name in klist output if it differs from principal
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@24183 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-12-15 04:29:23 +00:00
Love Hörnquist Åstrand
bf2976562a print friendly name
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@24182 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-12-15 04:29:13 +00:00
Love Hörnquist Åstrand
c433df9fa7 use krb5_is_config_principal()
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@23867 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-09-28 05:14:41 +00:00
Love Hörnquist Åstrand
7b0f314da2 select heimdal_kuser as text domain
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@23836 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-09-14 11:54:21 +00:00
Love Hörnquist Åstrand
18e444d6d4 Use unparse_flags for ticket flags.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@23830 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-09-14 11:53:28 +00:00
Love Hörnquist Åstrand
b852960c8a N_()ify
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@23829 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-09-14 11:53:13 +00:00
Love Hörnquist Åstrand
6937d41a02 remove trailing whitespace
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@23815 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-09-13 09:21:03 +00:00
Love Hörnquist Åstrand
e172367898 switch to utf8 encoding of all files
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@23814 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-09-13 08:53:55 +00:00
Love Hörnquist Åstrand
fecad68410 add new option --hidden that doesn't display principal that starts with @
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@20516 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-04-22 10:40:41 +00:00
Love Hörnquist Åstrand
0d1b4d2de9 remove code that depend on kerberos 4 library
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@20458 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-04-19 20:41:27 +00:00
Love Hörnquist Åstrand
9e3b1291f4 (print_cred_verbose): include ticket length in the verbose output
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19770 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-01-09 00:03:46 +00:00
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