Commit Graph

204 Commits

Author SHA1 Message Date
wiz
04a019cf46 Use standard headers. 2001-11-21 10:45:02 +00:00
gmcgarry
6beeed91dd Fix pasto. 2001-11-21 06:11:35 +00:00
gmcgarry
13b12e76bb Add documentation. 2001-11-21 05:39:49 +00:00
gmcgarry
4b5703f57d Include the full path to the other header files so they get found. 2001-11-21 05:38:40 +00:00
gmcgarry
289e069e67 Clean up terminology and clarify a few things. Add a simple example. 2001-11-21 05:36:33 +00:00
wiz
0b47c7a3f0 Improve markup in two places, and fix a typo. 2001-11-10 08:16:45 +00:00
gmcgarry
54c913f1cb Add compile_et(1). 2001-11-10 07:50:16 +00:00
wiz
73322f1e45 Drop an unnecessary empty line. 2001-11-08 20:40:44 +00:00
wiz
7be1bf7993 Drop 'HEIMDAL' from Os, fix punctuation in one place, and sort SEE ALSO. 2001-11-08 20:21:07 +00:00
wiz
440da35ad1 Sort SEE ALSO. 2001-11-08 20:20:29 +00:00
wiz
c214b605c7 Fix Dd, and two punctuation nits. 2001-11-08 20:20:01 +00:00
wiz
e704cca5ec Drop unnecessary empty lines. 2001-11-08 20:18:57 +00:00
wiz
43ac9b6569 Fix Xrefs. 2001-11-08 20:18:10 +00:00
wiz
f7b5c3a4df Uppercase Dt argument. 2001-11-08 20:17:09 +00:00
gmcgarry
f243ad4c28 Customise documentation for NetBSD:
- introduce krb5.3 as an entry-point to libkrb5 documentation
- add LIBRARY sections
- reference the real headers in <krb5/krb5.h>
2001-11-08 19:47:37 +00:00
wiz
4c99916337 va_{start,end} audit:
Make sure that each va_start has one and only one matching va_end,
especially in error cases.
If the va_list is used multiple times, do multiple va_starts/va_ends.
If a function gets va_list as argument, don't let it use va_end (since
it's the callers responsibility).

Improved by comments from enami and christos -- thanks!

Heimdal/krb4/KAME changes already fed back, rest to follow.

Inspired by, but not not based on, OpenBSD.
2001-09-24 13:22:25 +00:00
wiz
f6f3964e5e Remove formatted man pages. Ok'd by joda. 2001-09-24 12:37:41 +00:00
assar
7b980ee03e remove files that were not part of last import 2001-09-23 05:03:52 +00:00
thorpej
123c0ecfea Printf formats on LP64. 2001-09-18 03:11:22 +00:00
assar
c6cbe4853a fix merge-o's 2001-09-17 15:06:48 +00:00
assar
5b9616a3e3 merge heimdal 0.4e 2001-09-17 12:32:33 +00:00
assar
e4d8a8f3dd import of heimdal 0.4e 2001-09-17 12:24:30 +00:00
assar
76371341d1 remove a (potentially) double free 2001-07-18 21:54:56 +00:00
wiz
7615e78c24 Remove formatted man pages. 2001-07-08 19:20:55 +00:00
assar
f9feddfb52 add string.h, noted by Staffan Thomen <duck@multi.fi> 2001-06-23 22:42:43 +00:00
assar
4b1c7f1857 update generated heimdal include files for 0.3f
update Makefile infrastructure for 0.3f
bump shared library versions
fix some merge problems
2001-06-20 02:01:18 +00:00
assar
df54fb31c9 merge in conflicts after 0.3f import 2001-06-19 22:39:52 +00:00
assar
c6c55d41cd import of heimdal 0.3f 2001-06-19 22:08:08 +00:00
assar
f9ab899fe6 import of heimdal 0.3f 2001-06-19 22:07:32 +00:00
wiz
71a78ab6ea Note that HEIMDAL should be removed after '.Os' in man pages on import. 2001-06-05 17:08:07 +00:00
joda
8f12cb2799 not yet operational Heimdal import script 2001-06-05 17:04:24 +00:00
wiz
5e80b5d2de Remove trailing dot in Nd. 2001-06-05 12:19:35 +00:00
wiz
04065ff226 No argument for .Os. 2001-06-05 10:13:54 +00:00
wiz
48a36de9c0 Don't give .Os an argument, not even 'NetBSD' (default includes version). 2001-06-05 10:08:03 +00:00
joda
ba3d920481 fix argument number test 2001-05-04 13:09:43 +00:00
joda
cbf5d74c87 fix argument count check after getarg change; spotted by Mark Davies
in bin/12696
2001-04-19 07:30:04 +00:00
wiz
00daa6e0e2 Fix date. 2001-04-11 19:37:45 +00:00
wiz
f3e777112c Fix date. 2001-04-11 18:23:42 +00:00
wiz
8626516b97 Prefer logical mark-up in one place. 2001-04-09 13:01:11 +00:00
wiz
f1e8ff0ae6 Fix date. 2001-04-09 12:42:35 +00:00
thorpej
dfaae5d853 Fix markup bug accidentally un-done in 0.3e merge fixup. 2001-04-07 22:20:33 +00:00
thorpej
f4872dded4 Reduce diffs with 0.3e (mostly, complete the merge). 2001-04-07 21:29:20 +00:00
thorpej
9ad709dc65 More mishaps from the 0.3e merge. 2001-04-07 21:03:51 +00:00
itojun
01692d62bf 0.3e import leftover. heimdal experts, please check. 2001-04-06 10:10:21 +00:00
itojun
500c4f040b sync HEAD with v0-3e tag. it seems that it was left behind when heimdal
0.3e is imported.  without this change, lib/libhdb does not compile.
PR12560
2001-04-06 08:32:35 +00:00
thorpej
6158847f3d Prevent a NULL-pointer deref when making a TGS_REP for a ticket
renewal.

Patch from Assar via private mail.
2001-04-06 04:39:31 +00:00
wiz
7d378dde0d It's vs. Its. 2001-04-02 17:28:29 +00:00
thorpej
9ab0878e2a If we get a KRB5KRB_AP_ERR_BAD_INTEGRITY on a TGS req with
a key usage of KRB5_KU_TGS_REQ_AUTH, then try again with a
key usage of KRB5_KU_AP_REQ_AUTH.  This addresses an interop
issue between new kinit(1) (0.3e) and older KDCs (such as 0.3a).

Patch from assar@netbsd.org; see discussion on current-users.
2001-03-12 19:25:51 +00:00
thorpej
ac356314da Document:
- forwardable ([libdefaults] and [realms])
- proxiable ([libdefaults] and [realms])
- date_format ([libdefaults])
- srv_lookup ([libdefaults])
- srv_try_txt ([libdefaults])
- scan_interfaces ([libdefaults])
- fcache_version ([libdefaults])
2001-03-08 17:53:46 +00:00
thorpej
bda8951f6b Plug some memory leaks. 2001-03-08 04:12:08 +00:00
joda
ce75fa5829 removed in 0.3e 2001-02-16 15:34:39 +00:00
assar
43c24b8340 undef ECHO to avoid a warning from the lex-generated code 2001-02-11 17:59:15 +00:00
assar
7a01412798 fix merg-up 2001-02-11 17:58:27 +00:00
assar
657da009a2 fix texinfo mark-up bug 2001-02-11 17:56:09 +00:00
assar
465ad8fda9 fix merge-ups 2001-02-11 16:08:41 +00:00
assar
be890e9bcf fix merge conflicts 2001-02-11 14:13:07 +00:00
assar
7a16662ba0 import of heimdal 0.3e 2001-02-11 13:51:06 +00:00
christos
a132b86864 remove redundant declarations 2001-02-04 22:55:26 +00:00
christos
28473bf6be remove redundant prototypes. 2001-02-04 18:00:31 +00:00
lukem
286bcc01a3 don't use LOG_CONS 2001-01-11 02:58:05 +00:00
christos
2c1245f292 eliminate redundant declarations. 2001-01-06 23:30:57 +00:00
itojun
5a3fc2bdaa PR 11715
- kerberos is in chapter 8, not 7
- ftp(1) is not kerberized.
2000-12-31 07:45:50 +00:00
fvdl
be812c01d9 Remove redundant forward declaration of krb5_cache_data struct. 2000-12-24 12:17:21 +00:00
itojun
5389a2b390 cope with embedded KAME scopeid. getifaddrs() expose kernel internal format
to the userland.
2000-12-21 03:58:52 +00:00
nathanw
1cc86f8ba4 Check the return value of krb5_init_context(), and bail out if it failed.
Also, when failing, don't try to use the non-initialized context value
to determine the error text.

This avoids dumping core in the following programs when /etc/krb5.conf is
missing or broken: klist, kdestroy, kpasswd, kadmin, kadmind, ktutil, kdc.

XXX Better error reporting in this failure case would be nice.
2000-12-19 21:31:11 +00:00
thorpej
ecf24d1394 Use getifaddrs() if HAVE_GETIFADDRS is defined. 2000-12-03 20:21:03 +00:00
thorpej
074a0c939d In krb5_sendto(), try the send/recv *inside* the loop through the
addinfos, so that e.g. if we fail to connect with an IPv6 address,
we can fall back onto an IPv4 address.
2000-12-02 01:53:08 +00:00
fvdl
c9366a8efe Fix reversed test. 2000-11-20 14:08:12 +00:00
joda
25f03b52f9 remove extra .Xc 2000-11-12 15:40:19 +00:00
fvdl
e22c13589c Make gss_acquire_cred actually work. Add a ccache member to the id_t struct
to store alternate creds, retrieved from a keytab. Make gss_init_sec_context
work with creds != GSS_C_NO_CREDENTIAL. Free ccache in id_t in release_cred.
2000-11-06 15:06:51 +00:00
joda
4b39e2fe3f fix v4 fallback lifetime calculation 2000-10-27 14:44:08 +00:00
mycroft
968a585ab4 Fix formatting error. 2000-10-20 18:01:26 +00:00
itojun
b5c4933a2d printf format pedant. (size_t -> u_long). 2000-10-10 13:14:55 +00:00
is
7db764779b Format string cleanup by sommerfeld. 2000-10-08 18:40:08 +00:00
sommerfeld
37146bcc18 format checking for internal functions 2000-10-05 14:17:12 +00:00
sommerfeld
29dec280ee format checking for internal function 2000-10-05 14:16:10 +00:00
fvdl
fb9657047a Add support for running kpasswdd from inetd. Active if INETD_SUPPORT
is defined. In either case, kpasswdd will continue to work from
the commandline as usual.
2000-09-13 11:29:26 +00:00
joda
7bc28b6591 add manpage for kadmin 2000-09-10 19:45:04 +00:00
joda
5ab344e414 add a, somewhat terse, kerberos overview manpage 2000-09-10 19:34:49 +00:00
joda
0acd5e96a9 move config and log files out of /var/heimdal 2000-09-10 19:29:44 +00:00
assar
38f9bead65 fix bad mdoc markup. closed PR/10854 2000-08-20 10:36:40 +00:00
fvdl
d2cc354307 Fix example: lib_defaults -> libdefaults, default_domain -> default_realm 2000-08-15 17:22:45 +00:00
thorpej
dafbb1e2ea - Reference count MCC IDs, and garbage-collect them in destroy if
the ref count is 0, and in close if the ref count is 0 and the
  ID is dead (i.e. has been previously destroyed).
- Don't use temp files to generate unique MCC names; use ASCII
  representations of pointers to the malloc'd IDs, which is
  unique enough for our purposes.
- Dead IDs cause an ENOENT error, as would a dead FCC ID.

Per discussion w/ Johan Danielsson <joda@pdc.kth.se>.
2000-08-10 18:58:59 +00:00
thorpej
7dd4170cf5 Fix typos in some #if 0'd code. 2000-08-10 16:18:00 +00:00
thorpej
4ffaedfcde Fix the semantics of krb5_cc_close() and krb5_cc_destroy() for
the MCC.  They now match the semantics of the MIT krb5
implementation.
2000-08-10 15:51:20 +00:00
thorpej
bae9616e91 Add support for multiple Memory Credendial Caches, like MIT has.
This fleshes out mcc_get_name(), mcc_resolve(), mcc_destroy().
2000-08-10 02:23:07 +00:00
thorpej
24ceace29d Add krb5_princ_type() and krb5_princ_size() that appear in the MIT
API but not in Heimdal, and add commented out empty versions of
krb5_princ_set_realm_length(), krb5_princ_set_realm_data(),
krb5_princ_name(), and krb5_princ_component(), which also appear
in the MIT API, but which cannot be implemented in Heimdal until
a change is made to how some data is represented internally (as
these API functions expose that, as foolish as that is, but
that's how MIT did it, and some applications use it).
2000-08-09 23:27:19 +00:00
thorpej
1435d15e40 Cause the kdc to write a pidfile in /var/run/kdc.pid and to
detach from the tty by default.  Add a [-D | --no-detach]
option to restore the old behavior (which is useful for
debugging).
2000-08-06 18:42:19 +00:00
thorpej
e80d60fa71 Catch krb5_init_context() failure. 2000-08-06 17:59:15 +00:00
thorpej
a240003d0c Plug a small memory leak. 2000-08-06 17:58:53 +00:00
thorpej
e59093f4f7 Use socklen_t as appropriate, so that this compiles on LP64
systems.
2000-08-06 06:48:50 +00:00
assar
de3878349f this was removed from the source 2000-08-03 03:39:02 +00:00
assar
9949e16264 merge back some hacks 2000-08-03 03:38:25 +00:00
assar
f8815e6596 merge in 0.3a 2000-08-02 20:08:33 +00:00
assar
7f5f475a8b import of heimdal 0.3a 2000-08-02 19:57:59 +00:00
garbled
e90fd304b7 Removed #ifndef's so this file can be included by compile_et and
asn1_compile when building host-tools on machines that don't have those
functions.
2000-08-02 02:44:06 +00:00
thorpej
de40c8191d Return failure if there is no Kerberos 5 configuration file. 2000-07-16 18:27:53 +00:00
thorpej
c752ee0a92 Fix a thinko in previous that prevented libroken from getting
both version strings.
2000-07-15 17:02:17 +00:00
assar
231c9cbcf7 add man-pages for kf and kfd 2000-07-02 07:39:39 +00:00
fvdl
14d0802975 Dt -> Dd for date, otherwise this manpage looked unlike a manpage. 2000-06-26 23:28:46 +00:00
thorpej
8dd0fdd69b Fix printf formats on LP64. 2000-06-21 06:05:01 +00:00
thorpej
4696f48761 Remove pre-genereated info files. 2000-06-20 22:02:22 +00:00
thorpej
c4dc11daa0 Const poison the version strings. 2000-06-19 20:51:53 +00:00
thorpej
1af8b95994 Import Heimdal Kerberos 5 from cryptosrc-intl. 2000-06-16 18:31:35 +00:00