Commit Graph

2571 Commits

Author SHA1 Message Date
Love Hörnquist Åstrand
899e9ce83d (krb5_free_context): clear error string before destroying mutex
(krb5_init_context): don't call krb5_free_context before there is a
mutex initialized


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@14358 ec53bebd-3082-4978-b11e-865c3cabbd6b
2004-11-30 07:02:01 +00:00
Love Hörnquist Åstrand
00fd1e3851 (krb5_get_in_cred): clear pointer after freeing data
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@14353 ec53bebd-3082-4978-b11e-865c3cabbd6b
2004-11-13 21:08:17 +00:00
Love Hörnquist Åstrand
ef868c62a1 (change_password): handle old_options being NULL
From Guenther Deschner on samba-technical.


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@14351 ec53bebd-3082-4978-b11e-865c3cabbd6b
2004-11-13 20:41:54 +00:00
Love Hörnquist Åstrand
75912c3d7f add more text describing the krb5_get_init_creds functions
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@14349 ec53bebd-3082-4978-b11e-865c3cabbd6b
2004-11-12 01:56:56 +00:00
Love Hörnquist Åstrand
993e8c9eea make krb5_get_init_creds_keytab work again
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@14347 ec53bebd-3082-4978-b11e-865c3cabbd6b
2004-11-11 17:50:43 +00:00
Love Hörnquist Åstrand
24c3bcd18f document some more functions
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@14342 ec53bebd-3082-4978-b11e-865c3cabbd6b
2004-11-09 21:19:16 +00:00
Love Hörnquist Åstrand
735376035c add description for opt_init, opt_alloc, opt_free
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@14340 ec53bebd-3082-4978-b11e-865c3cabbd6b
2004-11-09 18:55:40 +00:00
Love Hörnquist Åstrand
3e732e53ea unexport krb5_get_init_creds_opt_free_pkinit
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@14339 ec53bebd-3082-4978-b11e-865c3cabbd6b
2004-11-09 18:52:03 +00:00
Love Hörnquist Åstrand
fbd7b2787a fold init_init_creds_ctx into get_init_creds_common
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@14338 ec53bebd-3082-4978-b11e-865c3cabbd6b
2004-11-09 16:10:57 +00:00
Love Hörnquist Åstrand
fb7b2586bc (_krb5_get_init_creds_opt_copy): if the in options NULL, just make a clean copy
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@14337 ec53bebd-3082-4978-b11e-865c3cabbd6b
2004-11-09 15:30:34 +00:00
Love Hörnquist Åstrand
d466d67e0e (krb5_rd_rep): free ap_rep message earlier so we don't leak it on error
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@14333 ec53bebd-3082-4978-b11e-865c3cabbd6b
2004-11-01 09:04:40 +00:00
Love Hörnquist Åstrand
4414774aa6 unbreak 2b entry
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@14330 ec53bebd-3082-4978-b11e-865c3cabbd6b
2004-10-31 22:32:27 +00:00
Love Hörnquist Åstrand
6554996344 (make_cred_from_ccred): the address isn't a sockaddr but rather a
kerberos address, deal with that.
Based on bug report from Jakob Schlyter <jakob@rfc.se>.


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@14327 ec53bebd-3082-4978-b11e-865c3cabbd6b
2004-10-31 14:10:46 +00:00
Love Hörnquist Åstrand
c56917439e match new error names
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@14315 ec53bebd-3082-4978-b11e-865c3cabbd6b
2004-10-14 15:31:25 +00:00
Love Hörnquist Åstrand
42ab8cc9aa make error messages sane again
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@14314 ec53bebd-3082-4978-b11e-865c3cabbd6b
2004-10-14 15:30:29 +00:00
Love Hörnquist Åstrand
2011850a53 use KRB5_KT_BADNAME
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@14312 ec53bebd-3082-4978-b11e-865c3cabbd6b
2004-10-13 20:10:09 +00:00
Love Hörnquist Åstrand
a8f507a1ac sync with mit krb5_err.et (require major version bump)
add KRB5_DELTAT_BADFORMAT


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@14310 ec53bebd-3082-4978-b11e-865c3cabbd6b
2004-10-13 19:14:42 +00:00
Love Hörnquist Åstrand
1f5182ef5d time defaults to "s"
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@14309 ec53bebd-3082-4978-b11e-865c3cabbd6b
2004-10-13 18:13:16 +00:00
Love Hörnquist Åstrand
8311097ae4 (krb5_string_to_deltat): default to "s" again, MIT's behavior was
actually that it failed to parse the number (and thus used the
default). Even better, ticket_lifetime (that was a consumer supposed a
of the interface) was documented but never implemented, when it was
implemented, people configuraiton files started to fail.
Also, use KRB5_DELTAT_BADFORMAT as a failure code.


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@14308 ec53bebd-3082-4978-b11e-865c3cabbd6b
2004-10-13 17:57:11 +00:00
Love Hörnquist Åstrand
6c3270b0eb add enctype_des3_cbc_none_cms
add cms padding for rc2
don't to padding for blocksize 1


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@14301 ec53bebd-3082-4978-b11e-865c3cabbd6b
2004-10-12 21:23:48 +00:00
Love Hörnquist Åstrand
aa710fc27f free openssl engine
deal with RecipientIdentifier -> CMSIdentifier and heim_any -> name change
improve error messages


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@14294 ec53bebd-3082-4978-b11e-865c3cabbd6b
2004-10-06 22:38:21 +00:00
Love Hörnquist Åstrand
ee9f6e571b filter out dup openssl engine keys, parse user options first
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@14286 ec53bebd-3082-4978-b11e-865c3cabbd6b
2004-10-03 17:46:01 +00:00
Love Hörnquist Åstrand
c80a3c8ebc stop using AlgorithmIdentifierNonOpt, add openssl engine support for
private key


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@14284 ec53bebd-3082-4978-b11e-865c3cabbd6b
2004-10-03 17:20:38 +00:00
Love Hörnquist Åstrand
d6cb6af31e support padding as its done in CMS
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@14283 ec53bebd-3082-4978-b11e-865c3cabbd6b
2004-10-03 17:19:53 +00:00
Love Hörnquist Åstrand
84c67cadf0 assume minutes for time
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@14276 ec53bebd-3082-4978-b11e-865c3cabbd6b
2004-09-30 11:27:20 +00:00
Love Hörnquist Åstrand
c9fb7b3e5c (krb5_config_vget_time_default): use krb5_string_to_deltat
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@14275 ec53bebd-3082-4978-b11e-865c3cabbd6b
2004-09-30 11:22:48 +00:00
Love Hörnquist Åstrand
30001db317 (krb5_appdefault_time): use krb5_string_to_deltat
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@14274 ec53bebd-3082-4978-b11e-865c3cabbd6b
2004-09-30 11:21:21 +00:00
Love Hörnquist Åstrand
00e45867e6 (krb5_string_to_deltat): set default unit to minute for compatibility
with MIT Kerberos.


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@14273 ec53bebd-3082-4978-b11e-865c3cabbd6b
2004-09-30 11:19:46 +00:00
Love Hörnquist Åstrand
317fc43716 (get_cred_kdc_usage): retry using "large message safe" transport if we
get back KRB5KRB_ERR_RESPONSE_TOO_BIG error. Idea from Guenther
Deschner <gd@sernet.de>


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@14269 ec53bebd-3082-4978-b11e-865c3cabbd6b
2004-09-28 17:29:39 +00:00
Johan Danielsson
0ad7748212 check /Library/Preferences/edu.mit.Kerberos on OSX
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@14253 ec53bebd-3082-4978-b11e-865c3cabbd6b
2004-09-23 07:57:37 +00:00
Johan Danielsson
a61e4d44bd (krb5_format_time): check return value from localtime and strftime
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@14248 ec53bebd-3082-4978-b11e-865c3cabbd6b
2004-09-21 15:47:37 +00:00
Love Hörnquist Åstrand
2218eea060 use krb5_ccapi.h
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@14211 ec53bebd-3082-4978-b11e-865c3cabbd6b
2004-09-11 04:02:43 +00:00
Love Hörnquist Åstrand
35cec21db6 break out krb5 api definitions to separate (not installed) file
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@14210 ec53bebd-3082-4978-b11e-865c3cabbd6b
2004-09-11 04:00:42 +00:00
Love Hörnquist Åstrand
82406dabe3 add AM_CPPFLAGS to libkrb5_la_CPPFLAGS since AM_CPPFLAGS overridden by
target specific _CPPFLAGS


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@14209 ec53bebd-3082-4978-b11e-865c3cabbd6b
2004-09-11 03:56:19 +00:00
Love Hörnquist Åstrand
ba0ff6be30 make variable shorter, make error messages from pkinit, make freeing easier
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@14201 ec53bebd-3082-4978-b11e-865c3cabbd6b
2004-09-07 22:26:40 +00:00
Love Hörnquist Åstrand
cf536910ba link libkrb5 with LIB_dlopen
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@14194 ec53bebd-3082-4978-b11e-865c3cabbd6b
2004-09-06 06:52:18 +00:00
Love Hörnquist Åstrand
6af75bb33b (seed_something): avoid poking at memory that is uninitialized, make
valgrind unhappy. Pointd out by abartlet@samba.org. While where, plug
the fd leak.


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@14193 ec53bebd-3082-4978-b11e-865c3cabbd6b
2004-09-06 06:45:12 +00:00
Love Hörnquist Åstrand
64482ff6ab (krb5_get_init_creds): kdc_reply can be set in case of failure too,
free unconditionally on exit to avoid memory leak


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@14179 ec53bebd-3082-4978-b11e-865c3cabbd6b
2004-08-30 23:28:10 +00:00
Johan Danielsson
0624b4457e replace INCLUDES with AM_CPPFLAGS
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@14164 ec53bebd-3082-4978-b11e-865c3cabbd6b
2004-08-26 11:55:29 +00:00
Love Hörnquist Åstrand
3225e16607 (set_auth_data): set pointer to NULL after free
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@14145 ec53bebd-3082-4978-b11e-865c3cabbd6b
2004-08-23 19:33:34 +00:00
Love Hörnquist Åstrand
8763264587 (krb5_get_err_text): if neither of com_right nor strerror finds the
error-code, return Unknown error.


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@14135 ec53bebd-3082-4978-b11e-865c3cabbd6b
2004-08-20 07:54:58 +00:00
Johan Danielsson
c7b40cba89 update to reality
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@14133 ec53bebd-3082-4978-b11e-865c3cabbd6b
2004-08-19 15:32:02 +00:00
Johan Danielsson
8964d4ead4 if a .k5login file exist, don't give implicit rights to anyone; also
check owner/mode of .k5login


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@14132 ec53bebd-3082-4978-b11e-865c3cabbd6b
2004-08-19 15:31:40 +00:00
Love Hörnquist Åstrand
f5946ce7bf man_MANS = krb5_getportbyname.3
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@14127 ec53bebd-3082-4978-b11e-865c3cabbd6b
2004-08-15 16:05:08 +00:00
Love Hörnquist Åstrand
9592525a3e manpage for krb5_getportbyname
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@14126 ec53bebd-3082-4978-b11e-865c3cabbd6b
2004-08-15 16:04:16 +00:00
Love Hörnquist Åstrand
bf8dc75548 add krb5_getportbyname
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@14125 ec53bebd-3082-4978-b11e-865c3cabbd6b
2004-08-15 16:02:13 +00:00
Love Hörnquist Åstrand
d2e3b6f2b4 krb5_free_salt and krb5_enctype_valid
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@14123 ec53bebd-3082-4978-b11e-865c3cabbd6b
2004-08-15 13:07:15 +00:00
Love Hörnquist Åstrand
d9a43dfd35 document krb5_enctype_valid
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@14122 ec53bebd-3082-4978-b11e-865c3cabbd6b
2004-08-15 13:00:11 +00:00
Love Hörnquist Åstrand
b7664ac1cb document krb5_free_salt
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@14115 ec53bebd-3082-4978-b11e-865c3cabbd6b
2004-08-13 13:23:57 +00:00
Love Hörnquist Åstrand
b3c377ae79 data needs to be freed when using krb5_ticket_get_authorization_data_type
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@14114 ec53bebd-3082-4978-b11e-865c3cabbd6b
2004-08-12 10:22:04 +00:00