Commit Graph

342 Commits

Author SHA1 Message Date
Jacques A. Vidrine 2d609b163b Staticize `kadm5_config_params conf' passed to
`kadm5_init_with_password_ctx', since the latter holds a reference
to it.  Previously it was on the stack and would become overwritten
when doing `ktutil get'.


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@10779 ec53bebd-3082-4978-b11e-865c3cabbd6b
2001-10-29 12:53:52 +00:00
Assar Westerlund 9b8ad9f282 set and use INCLUDE_des
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@10574 ec53bebd-3082-4978-b11e-865c3cabbd6b
2001-08-28 08:31:31 +00:00
Assar Westerlund aad564d1c2 re-write the handling of crypto libraries. try to use the one of
openssl's libcrypto or krb4's libdes that has all the required
functionality (md4, md5, sha1, des, rc4).  if there is no such
library, the included lib/des is built.


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@10519 ec53bebd-3082-4978-b11e-865c3cabbd6b
2001-08-22 20:30:33 +00:00
Johan Danielsson 5fbe7f8ff9 some changes
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@10390 ec53bebd-3082-4978-b11e-865c3cabbd6b
2001-07-23 14:47:31 +00:00
Johan Danielsson fe6bf34316 don't open connection to server until we loop over the principals, at
that time we know the realm of the (first) principal and we can
default to that admin server


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@10388 ec53bebd-3082-4978-b11e-865c3cabbd6b
2001-07-23 14:30:09 +00:00
Johan Danielsson e84ee73029 document rename
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@10385 ec53bebd-3082-4978-b11e-865c3cabbd6b
2001-07-23 10:25:26 +00:00
Johan Danielsson bfc828cabd add rename command
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@10384 ec53bebd-3082-4978-b11e-865c3cabbd6b
2001-07-23 10:17:32 +00:00
Johan Danielsson 4d7d46d8b7 move common code for opening the keytab to ktutil.c
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@10383 ec53bebd-3082-4978-b11e-865c3cabbd6b
2001-07-23 09:46:41 +00:00
Johan Danielsson ad4db1f4e6 (do_list): make sure list of keys is NULL terminated; similar to patch
sent by Chris Chiappa


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@10086 ec53bebd-3082-4978-b11e-865c3cabbd6b
2001-06-18 01:24:29 +00:00
Johan Danielsson 776835b929 fix for broken mdoc.old grog test
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@10030 ec53bebd-3082-4978-b11e-865c3cabbd6b
2001-06-08 21:35:32 +00:00
Assar Westerlund 0d6df259a0 move printing of keytab strings to better times
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@9898 ec53bebd-3082-4978-b11e-865c3cabbd6b
2001-05-11 00:54:01 +00:00
Assar Westerlund 57c153beb7 (do_list): do not close the keytab if opening it failed
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@9896 ec53bebd-3082-4978-b11e-865c3cabbd6b
2001-05-11 00:49:21 +00:00
Assar Westerlund 39b2d61db6 (do_list): always print complete names. print everything to stdout.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@9895 ec53bebd-3082-4978-b11e-865c3cabbd6b
2001-05-10 21:55:07 +00:00
Assar Westerlund 8c9d71d780 print both v5 and v4 list by default
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@9894 ec53bebd-3082-4978-b11e-865c3cabbd6b
2001-05-10 16:05:15 +00:00
Assar Westerlund 5bb7e47989 remove left-overs of keytab handling
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@9893 ec53bebd-3082-4978-b11e-865c3cabbd6b
2001-05-10 16:04:27 +00:00
Assar Westerlund 020b649110 (kt_remove): reorganize some. open the keytab (defaulting to the modify
one).


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@9891 ec53bebd-3082-4978-b11e-865c3cabbd6b
2001-05-10 15:44:58 +00:00
Assar Westerlund c5b07dc7de (kt_purge): reorganize some. open the keytab (defaulting to the modify
one). correct usage strings


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@9890 ec53bebd-3082-4978-b11e-865c3cabbd6b
2001-05-10 15:44:30 +00:00
Assar Westerlund 7576655be4 (kt_list): reorganize some. open the keytab
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@9889 ec53bebd-3082-4978-b11e-865c3cabbd6b
2001-05-10 15:43:38 +00:00
Assar Westerlund 2f86a9d647 different variables
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@9888 ec53bebd-3082-4978-b11e-865c3cabbd6b
2001-05-10 15:42:45 +00:00
Assar Westerlund a54ed99f1e (kt_get): reorganize some. open the keytab (defaulting to the modify
one)


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@9887 ec53bebd-3082-4978-b11e-865c3cabbd6b
2001-05-10 15:42:01 +00:00
Assar Westerlund cf4cea286c (kt_copy): default to modify key name. re-organise
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@9886 ec53bebd-3082-4978-b11e-865c3cabbd6b
2001-05-10 15:41:06 +00:00
Assar Westerlund b1b216683c (kt_change): reorganize some. open the keytab (defaulting to the modify
one)


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@9885 ec53bebd-3082-4978-b11e-865c3cabbd6b
2001-05-10 15:40:07 +00:00
Assar Westerlund b341554465 (kt_add): reorganize some. open the keytab (defaulting to the modify
one)


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@9884 ec53bebd-3082-4978-b11e-865c3cabbd6b
2001-05-10 15:39:15 +00:00
Assar Westerlund 341d187004 (main): do not open the keytab, let every sub-function handle it
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@9883 ec53bebd-3082-4978-b11e-865c3cabbd6b
2001-05-10 15:37:59 +00:00
Assar Westerlund 25ad02d691 mdoc fixes from ru@freebsd.org
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@9830 ec53bebd-3082-4978-b11e-865c3cabbd6b
2001-05-02 08:59:23 +00:00
Assar Westerlund 6da52ff88e add -e/-enctypes for get
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@9819 ec53bebd-3082-4978-b11e-865c3cabbd6b
2001-04-25 12:09:32 +00:00
Assar Westerlund 9b75306702 (kt_get): allow specification of encryption types
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@9818 ec53bebd-3082-4978-b11e-865c3cabbd6b
2001-04-25 12:07:07 +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 2aefcf796c try to use handle using openssl instead of libdes better. based on patches from GOMBAS Gabor <gombasg@inf.elte.hu> and Brian May <bam@snoopy.apana.org.au>
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@9681 ec53bebd-3082-4978-b11e-865c3cabbd6b
2001-02-15 04:20:54 +00:00
Assar Westerlund 7ff3f957b7 add err.h
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@9497 ec53bebd-3082-4978-b11e-865c3cabbd6b
2001-01-25 12:45:15 +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 b26d1d6dfb (kt_get): more error checking
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@9426 ec53bebd-3082-4978-b11e-865c3cabbd6b
2000-12-31 02:51:43 +00:00
Johan Danielsson 1852f11803 reflect recent changes
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@9409 ec53bebd-3082-4978-b11e-865c3cabbd6b
2000-12-16 00:58:49 +00:00
Johan Danielsson c6d3be50e3 don't copy an entry that already exists in the keytab, and warn if the
keyblock differs


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@9407 ec53bebd-3082-4978-b11e-865c3cabbd6b
2000-12-16 00:45:29 +00:00
Johan Danielsson 427d9d63a6 merge srvcreate with copy
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@9405 ec53bebd-3082-4978-b11e-865c3cabbd6b
2000-12-16 00:17:19 +00:00
Johan Danielsson 37bcf8ded8 merge srvconvert with copy
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@9404 ec53bebd-3082-4978-b11e-865c3cabbd6b
2000-12-15 17:44:49 +00:00
Assar Westerlund f8ebd8cf33 (srvconvert): do not use data after free:ing it
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@9374 ec53bebd-3082-4978-b11e-865c3cabbd6b
2000-12-12 01:16:55 +00:00
Assar Westerlund baebf953a8 use LIB_des
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@9176 ec53bebd-3082-4978-b11e-865c3cabbd6b
2000-11-15 22:51:14 +00:00
Assar Westerlund fc9e03b73f add parse_time.h
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@8709 ec53bebd-3082-4978-b11e-865c3cabbd6b
2000-07-19 13:58:19 +00:00
Johan Danielsson 79dd8ff7f6 update to reality
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@8493 ec53bebd-3082-4978-b11e-865c3cabbd6b
2000-06-29 08:33:15 +00:00
Johan Danielsson 9fa736c820 use parse_time to parse age
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@8491 ec53bebd-3082-4978-b11e-865c3cabbd6b
2000-06-29 08:31:47 +00:00
Johan Danielsson 8485fe980d add printing of timestamp and key data; some cleanup
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@8489 ec53bebd-3082-4978-b11e-865c3cabbd6b
2000-06-29 08:21:40 +00:00
Assar Westerlund a0611751aa call strlcpy correctly
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@8334 ec53bebd-3082-4978-b11e-865c3cabbd6b
2000-06-07 02:38:46 +00:00
Assar Westerlund 9961b240b7 print name when failing to open keytab
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@8308 ec53bebd-3082-4978-b11e-865c3cabbd6b
2000-06-03 12:24:05 +00:00
Assar Westerlund d586725257 spelling error
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@8300 ec53bebd-3082-4978-b11e-865c3cabbd6b
2000-05-29 16:50:26 +00:00
Assar Westerlund 50a74f8919 (help_flag, version_flag): should be static, these are not used by
sub-commands


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@7894 ec53bebd-3082-4978-b11e-865c3cabbd6b
2000-02-07 04:29:25 +00:00
Assar Westerlund 268c361c5f (help_flag, version_flag): they don't belong here
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@7893 ec53bebd-3082-4978-b11e-865c3cabbd6b
2000-02-07 04:26:37 +00:00
Assar Westerlund 3dc7ccd14d add <des.h>
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@7855 ec53bebd-3082-4978-b11e-865c3cabbd6b
2000-02-06 05:17:05 +00:00
Assar Westerlund cb32d95778 (kt_purge): add
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@7725 ec53bebd-3082-4978-b11e-865c3cabbd6b
2000-01-06 08:03:06 +00:00
Assar Westerlund 86f7c481ba (ktutil_SOURCES): add purge
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@7724 ec53bebd-3082-4978-b11e-865c3cabbd6b
2000-01-06 08:02:37 +00:00