Commit Graph

4694 Commits

Author SHA1 Message Date
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
Asanka Herath
78a237e3cc No dirfd() on Windows 2009-11-24 10:16:49 -08:00
Asanka Herath
6ba6a17ebd Do things the WinSock way 2009-11-24 10:16:49 -08:00
Asanka Herath
d6adaa775f No geteuid() on Windows 2009-11-24 10:16:49 -08:00
Asanka Herath
77fee77d0e Use path tokens in krb5_config_parse_file_multi() 2009-11-24 10:16:22 -08:00
Asanka Herath
c53686e69b More KRB5_DEPRECATED fixes 2009-11-24 10:15:14 -08:00
Asanka Herath
c2f634d9ad KRB5_DEPRECATED is a storage class specifier 2009-11-24 10:12:45 -08:00
Asanka Herath
1bfde92838 Update krb5/NTMakefile 2009-11-24 10:12:45 -08:00
Asanka Herath
dc0b2b8648 Missing foo_LIB_FUNCTION fixes 2009-11-24 10:11:15 -08:00
Asanka Herath
4da69ab0be (krb5_sendto) Use IS_BAD_SOCKET() to check if the socket is bad 2009-11-24 10:11:15 -08:00
Asanka Herath
9d42b10027 (krb5_config_parse_file_multi) Don't leak memory when the path tokens can't be expanded 2009-11-24 10:11:15 -08:00
Asanka Herath
b1063ea8fc Initial Windows port 2009-11-24 10:11:14 -08:00
Love Hornquist Astrand
826c14833f make cpp safe, from Allan McRae 2009-11-23 07:19:00 -08:00
Love Hornquist Astrand
a216e42696 deprecated warning 2009-11-22 16:13:37 -08:00
Love Hornquist Astrand
589e8f0978 deprecated warning 2009-11-22 16:13:10 -08:00
Love Hornquist Astrand
7f628a0733 deprecated warning 2009-11-22 16:11:25 -08:00
Love Hornquist Astrand
94b702e938 deprecated warning 2009-11-22 16:10:25 -08:00
Love Hornquist Astrand
a4e9e537e8 deprecated warning 2009-11-22 16:09:55 -08:00
Love Hornquist Astrand
1f0da1963a deprecated warning 2009-11-22 16:09:46 -08:00
Love Hornquist Astrand
dedbadb6d6 format string 2009-11-22 15:08:44 -08:00
Love Hornquist Astrand
ebffc842de prepend error string 2009-11-22 14:59:11 -08:00
Love Hornquist Astrand
b22c42947c make krb5_prepend_error_message prepend 2009-11-22 14:58:20 -08:00
Love Hornquist Astrand
a882971606 remove unused vars 2009-11-22 13:58:42 -08:00
Love Hornquist Astrand
7aba6f94bd poke hole into the underlaying mach code, allow NULL krb5_context 2009-11-22 12:33:53 -08:00