Love Hornquist Astrand
1f4bb75eef
Only free hx509ctx if its actually allocated
2010-01-12 17:47:54 -08:00
Love Hornquist Astrand
c24a7d2d80
fix const-ifyier on cc-ops
2010-01-08 13:07:27 +01:00
Love Hornquist Astrand
26770c90f3
move unused variable to inside #ifdef
2010-01-08 12:59:35 +01:00
Love Hornquist Astrand
f3ea26c759
remove unused variable
2010-01-08 12:58:20 +01:00
Love Hornquist Astrand
332f988737
make verify checksum ct
2010-01-01 13:09:22 +01:00
Love Hornquist Astrand
8d28c442d5
Merge branch 'master' into win32-port
2009-12-23 14:03:37 +01:00
Asanka Herath
68cfbb7e19
Add rk_cloexec_dir() to lib/roken
2009-12-22 14:03:39 -05:00
Guido Günther
33f3be4d52
Don't free the hx509ctx
...
otherwise we crash if we fail to init certs (e.g. due to missing
smartcard).
Signed-off-by: Love Hornquist Astrand <lha@h5l.org >
2009-12-22 18:49:39 +01:00
Asanka Herath
ff11a8ae43
Merge remote branch 'lha/master' into win32-port2
...
* lha/master:
Clean kadm5-pwcheck.h
rename closesocket to rk_closesocket
Log what principal was used in the failure case
2009-12-22 11:05:03 -05:00
Love Hornquist Astrand
4182a61eba
rename closesocket to rk_closesocket
2009-12-22 09:03:05 +01:00
Asanka Herath
7f5b105fd6
Fix exports
2009-12-21 18:06:05 -05:00
Asanka Herath
16faee892e
Use correct socket glue and try to maintain constness
2009-12-21 18:05:39 -05:00
Asanka Herath
a0ae9f5a0e
Merge remote branch 'h-github/master' into win32-port2
...
* h-github/master: (64 commits)
refix socket wrappers with rk_
Patch from Secure Endpoints/Asanka Herath for windows support
unset KRB5CCNAME
its really just LIBADD more most of them
correct quoting
Use -lpthread for modern freebsd instead
clean KRB5CCNAME and KRB5_CONFIG, require test to reset them
more up ${env_setup}
use PTHREADS_LIBADD for freebsd6 and newer
add PTHREAD_LIBADD
add PTHREAD_LIBADD
add PTHREAD_LIBADD
switch to PTHREADS_LIBADD
log what the error string say too
More debug logging
sprinkle more 'echo "test failed"'
sprinkle 'echo "test failed"'
use calloc(), indent more prettier
in sh, equal compare is really = for strings, not ==
Check for duplicates, already loaded mechs
...
Conflicts (resolved):
lib/krb5/auth_context.c
lib/krb5/changepw.c
lib/krb5/context.c
lib/krb5/error_string.c
lib/krb5/kuserok.c
lib/krb5/libkrb5-exports.def.in
lib/krb5/net_write.c
lib/krb5/store_fd.c
lib/krb5/test_cc.c
lib/roken/strerror_r.c
2009-12-21 13:44:00 -05:00
Love Hornquist Astrand
d1d0de730d
refix socket wrappers with rk_
2009-12-21 08:50:46 +01:00
Love Hornquist Astrand
687db64c56
Patch from Secure Endpoints/Asanka Herath for windows support
2009-12-21 08:45:28 +01:00
Love Hornquist Astrand
d9e7f5cd97
add PTHREAD_LIBADD
2009-12-17 09:25:30 +01:00
Love Hornquist Astrand
986aff5a86
(kcm_send_request): if heim_ipc_init_context, we have not kcm
2009-12-14 16:05:10 -08:00
Love Hornquist Astrand
8df64cb195
add krb5_auth_con_getremoteseqnumber
2009-12-13 13:33:41 -08:00
Love Hornquist Astrand
722a54f6ba
add missing ;
2009-12-13 13:29:02 -08:00
Love Hornquist Astrand
fff9350227
less dup rk_
2009-12-13 12:24:47 -08:00
Love Hornquist Astrand
0a4b702cf1
less dup rk_
2009-12-13 12:22:33 -08:00
Love Hornquist Astrand
75aa4b44fa
switch to rk_strerror_r
2009-12-13 11:42:12 -08:00
Love Hornquist Astrand
3f1ba393c5
bump -version-info
2009-12-11 03:14:15 +01:00
Ted Percival
bfcdeda3b4
Fix memory leak in fcc_move
...
This usually occurs when re-initializing a file credential
cache over the top of an existing one.
This was meant to be fixed in commit 48cb3aa
by calling
fcc_destroy(), but that only unlinks the "from" file
(which was already renamed or unlinked) but still doesn't
free the in-memory credentials. Using fcc_close() instead of
fcc_destroy() frees the leaked in-memory credentials.
Signed-off-by: Love Hornquist Astrand <lha@h5l.org >
2009-12-10 23:35:44 +01:00
Love Hornquist Astrand
d57236a520
add back krb5_version and krb5_long_version to libkrb5, hide them in libvers
...
prompted by bug reported by Markus Moeller
2009-12-07 21:16:43 -08:00
Andrew Tridgell
a92eef4668
s4-heimdal: fixed a use-after-free heimdal bug
...
s4-heimdal: fixed a use-after-free heimdal bug
This caused samba4kinit to segfault on some systems
Signed-off-by: Love Hornquist Astrand <lha@h5l.org >
2009-12-07 20:50:31 -08:00
Kamen Mazdrashki
778df10ddc
krb5: Fix leaked hx509_context pointer
...
Signed-off-by: Love Hornquist Astrand <lha@h5l.org >
2009-12-07 09:07:07 -08:00
Asanka Herath
f065ca176f
(lib/krb5) Update exports list
2009-11-26 01:55:48 -05:00
Asanka Herath
393a597858
SOCK_INIT/SOCK_EXIT -> rk_SOCK_INIT/rk_SOCK_EXIT and net_write_s() -> net_write()
2009-11-26 01:42:57 -05:00
Asanka Herath
67c3295fcb
KRB5_DEPRECATED should be prefixed to the declaration
2009-11-26 01:41:57 -05:00
Asanka Herath
72848585cd
KRB5_DEPRECATED needs to be prefixed to the declaration on Windows
2009-11-25 12:43:16 -05:00
Asanka Herath
798d78e098
(lib/krb5/auth_context.c) Fix declaration
2009-11-25 12:43:15 -05:00
Love Hornquist Astrand
86f4c66efd
Merge branch 'master' into wip/win32-port2
2009-11-25 05:41:14 -08:00
Gabor Gombas
b6fe5a95d3
kdc and kinit wanted to use some symbols that were not exported by
...
libkrb5/libkdc
Signed-off-by: Love Hornquist Astrand <lha@h5l.org >
2009-11-25 05:18:49 -08:00
Love Hornquist Astrand
2204b852a7
Merge branch 'master' into wip/win32-port2
2009-11-24 21:46:10 -08:00
Asanka Herath
d00f9984a5
Make roken build on windows
...
Signed-off-by: Love Hornquist Astrand <lha@h5l.org >
2009-11-24 21:42:02 -08:00
Love Hornquist Astrand
f1c0c1bba3
prefix SOCKET symbols with rk_
2009-11-25 05:29:18 +01:00
Love Hornquist Astrand
98ed50fdf0
switch krb5_socket_t
2009-11-24 13:40:32 -08:00
Love Hornquist Astrand
c6bbdb545b
First drop of Windows build infrastructure from Secure Endpoints
2009-11-24 12:12:53 -08:00
Asanka Herath
81b70c3488
Copy cc_ops and kt_types when copying a krb5_context in krb5_copy_context()
2009-11-24 10:20:19 -08:00
Asanka Herath
81d091baa8
Add tests for the new path tokens
2009-11-24 10:19:49 -08:00
Asanka Herath
39f6fc00f8
krb5_net_read(), krb5_net_write() nad krb5_storage_from_fd() should accept both sockets and fds
...
When a socket and a file descriptor aren't interchangeable, these
functions should be able to determine whether it has received one or
the other and act accordingly.
This assumes that a fd can be cast into a SOCKET.
2009-11-24 10:19:49 -08:00
Asanka Herath
67e1aa5109
Need a DllMain in libkrb5 for path resolution
2009-11-24 10:19:49 -08:00
Asanka Herath
6073ca9a28
Add portable path tokens
...
Add USERCONFIG, COMMONCONFIG, LIBDIR, BINDIR, LIBEXEC, SBINDIR tokens.
2009-11-24 10:19:49 -08:00
Asanka Herath
93445a8133
Don't use Windows specific path tokens in lib/krb5/config_file.c
2009-11-24 10:19:49 -08:00
Asanka Herath
4634af9078
Consistent use of SOCKET data type in lib/krb5
2009-11-24 10:19:49 -08:00
Asanka Herath
bd669f10eb
Build dll.obj and don't build KRB4 specific targets if not building KRB4
2009-11-24 10:18:20 -08:00
Asanka Herath
06179e66ad
Additional include files for krb5
2009-11-24 10:17:50 -08:00
Asanka Herath
5dd6355e56
libkrb5 .def file
2009-11-24 10:16:49 -08:00
Asanka Herath
191361fdf5
Calling convention change
2009-11-24 10:16:49 -08:00