Love Hörnquist Åstrand
6985bebfc1
include <crypt.h>
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@15052 ec53bebd-3082-4978-b11e-865c3cabbd6b
2005-05-02 14:08:35 +00:00
Love Hörnquist Åstrand
a8f9738a23
if we are using PKINIT, strip of the highest bit to make windows
...
PK-INIT happy. Also make the nonces the same, again for windows, they
are using pk-init-9.
XXX check if it isn't the that nonce is an unsigned variable so its
just a asn1 mismatch.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@15043 ec53bebd-3082-4978-b11e-865c3cabbd6b
2005-04-30 16:24:00 +00:00
Love Hörnquist Åstrand
a4f747ea8e
Pass prompter data to the prompter function, implement a UI prompter
...
function wrapping the kerberos prompter function so that the the
OpenSSL ENGINE can ask for a password when loading the private key.
From: Douglas E. Engert
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@15040 ec53bebd-3082-4978-b11e-865c3cabbd6b
2005-04-30 16:12:18 +00:00
Love Hörnquist Åstrand
ab541001cc
#include <err.h>
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@15036 ec53bebd-3082-4978-b11e-865c3cabbd6b
2005-04-30 15:19:58 +00:00
Love Hörnquist Åstrand
ce927eeff5
include <err.h>
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@15035 ec53bebd-3082-4978-b11e-865c3cabbd6b
2005-04-30 15:18:27 +00:00
Love Hörnquist Åstrand
74e7222461
add <err.h>
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@15033 ec53bebd-3082-4978-b11e-865c3cabbd6b
2005-04-30 15:15:38 +00:00
Love Hörnquist Åstrand
51a75cda5e
use LIB_com_err for libkrb5.la
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@15018 ec53bebd-3082-4978-b11e-865c3cabbd6b
2005-04-30 13:50:41 +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
1f6a02ddd4
define _POSIX_PTHREAD_SEMANTICS so we get posix getpwnam_r
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@14971 ec53bebd-3082-4978-b11e-865c3cabbd6b
2005-04-27 08:24:02 +00:00
Love Hörnquist Åstrand
1da385e5b6
(acc_gen_new): remove debug printf
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@14946 ec53bebd-3082-4978-b11e-865c3cabbd6b
2005-04-24 21:54:01 +00:00
Love Hörnquist Åstrand
ed8f5734cb
use the unexport the oid_to_enctype
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@14922 ec53bebd-3082-4978-b11e-865c3cabbd6b
2005-04-24 14:14:49 +00:00
Love Hörnquist Åstrand
f8c1fbfbe4
unexport the oid_to_enctype function, not for external consumers
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@14921 ec53bebd-3082-4978-b11e-865c3cabbd6b
2005-04-24 14:14:17 +00:00
Love Hörnquist Åstrand
0e573162cb
document krb5_cc_new_unique
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@14919 ec53bebd-3082-4978-b11e-865c3cabbd6b
2005-04-24 13:57:33 +00:00
Love Hörnquist Åstrand
7e27a05d9a
(krb5_cc_new_unique): new function to create a new credential cache
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@14918 ec53bebd-3082-4978-b11e-865c3cabbd6b
2005-04-24 13:52:01 +00:00
Love Hörnquist Åstrand
ea79507d4f
simplify error handling
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@14911 ec53bebd-3082-4978-b11e-865c3cabbd6b
2005-04-24 13:44:02 +00:00
Love Hörnquist Åstrand
44a72140b6
more spelling
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@14907 ec53bebd-3082-4978-b11e-865c3cabbd6b
2005-04-24 07:52:03 +00:00
Love Hörnquist Åstrand
15c32cbc1d
update .Dd
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@14906 ec53bebd-3082-4978-b11e-865c3cabbd6b
2005-04-24 07:49:34 +00:00
Love Hörnquist Åstrand
6a3813781d
spelling, from Björn Sandell <biorn@dce.chalmers.se>
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@14905 ec53bebd-3082-4978-b11e-865c3cabbd6b
2005-04-24 07:46:59 +00:00
Love Hörnquist Åstrand
c632869a80
spelling, from Björn Sandell <biorn@dce.chalmers.se>
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@14904 ec53bebd-3082-4978-b11e-865c3cabbd6b
2005-04-24 07:31:48 +00:00
Love Hörnquist Åstrand
b792ea5a2a
libkrb5_la_SOURCES += v4_glue.c
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@14903 ec53bebd-3082-4978-b11e-865c3cabbd6b
2005-04-23 21:16:57 +00:00
Love Hörnquist Åstrand
2d3b49f0c0
forward declaration of _krb5_krb_auth_data
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@14898 ec53bebd-3082-4978-b11e-865c3cabbd6b
2005-04-23 19:42:28 +00:00
Love Hörnquist Åstrand
ca6053358a
Move the kerberos v4 replacement functions to v4_glue.c
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@14897 ec53bebd-3082-4978-b11e-865c3cabbd6b
2005-04-23 19:40:57 +00:00
Love Hörnquist Åstrand
40abf3fef4
add more v4 defines
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@14896 ec53bebd-3082-4978-b11e-865c3cabbd6b
2005-04-23 19:38:16 +00:00
Love Hörnquist Åstrand
aa80eaa1a7
Implement enough of kerberos 4 protocol to be a KDC, move the v4 bits over here
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@14895 ec53bebd-3082-4978-b11e-865c3cabbd6b
2005-04-23 19:36:40 +00:00
Love Hörnquist Åstrand
e869931f80
catch two more snprintf problems
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@14877 ec53bebd-3082-4978-b11e-865c3cabbd6b
2005-04-21 06:37:36 +00:00
Love Hörnquist Åstrand
9ee9056627
remove unused variables
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@14870 ec53bebd-3082-4978-b11e-865c3cabbd6b
2005-04-20 20:53:29 +00:00
Love Hörnquist Åstrand
dd3ec19f74
use asprintf to avoid truncating pathnames
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@14856 ec53bebd-3082-4978-b11e-865c3cabbd6b
2005-04-19 18:59:46 +00:00
Love Hörnquist Åstrand
e441948975
check return value of snprintf
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@14855 ec53bebd-3082-4978-b11e-865c3cabbd6b
2005-04-19 18:52:51 +00:00
Love Hörnquist Åstrand
89b5bba2fe
check address truncation
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@14854 ec53bebd-3082-4978-b11e-865c3cabbd6b
2005-04-19 18:44:56 +00:00
Love Hörnquist Åstrand
a76ce26d04
check return values from snprintf and clean up semantics of ret_len
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@14853 ec53bebd-3082-4978-b11e-865c3cabbd6b
2005-04-19 18:43:12 +00:00
Love Hörnquist Åstrand
c54ca3787e
clearify what ret_len is in krb5_print_address
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@14852 ec53bebd-3082-4978-b11e-865c3cabbd6b
2005-04-19 18:18:50 +00:00
Love Hörnquist Åstrand
521af19317
add --version and --help
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@14844 ec53bebd-3082-4978-b11e-865c3cabbd6b
2005-04-19 08:40:06 +00:00
Love Hörnquist Åstrand
796e0562a0
use getpwnamn_r if it exists
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@14842 ec53bebd-3082-4978-b11e-865c3cabbd6b
2005-04-19 05:23:42 +00:00
Love Hörnquist Åstrand
c6fcedc6e0
noinst_PROGRAMS += test_kuserok
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@14841 ec53bebd-3082-4978-b11e-865c3cabbd6b
2005-04-19 05:22:49 +00:00
Love Hörnquist Åstrand
6715f713e4
test program for krb5_kuserok
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@14840 ec53bebd-3082-4978-b11e-865c3cabbd6b
2005-04-19 05:20:23 +00:00
Love Hörnquist Åstrand
050cc7b7f3
(acc_resolve): if open_default_ccache failed with ccErrCCacheNotFound
...
try again with create_default_ccache, this fixes the problem where the
security server apperenly haven't started yet on Mac OS X
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@14832 ec53bebd-3082-4978-b11e-865c3cabbd6b
2005-04-18 19:19:04 +00:00
Love Hörnquist Åstrand
9d57c47c64
(_krb5_get_default_principal_local): add, for use of functions that in
...
ccache layer to avoid recursive calls.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@14831 ec53bebd-3082-4978-b11e-865c3cabbd6b
2005-04-18 19:12:19 +00:00
Love Hörnquist Åstrand
f6fd1c2537
document krb5_keyblock_init
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@14810 ec53bebd-3082-4978-b11e-865c3cabbd6b
2005-04-15 16:39:54 +00:00
Love Hörnquist Åstrand
3c0343f2c1
Add krb5_keyblock_init to allocate an fill in a keyblock from key data.
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@14791 ec53bebd-3082-4978-b11e-865c3cabbd6b
2005-04-14 16:27:24 +00:00
Love Hörnquist Åstrand
9dd70b312a
(process_pa_data_to_key): also check for KRB5_PADATA_PK_AS_REP_19,
...
From: Douglas Engert
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@14757 ec53bebd-3082-4978-b11e-865c3cabbd6b
2005-04-07 20:15:18 +00:00
Love Hörnquist Åstrand
a15822844f
print size_t by casting to unsigned long
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@14736 ec53bebd-3082-4978-b11e-865c3cabbd6b
2005-04-04 17:54:50 +00:00
Love Hörnquist Åstrand
4d54830246
one more v6 range test
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@14732 ec53bebd-3082-4978-b11e-865c3cabbd6b
2005-04-04 14:22:08 +00:00
Love Hörnquist Åstrand
01d4d3ef29
Argument to create_new_ccache is a principal, not a credential cache name.
...
Clean up lossage related to this problem.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@14730 ec53bebd-3082-4978-b11e-865c3cabbd6b
2005-04-04 14:17:00 +00:00
Love Hörnquist Åstrand
8663e85292
(krb5_address_prefixlen_boundary,krb5_free_address): use find_atype
...
when we are dealing with a kerberos address type
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@14726 ec53bebd-3082-4978-b11e-865c3cabbd6b
2005-04-04 12:04:41 +00:00
Love Hörnquist Åstrand
401620865e
size_t vs int + fix printf
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@14725 ec53bebd-3082-4978-b11e-865c3cabbd6b
2005-04-04 11:12:31 +00:00
Love Hörnquist Åstrand
6611feed76
Since the decode can't make out the diffrence between PA-PK-AS-REP-19
...
and PA-PK-AS-REQ-Win2k, try harder to verify both cases
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@14722 ec53bebd-3082-4978-b11e-865c3cabbd6b
2005-04-04 08:54:45 +00:00
Love Hörnquist Åstrand
e0d75a3766
make generation of pa data into a switch instead of a bitmask
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@14721 ec53bebd-3082-4978-b11e-865c3cabbd6b
2005-04-04 08:24:01 +00:00
Love Hörnquist Åstrand
6ac6552a8a
const poison
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@14707 ec53bebd-3082-4978-b11e-865c3cabbd6b
2005-03-31 00:47:55 +00:00
Love Hörnquist Åstrand
61e8cc87ed
wrap IPv6 test code with HAVE_IPV6
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@14705 ec53bebd-3082-4978-b11e-865c3cabbd6b
2005-03-31 00:15:32 +00:00
Love Hörnquist Åstrand
8835d48518
test parse IPv6 RANGE addresses
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@14704 ec53bebd-3082-4978-b11e-865c3cabbd6b
2005-03-31 00:13:28 +00:00