Love Hörnquist Åstrand
e84fad2e0e
zero out content of all krb5_free_x_content like functions to make sure data doesnt get reused, idea from Wynn Wilkes <wwilkes@vintela.com>
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@15167 ec53bebd-3082-4978-b11e-865c3cabbd6b
2005-05-18 04:21:57 +00:00
Love Hörnquist Åstrand
682ff3fef0
(krb5_init_context): register krb5_javakt_ops
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@15149 ec53bebd-3082-4978-b11e-865c3cabbd6b
2005-05-17 08:08:28 +00:00
Love Hörnquist Åstrand
5081487496
(krb5_set_config_files): ignore permission denied on configuration
...
files, user might no be allowed to read /var/heimdal/kdc.conf
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@14997 ec53bebd-3082-4978-b11e-865c3cabbd6b
2005-04-28 09:04:10 +00:00
Love Hörnquist Åstrand
c75a81d69f
(init_context_from_config_file): init large_msg_size to 6000
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@14549 ec53bebd-3082-4978-b11e-865c3cabbd6b
2005-02-03 08:36:25 +00:00
Luke Howard
710ae74abe
register KCM cc_ops
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@14529 ec53bebd-3082-4978-b11e-865c3cabbd6b
2005-02-02 07:29:54 +00:00
Love Hörnquist Åstrand
2d1c1063ef
krb5_enctype_is_disabled is the same thing as krb5_enctype_valid, so
...
use the later since its older and the api doesn't really need another
entry point
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@14487 ec53bebd-3082-4978-b11e-865c3cabbd6b
2005-01-08 20:43:50 +00:00
Love Hörnquist Åstrand
802103911a
(krb5_is_thread_safe): return TRUE is the library was compiled with
...
multithreading support. If not, application must global lock the
library, it it uses threads that call kerberos functions at the same
time.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@14470 ec53bebd-3082-4978-b11e-865c3cabbd6b
2005-01-05 09:41:36 +00:00
Luke Howard
6c18d8d314
mutex should be destroyed last in krb5_free_context()
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@14466 ec53bebd-3082-4978-b11e-865c3cabbd6b
2005-01-05 05:48:44 +00:00
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
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
Love Hörnquist Åstrand
00373fe5ba
register krb5_acc_ops
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@14094 ec53bebd-3082-4978-b11e-865c3cabbd6b
2004-08-06 16:01:54 +00:00
Love Hörnquist Åstrand
91351971f7
add KRB5_LIB_FUNCTION to all exported functions
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@13863 ec53bebd-3082-4978-b11e-865c3cabbd6b
2004-05-25 21:46:46 +00:00
Love Hörnquist Åstrand
b8ddf0d0a7
(krb5_set_default_in_tkt_etypes): use the return from krb5_enctype_valid
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@13738 ec53bebd-3082-4978-b11e-865c3cabbd6b
2004-04-21 13:36:33 +00:00
Love Hörnquist Åstrand
12289e8b96
(default_etypes): avoid using disabled enctypes
...
(set_etypes): avoid using disabled enctypes
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@13463 ec53bebd-3082-4978-b11e-865c3cabbd6b
2004-03-07 20:59:39 +00:00
Love Hörnquist Åstrand
653db66d34
register WRFILE ops
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@13294 ec53bebd-3082-4978-b11e-865c3cabbd6b
2004-01-25 21:05:42 +00:00
Love Hörnquist Åstrand
9241394b39
allocate and destroy mutex in krb5_context
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@13236 ec53bebd-3082-4978-b11e-865c3cabbd6b
2003-12-19 01:23:40 +00:00
Love Hörnquist Åstrand
672fd697ee
(add_file): make len argument an pointer to an integer
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@12775 ec53bebd-3082-4978-b11e-865c3cabbd6b
2003-09-04 18:15:45 +00:00
Love Hörnquist Åstrand
bec7df49db
add krb5_prepend_config_files and krb5_prepend_config_files_default
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@12583 ec53bebd-3082-4978-b11e-865c3cabbd6b
2003-08-18 05:09:05 +00:00
Love Hörnquist Åstrand
7217eb2214
(default_etypes): also advertise that we handle aes encryption types
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@12117 ec53bebd-3082-4978-b11e-865c3cabbd6b
2003-04-23 17:41:43 +00:00
Love Hörnquist Åstrand
3d2fd2dc7f
(init_context_from_config_file): set default_cc_name to NULL
...
(krb5_free_context): free default_cc_name if set
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@11680 ec53bebd-3082-4978-b11e-865c3cabbd6b
2003-03-10 00:24:13 +00:00
Johan Danielsson
89a75e551c
(krb5_set_config_files): return ENXIO instead of ENOENT when
...
"unconfigured"
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@11467 ec53bebd-3082-4978-b11e-865c3cabbd6b
2002-09-19 19:49:52 +00:00
Johan Danielsson
efd5e9c1a4
(init_context_from_config_file): simplify initialisation of srv_lookup
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@11328 ec53bebd-3082-4978-b11e-865c3cabbd6b
2002-09-02 17:03:12 +00:00
Johan Danielsson
b59dafe5ca
add some disabled code to bail out if there is no parable config file
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@11254 ec53bebd-3082-4978-b11e-865c3cabbd6b
2002-08-28 15:27:24 +00:00
Jacques A. Vidrine
1d68b59387
Rename the srv_lookup' option to
dns_lookup_kdc'.
...
`srv_lookup' can still be specified for backwards compatibility.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@11244 ec53bebd-3082-4978-b11e-865c3cabbd6b
2002-08-28 13:36:47 +00:00
Johan Danielsson
6ab88b50af
(krb5_get_default_config_files): ignore duplicate files
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@11121 ec53bebd-3082-4978-b11e-865c3cabbd6b
2002-08-19 12:13:15 +00:00
Johan Danielsson
c84480bd74
fix various borked stuff in previous commits
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@11109 ec53bebd-3082-4978-b11e-865c3cabbd6b
2002-08-16 19:42:18 +00:00
Johan Danielsson
9cc8a49534
get the default keytab from KRB5_KTNAME
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@11100 ec53bebd-3082-4978-b11e-865c3cabbd6b
2002-08-15 07:35:48 +00:00
Johan Danielsson
0b705c8b67
allow changing config files with the function krb5_set_config_files,
...
there are also related functions krb5_get_default_config_files and
krb5_free_config_files; these should work similar to their MIT
counterparts
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@11097 ec53bebd-3082-4978-b11e-865c3cabbd6b
2002-08-14 17:37:05 +00:00
Johan Danielsson
cfcc91e48a
(krb5_free_context): don't try to free the ccache prefix
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@10917 ec53bebd-3082-4978-b11e-865c3cabbd6b
2002-04-18 09:39:01 +00:00
Johan Danielsson
4b8ecd28c5
(krb5_get_err_text): protect against NULL context
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@10831 ec53bebd-3082-4978-b11e-865c3cabbd6b
2002-02-12 08:24:08 +00:00
Johan Danielsson
7f16501934
default default_keytab_modify to NULL
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@10815 ec53bebd-3082-4978-b11e-865c3cabbd6b
2002-01-30 10:10:24 +00:00
Johan Danielsson
1702411f48
(krb5_free_context): free more stuff
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@10609 ec53bebd-3082-4978-b11e-865c3cabbd6b
2001-08-31 08:00:15 +00:00
Johan Danielsson
5c2eadbae5
don't init srv_try_txt, since it isn't used anymore
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@10603 ec53bebd-3082-4978-b11e-865c3cabbd6b
2001-08-30 18:22:41 +00:00
Assar Westerlund
6403986161
(init_context_from_config_file): check parsing of addresses
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@10398 ec53bebd-3082-4978-b11e-865c3cabbd6b
2001-07-27 12:29:32 +00:00
Assar Westerlund
adfd040a69
(krb5_get_extra_addresses): add missing context
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@10302 ec53bebd-3082-4978-b11e-865c3cabbd6b
2001-07-09 15:06:47 +00:00
Johan Danielsson
ae5432e0ea
use krb5_copy_addresses instead of copy_HostAddresses
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@10295 ec53bebd-3082-4978-b11e-865c3cabbd6b
2001-07-08 18:15:31 +00:00
Johan Danielsson
b8310059d5
initialise ignore_addresses
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@10238 ec53bebd-3082-4978-b11e-865c3cabbd6b
2001-07-02 22:27:26 +00:00
Johan Danielsson
4c4bd319e7
add protocol compatible krb524 error codes
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@10141 ec53bebd-3082-4978-b11e-865c3cabbd6b
2001-06-20 02:45:58 +00:00
Assar Westerlund
aa3fb93c7b
(init_context_from_config_file): register srvtab alias
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@9966 ec53bebd-3082-4978-b11e-865c3cabbd6b
2001-05-16 22:24:42 +00:00
Assar Westerlund
d27aa3b62e
add some krb5_{set,clear}_error_string
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@9937 ec53bebd-3082-4978-b11e-865c3cabbd6b
2001-05-14 06:14:52 +00:00
Assar Westerlund
26e40e86bf
(init_context_from_config_file): set default_keytab_modify
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@9875 ec53bebd-3082-4978-b11e-865c3cabbd6b
2001-05-10 15:24:57 +00:00
Assar Westerlund
b5d10caa39
(init_context_from_config_file): add krb5_any_ops
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@9811 ec53bebd-3082-4978-b11e-865c3cabbd6b
2001-04-25 05:09:23 +00:00
Johan Danielsson
ef9185aa47
(krb5_init_ets): use krb5_add_et_list
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@9726 ec53bebd-3082-4978-b11e-865c3cabbd6b
2001-02-28 20:03:47 +00:00
Johan Danielsson
489076ea0e
always register the krb4 keytab functions
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@9401 ec53bebd-3082-4978-b11e-865c3cabbd6b
2000-12-15 17:11:51 +00:00
Assar Westerlund
5329d54302
(krb5_init_context): do not leak memory on failure
...
(default_etypes): prefer arcfour-hmac-md5 to des-cbc-md5
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@8928 ec53bebd-3082-4978-b11e-865c3cabbd6b
2000-08-10 20:14:03 +00:00
Assar Westerlund
da5bde7de0
(default_etypes): add ETYPE_ARCFOUR_HMAC_MD5
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@8564 ec53bebd-3082-4978-b11e-865c3cabbd6b
2000-07-06 22:06:24 +00:00
Johan Danielsson
d044762573
(init_context_from_config_file): init date_fmt, also do some cleanup
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@8487 ec53bebd-3082-4978-b11e-865c3cabbd6b
2000-06-29 08:10:47 +00:00
Assar Westerlund
27fa07447a
remove extra stuff that was comitted accidently
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@8002 ec53bebd-3082-4978-b11e-865c3cabbd6b
2000-03-04 13:21:28 +00:00
Assar Westerlund
512cc88a95
(init_context_from_config_file): change rfc2052 default to no. 2782
...
says that underscore should be used.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@7985 ec53bebd-3082-4978-b11e-865c3cabbd6b
2000-02-28 01:09:45 +00:00
Assar Westerlund
d363e5464a
(krb5_set_extra_addresses): const-ize and use proper abstraction
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@7904 ec53bebd-3082-4978-b11e-865c3cabbd6b
2000-02-11 17:43:43 +00:00