krb5.git
18 years ago* kdb_db2.c: Don't include kdb_compat.h.
Ken Raeburn [Fri, 30 Jun 2006 21:05:21 +0000 (21:05 +0000)]
* kdb_db2.c: Don't include kdb_compat.h.
(OLD_COMPAT_VERSION_1): Don't define.
(krb5_db2_db_create): For temporary db, use different names for all files.
(krb5_db2_open, krb5_db2_create, krb5_db2_destroy): Fix check for "temporary"
in supplied db_args.
(krb5_db2_db_rename): New function, restored from pre-DAL code and hacked up
a lot to mostly work.
(krb5_db2_promote_db): New function.
* db2_exp.c: Add promote_db entry.

ticket: 3964
status: open

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@18295 dc483132-0cff-0310-8789-dd5450dbe970

18 years ago* kdb_default.c (krb5_def_promote_db): New function.
Ken Raeburn [Fri, 30 Jun 2006 20:18:39 +0000 (20:18 +0000)]
* kdb_default.c (krb5_def_promote_db): New function.
* kdb5.c (kdb_setup_opt_functions): Use it if promote_db is null.

* libkdb5.exports: Export krb5_db_promote.

ticket: 3964
status: open

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@18292 dc483132-0cff-0310-8789-dd5450dbe970

18 years ago* kdb.h (krb5_def_promote_db): Declare
Ken Raeburn [Fri, 30 Jun 2006 20:17:04 +0000 (20:17 +0000)]
* kdb.h (krb5_def_promote_db): Declare

ticket: 3964
status: open

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@18291 dc483132-0cff-0310-8789-dd5450dbe970

18 years ago g_delete_sec_context.c: undo type cast change from last
Jeffrey Altman [Fri, 30 Jun 2006 18:20:26 +0000 (18:20 +0000)]
g_delete_sec_context.c: undo type cast change from last
    commit that is wrong.

ticket: 3968

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@18289 dc483132-0cff-0310-8789-dd5450dbe970

18 years agocorrections to gssapi mechglue
Jeffrey Altman [Fri, 30 Jun 2006 09:22:32 +0000 (09:22 +0000)]
corrections to gssapi mechglue

g_delete_sec_context.c: use the correct type during assignment

g_init_sec_context.c; prevent memory leak and make code more
   readable

ticket: new

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@18288 dc483132-0cff-0310-8789-dd5450dbe970

18 years ago stdcc.c: undo change which broke the opening of ccaches
Jeffrey Altman [Fri, 30 Jun 2006 09:20:59 +0000 (09:20 +0000)]
  stdcc.c: undo change which broke the opening of ccaches

ticket: 3961

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@18287 dc483132-0cff-0310-8789-dd5450dbe970

18 years ago * src/lib/krb5/krb/srv_rcache.c (krb5_get_server_rcache):
Tom Yu [Fri, 30 Jun 2006 05:59:46 +0000 (05:59 +0000)]
* src/lib/krb5/krb/srv_rcache.c (krb5_get_server_rcache):
Oops, krb5_rc_close actually does free rcache, so actually do null
rcache on error from krb5_rc_recover_or_initialize.  Thanks to
Shawn Emery for noticing.

ticket: 3962

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@18286 dc483132-0cff-0310-8789-dd5450dbe970

18 years ago * plugins/kdb/db2/kdb_db2.c (krb5_db2_db_init): Support tempdb
Sam Hartman [Fri, 30 Jun 2006 05:43:40 +0000 (05:43 +0000)]
* plugins/kdb/db2/kdb_db2.c (krb5_db2_db_init): Support tempdb
(krb5_db2_db_set_name): likewise
(krb5_db2_open): likewise
(krb5_db2_create): likewise
(krb5_db2_db_create): likewise
(krb5_db2_db_set_option): likewise
(krb5_db2_destroy): likewise

* plugins/kdb/db2/kdb_db2.h: Add tempdb to db context

* plugins/kdb/db2/kdb_db2.c (k5db2_dbopen): Take flag for
temporary databases.

Ticket: 3964
Status: open

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@18285 dc483132-0cff-0310-8789-dd5450dbe970

18 years ago * src/lib/krb5/krb/srv_rcache.c (krb5_get_server_rcache): Adapted
Tom Yu [Fri, 30 Jun 2006 03:57:20 +0000 (03:57 +0000)]
* src/lib/krb5/krb/srv_rcache.c (krb5_get_server_rcache): Adapted
patch from Shawn Emery to set rcache = 0 in case of
krb5_rc_resolve_full failure because krb5_rc_resolve_full frees
but doesn't null rcache.  Also restore free of rcache in cleanup
code.  Continue to not null rcache in failure on
krb5_rc_recover_or_initialize because krb5_rc_close doesn't free
rcache.

ticket: 3962
tags: pullup

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@18283 dc483132-0cff-0310-8789-dd5450dbe970

18 years agoNew kdb backend operation promote_db, makes a temporary database become the
Ken Raeburn [Fri, 30 Jun 2006 03:51:48 +0000 (03:51 +0000)]
New kdb backend operation promote_db, makes a temporary database become the
live database.  New function krb5_db_promote invokes it.

ticket: 3964
status: open

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@18282 dc483132-0cff-0310-8789-dd5450dbe970

18 years ago * plugins/kdb/db2/kdb_db2.c (krb5_db2_create): Remove incorrect
Sam Hartman [Fri, 30 Jun 2006 03:02:23 +0000 (03:02 +0000)]
    * plugins/kdb/db2/kdb_db2.c (krb5_db2_create): Remove incorrect
        comment.

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@18281 dc483132-0cff-0310-8789-dd5450dbe970

18 years ago * lib/kdb/kdb5.h: Remove macros also defined in include/kdb5.h
Sam Hartman [Fri, 30 Jun 2006 02:42:22 +0000 (02:42 +0000)]
    * lib/kdb/kdb5.h: Remove macros also defined in include/kdb5.h

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@18280 dc483132-0cff-0310-8789-dd5450dbe970

18 years agofix stdcc.c to build without USE_CCAPI_V3
Jeffrey Altman [Fri, 30 Jun 2006 00:46:14 +0000 (00:46 +0000)]
fix stdcc.c to build without USE_CCAPI_V3

stdcc.c: should build without USE_CCAPI_V3

ticket: new

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@18278 dc483132-0cff-0310-8789-dd5450dbe970

18 years ago(add_db_arg): Fix silly bug.
Ken Raeburn [Fri, 30 Jun 2006 00:17:43 +0000 (00:17 +0000)]
(add_db_arg): Fix silly bug.
(extended_com_err_fn): Don't look up or print error message if the error code
is 0.

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@18277 dc483132-0cff-0310-8789-dd5450dbe970

18 years ago* kdb5_util.c (add_db_arg): New function.
Ken Raeburn [Thu, 29 Jun 2006 23:51:55 +0000 (23:51 +0000)]
* kdb5_util.c (add_db_arg): New function.
(main): Use it.
* kdb5_util.h (add_db_arg): Declare it.
* kdb5_create.c (kdb5_create): Use it.
* dump.c (load_db): Use it.

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@18276 dc483132-0cff-0310-8789-dd5450dbe970

18 years ago* kerberos_v4.c: Don't include kdc.h.
Ken Raeburn [Thu, 29 Jun 2006 22:52:55 +0000 (22:52 +0000)]
* kerberos_v4.c: Don't include kdc.h.
(kerberos_v4, kerb_err_reply): Replace uses of S_AD_SZ with sizeof(struct
sockaddr_in).
(kerb_get_principal): Delete fourth argument MAXN, which was always 1.  Callers
updated.
* Makefile.in: Updated dependencies.

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@18275 dc483132-0cff-0310-8789-dd5450dbe970

18 years agore-order inclusions in spnego_mech.c to avoid breaking system headers
Tom Yu [Thu, 29 Jun 2006 22:12:19 +0000 (22:12 +0000)]
re-order inclusions in spnego_mech.c to avoid breaking system headers

* src/lib/gssapi/spnego/spnego_mech.c: Move inclusion of
gssapiP_spnego.h to after mglueP.h.  mglueP.h includes
k5-thread.h, which pulls in the pthread headers, which on at least
some Tru64 versions is vulnerable to definitions of non-reserved
macro names such as CONTEXT, which is defined in
gssapiP_spnego.h.

ticket: new
tags: pullup
target_version: 1.5
version_reported: 1.5
component: krb5-build

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@18273 dc483132-0cff-0310-8789-dd5450dbe970

18 years ago* lib/gssapi/Makefile.in: Merge the new target into the existing
Ken Raeburn [Thu, 29 Jun 2006 21:29:03 +0000 (21:29 +0000)]
* lib/gssapi/Makefile.in: Merge the new target into the existing
target list with generated headers mostly in subdirectories, which
happens to be inside a "##DOS##!if 0" block, since the all-recurse
target isn't defined for Windows.

ticket: 3955

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@18272 dc483132-0cff-0310-8789-dd5450dbe970

18 years agomake depend
Tom Yu [Thu, 29 Jun 2006 20:06:43 +0000 (20:06 +0000)]
make depend

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@18271 dc483132-0cff-0310-8789-dd5450dbe970

18 years agoMakefile.in: Change T_STD_CONF_OBJS to only list t_std_conf.o and pull in the
Ezra Peisach [Thu, 29 Jun 2006 13:26:42 +0000 (13:26 +0000)]
Makefile.in:  Change T_STD_CONF_OBJS to only list t_std_conf.o and pull in the
rest from libkrb5.  This fixes the problem of linking in init_os_ctx.o which
was trying to use the private copy_profile() that was not exported.

Also - updated dependencies - init_os_ctx.c now includes prof-int.h...

ticket: 3953
tags: pullup

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@18264 dc483132-0cff-0310-8789-dd5450dbe970

18 years agoremove unused lib/gssapi/mechglue/g_utils.c
Tom Yu [Thu, 29 Jun 2006 04:47:11 +0000 (04:47 +0000)]
remove unused lib/gssapi/mechglue/g_utils.c

* src/lib/gssapi/mechglue/g_utils.c: Remove.
* src/lib/gssapi/mechglue/Makefile.in (SRCS, OBJS, STLIBOBJS):
Remove g_utils.*.

ticket: new
version_reported: 1.5
target_version: 1.5
tags: pullup

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@18263 dc483132-0cff-0310-8789-dd5450dbe970

18 years ago * src/lib/gssapi/mechglue/mglueP.h (struct gss_config): Remove
Tom Yu [Thu, 29 Jun 2006 04:38:48 +0000 (04:38 +0000)]
* src/lib/gssapi/mechglue/mglueP.h (struct gss_config): Remove
gssint_userok and pname_to_uid, as we don't implement things which
use them.

* src/lib/gssapi/krb5/krb5_gss_glue.c (KRB5_GSS_CONFIG_INIT):
* src/lib/gssapi/spnego/spnego_mech.c (spnego_mechanism): Update
for struct gss_config changes.

ticket: 3954
tags: pullup
target_version: 1.5
version_reported: 1.5
component: krb5-libs

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@18262 dc483132-0cff-0310-8789-dd5450dbe970

18 years ago * src/lib/gssapi/mechglue/g_initialize.c: Remove various unused
Tom Yu [Thu, 29 Jun 2006 04:21:08 +0000 (04:21 +0000)]
* src/lib/gssapi/mechglue/g_initialize.c: Remove various unused
header inclusions, local variables, and macro definitions.
(gss_indicate_mechs):
(build_mechSet):
(updateMechList):
(gssint_get_mechanism):
(loadConfigFile): Remove disabled code.

ticket: 3951
tags: pullup

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@18261 dc483132-0cff-0310-8789-dd5450dbe970

18 years agoback out r18245; it breaks under gcc + GNU ld on Solaris
Tom Yu [Thu, 29 Jun 2006 04:15:37 +0000 (04:15 +0000)]
back out r18245; it breaks under gcc + GNU ld on Solaris

ticket: 3946
status: open

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@18260 dc483132-0cff-0310-8789-dd5450dbe970

18 years agogssapi compilation errors on Windows
Jeffrey Altman [Thu, 29 Jun 2006 01:48:31 +0000 (01:48 +0000)]
gssapi compilation errors on Windows

src/Makefile.in:  generate lib/gssapi/spnego/Makefile

src/lib/gssapi/Makefile.in: build mechglue and spnego

src/lib/gssapi/krb5/init_sec_context.c: do not include
kdc only symbols on windows

src/lib/gssapi/mechglue/g_utils.c: no strings.h on Windows

src/lib/gssapi/mechglue/Makefile.in: construct mechglue.lst

src/lib/gssapi/spnego/Makefile.in: construct spnego.lst

src/lib/gssapi/spnego/spnego_mech.c: k5-int.h must be
included before krb5.h in order to prevent mixed definitions
of time_t on windows

ticket: new
tags: pullup

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@18259 dc483132-0cff-0310-8789-dd5450dbe970

18 years agocheck calling conventions specified for Windows
Ken Raeburn [Thu, 29 Jun 2006 01:42:42 +0000 (01:42 +0000)]
check calling conventions specified for Windows

When we're making changes on UNIX, sometimes we update the Windows
export list but forget to make sure we've annotated the function
declaration in the header file with a calling convention
specification.

This patch checks the krb5 and gssapi public headers against the
Windows export lists (which are annotated with calling-convention and
other info in comments), and flags any inconsistencies in public
interfaces.

* util/def-check.pl: Be quiet about normal stuff by default; accept a
"-v" option to be verbose.  Exit with non-zero status if something
wrong is detected.  Fix some problems in parsing gssapi header files.
Handle DECSCRIPTION and HEAPSIZE directives in .def files, and DATA
annotation in comments.

* include/Makefile.in (verify-calling-conventions-krb5): New target.
(all-unix): Depend on it in maintainer mode.

* lib/gssapi/Makefile.in (verify-calling-conventions-gssapi): New target.
(all-unix): Depend on it in maintainer mode.
(merged-gssapi-header.h): New target; assemble public headers into one input
file.
(clean-misc-unix): New target; delete merged-gssapi-header.h.
(clean-unix): Depend on it.

ticket: new

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@18258 dc483132-0cff-0310-8789-dd5450dbe970

18 years agoFix comment style in public header
Ken Raeburn [Thu, 29 Jun 2006 00:12:21 +0000 (00:12 +0000)]
Fix comment style in public header

ticket: 3952

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@18255 dc483132-0cff-0310-8789-dd5450dbe970

18 years agofix calling convention for krb5 error-message routines, document usage of krb5_get_er...
Ken Raeburn [Thu, 29 Jun 2006 00:03:36 +0000 (00:03 +0000)]
fix calling convention for krb5 error-message routines, document usage of krb5_get_error_message

* lib/krb5/krb/kerrs.c (krb5_*_error_message): Annotate with correct calling
conventions for Windows.
* include/krb5/krb5.hin: Update declarations.  Add comment on
krb5_get_error_message usage.

ticket: new
target_version: 1.5
tags: pullup

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@18254 dc483132-0cff-0310-8789-dd5450dbe970

18 years ago cc_mslsa.c: The WOW64 environment on 64-bit versions of
Jeffrey Altman [Wed, 28 Jun 2006 23:00:09 +0000 (23:00 +0000)]
cc_mslsa.c:  The WOW64 environment on 64-bit versions of
   Windows prior to Vista Beta 2 did not implement the Lsa
functions used by the MSLSA: ccache.   This patch disables
the MSLSA: ccache in broken WOW64 environments by checking
the Windows version and the existence and response of the
IsWow64Process API.

ticket: 3940
tags: pullup

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@18250 dc483132-0cff-0310-8789-dd5450dbe970

18 years agoautoconf 2.60 compatibility
Ken Raeburn [Wed, 28 Jun 2006 22:07:00 +0000 (22:07 +0000)]
autoconf 2.60 compatibility

Change all file substitutions so that @-patterns start at the beginning
of their lines, as now required by autoconf 2.60 (released Monday).

ticket: new
target_version: 1.5
tags: pullup

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@18249 dc483132-0cff-0310-8789-dd5450dbe970

18 years agofix plugin.c to compile on Windows
Jeffrey Altman [Wed, 28 Jun 2006 21:45:20 +0000 (21:45 +0000)]
fix plugin.c to compile on Windows

 plugins.c: Move a brace so that the Windows case falls
            within the conditional

ticket: new
tags: pullup

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@18248 dc483132-0cff-0310-8789-dd5450dbe970

18 years agoWindows: fix krb5.h generation
Jeffrey Altman [Wed, 28 Jun 2006 21:41:43 +0000 (21:41 +0000)]
Windows: fix krb5.h generation

Generate krb5.h into the new location and install it

ticket: new
tags: pullup

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@18247 dc483132-0cff-0310-8789-dd5450dbe970

18 years agoallow multiple calls to krb5_get_error_message to retrieve message
Ken Raeburn [Wed, 28 Jun 2006 05:31:52 +0000 (05:31 +0000)]
allow multiple calls to krb5_get_error_message to retrieve message

(krb5int_get_error): Don't discard old message if the error codes don't match.
Try a little harder not to keep messages in the scratch buffer.  Return a copy
of the message, or "out of memory" in the scratch buffer.
(krb5int_vset_error): Try a little harder not to keep messages in the scratch
buffer.

ticket: new
target_version: 1.5

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@18246 dc483132-0cff-0310-8789-dd5450dbe970

18 years agoimplement symbol export restrictions for Solaris
Ken Raeburn [Wed, 28 Jun 2006 05:18:38 +0000 (05:18 +0000)]
implement symbol export restrictions for Solaris

* lib.in (solaris.versions): New target.  Currently no version id, just a
symbol list.
* libnover.in (solaris.versions): New target.
(clean-libs): Delete it.
* shlib.conf (*-*-solaris*): Use solaris.versions as map file.
(clean-libs): Delete it.

ticket: new

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@18245 dc483132-0cff-0310-8789-dd5450dbe970

18 years agomkrel should only generate doc/CHANGES for checkouts
Tom Yu [Tue, 27 Jun 2006 22:01:22 +0000 (22:01 +0000)]
mkrel should only generate doc/CHANGES for checkouts

* src/util/mkrel: Only write doc/CHANGES if doing a checkout.
This makes nightly snapshots saner.

ticket: new
tags: pullup
target_version: 1.5

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@18243 dc483132-0cff-0310-8789-dd5450dbe970

18 years agowrite svn log output when building release
Tom Yu [Tue, 27 Jun 2006 02:26:11 +0000 (02:26 +0000)]
write svn log output when building release

* src/util/mkrel: Write output of svn log -v to doc/CHANGES.

ticket: new
target_version: 1.5
tags: pullup

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@18235 dc483132-0cff-0310-8789-dd5450dbe970

18 years agoRevise comment on when we should switch from writing back to reading
Ken Raeburn [Tue, 27 Jun 2006 00:00:03 +0000 (00:00 +0000)]
Revise comment on when we should switch from writing back to reading
on a TCP stream.  (We don't currently, ever, and we probably should
eventually, but sometimes closing the connection is required.)

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@18234 dc483132-0cff-0310-8789-dd5450dbe970

18 years ago* kdc/network.c (make_toolong_error): New function.
Ken Raeburn [Mon, 26 Jun 2006 23:47:03 +0000 (23:47 +0000)]
* kdc/network.c (make_toolong_error): New function.
(process_tcp_connection): If the specified length exceeds the internal limit,
stop reading and send back a FIELD_TOOLONG error.
* tests/dejagnu/krb-standalone/standalone.exp (doit): When testing TCP mode,
connect to the KDC and send a length of -1, and check that it sends back a
non-empty message.

ticket: 3923
tags: pullup

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@18233 dc483132-0cff-0310-8789-dd5450dbe970

18 years agomake gssint_get_mechanism match prototype
Tom Yu [Mon, 26 Jun 2006 23:09:51 +0000 (23:09 +0000)]
make gssint_get_mechanism match prototype

* src/lib/gssapi/mechglue/g_initialize.c (gssint_get_mechanism):
Protoize, and make match mglueP.h.

ticket: new
target_version: 1.5
tags: pullup
component: krb5-libs

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@18230 dc483132-0cff-0310-8789-dd5450dbe970

18 years ago * src/lib/krb5_32.def: Export krb5_copy_context
Tom Yu [Mon, 26 Jun 2006 22:04:51 +0000 (22:04 +0000)]
* src/lib/krb5_32.def: Export krb5_copy_context

* src/lib/krb5/libkrb5.exports: Export krb5_copy_context.

* src/lib/krb5/krb/init_ctx.c (krb5_copy_context): Fix malloc
argument for nctx.  Handle null default_ccname case.

ticket: 2856

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@18229 dc483132-0cff-0310-8789-dd5450dbe970

18 years ago * src/include/krb5/krb5.hin: Add prototype for krb5_copy_context
Tom Yu [Mon, 26 Jun 2006 21:03:04 +0000 (21:03 +0000)]
* src/include/krb5/krb5.hin: Add prototype for krb5_copy_context

* src/lib/krb5/krb/init_ctx.c (krb5_copy_context): New function to
copy/clone an existing krb5 context.
(copy_ktypes): Local helper function.

ticket: 2856
tags: pullup

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@18228 dc483132-0cff-0310-8789-dd5450dbe970

18 years agoNetIDMgr updates
Jeffrey Altman [Sun, 25 Jun 2006 19:21:41 +0000 (19:21 +0000)]
NetIDMgr updates

* add scrollbars to option tree pane in configuration dialog

* convert to using Microsoft's safe string library both to ensure
  safe string manipulation and to avoid deprecation warnings

* disable deprecation warnings for Platform SDK header shlwapi.h
  which cannot otherwise be compiled

* add kerberos 5 kvno property to tickets.  display in properties
  dialog and main window if column selected by user

* improve manifest handling in order to support both manifests
  generated by the compiler and those hand crafted in order to
  specify the correct versions of the custom control libraries.

* update khimaira message types and credential acquisition
  documentation

ticket: new

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@18212 dc483132-0cff-0310-8789-dd5450dbe970

18 years ago* k5-int.h (krb5_copy_error_state): New macro
Ken Raeburn [Sat, 24 Jun 2006 03:07:29 +0000 (03:07 +0000)]
* k5-int.h (krb5_copy_error_state): New macro

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@18210 dc483132-0cff-0310-8789-dd5450dbe970

18 years agoFix krb5_get_profile to create a new profile duplicating the list of
Ken Raeburn [Sat, 24 Jun 2006 02:39:52 +0000 (02:39 +0000)]
Fix krb5_get_profile to create a new profile duplicating the list of
files from the one in the provided context, instead of constructing
and checking the file list from scratch.  Uses a new function in the
profile library, not put into the public API yet.

* util/profile/prof_init.c (profile_copy): New function.
* util/profile/prof_int.h (profile_copy): Declare it.
* lib/krb5/os/Makefile.in (LOCALINCLUDES): Look in the profile source dir.
* lib/krb5/os/init_os_ctx.c (krb5_get_profile): Replace all the previous code
with a call to profile_copy.

ticket: 3925

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@18209 dc483132-0cff-0310-8789-dd5450dbe970

18 years agofix typo in MS_BUG_TEST case in krb5_gss_glue.c
Tom Yu [Fri, 23 Jun 2006 02:57:32 +0000 (02:57 +0000)]
fix typo in MS_BUG_TEST case in krb5_gss_glue.c

* src/lib/gssapi/krb5/krb5_gss_glue.c (krb5_mech_configs_hack):
Fix typo in MS_BUG_TEST case.

ticket: new
target_version: 1.5
tags: pullup
component: krb5-libs

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@18208 dc483132-0cff-0310-8789-dd5450dbe970

18 years agofix signedness warnings in spnego_mech.c
Tom Yu [Fri, 23 Jun 2006 02:56:30 +0000 (02:56 +0000)]
fix signedness warnings in spnego_mech.c

* src/lib/gssapi/spnego/spnego_mech.c: Fix numerous signedness
warnings.

ticket: new
target_version: 1.5
tags: pullup
component: krb5-libs

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@18207 dc483132-0cff-0310-8789-dd5450dbe970

18 years ago * src/lib/krb5/krb/srv_rcache.c (krb5_get_server_rcache): Apply
Tom Yu [Thu, 22 Jun 2006 22:23:02 +0000 (22:23 +0000)]
* src/lib/krb5/krb/srv_rcache.c (krb5_get_server_rcache): Apply
patch from Rainer Weikusat to avoid double-free when
rc_resolve_full() fails due to misconfiguration.

ticket: 3924
tags: pullup

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@18206 dc483132-0cff-0310-8789-dd5450dbe970

18 years ago * src/lib/kadm5/ovsec_glue.c:
Tom Yu [Thu, 22 Jun 2006 21:31:15 +0000 (21:31 +0000)]
* src/lib/kadm5/ovsec_glue.c:
* src/lib/kadm5/unit-test/init-test.c:
* src/lib/kadm5/unit-test/iter-test.c:
* src/lib/kadm5/unit-test/lock-test.c: Include string.h to avoid
implicit definitions.  Patch from Michael Calmer.

ticket: 3903
tags: pullup

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@18205 dc483132-0cff-0310-8789-dd5450dbe970

18 years ago * src/util/mkrel: Edit patchlevel.h before running reconf
Tom Yu [Thu, 22 Jun 2006 20:06:45 +0000 (20:06 +0000)]
* src/util/mkrel: Edit patchlevel.h before running reconf

ticket: 3922
tags: pullup

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@18204 dc483132-0cff-0310-8789-dd5450dbe970

18 years ago(clean-unix): Use DEPTARGETS_CLEAN instead of DEPTARGETS.
Ken Raeburn [Thu, 22 Jun 2006 19:18:19 +0000 (19:18 +0000)]
(clean-unix): Use DEPTARGETS_CLEAN instead of DEPTARGETS.
(DEPTARGETS_CLEAN, DEPTARGETS_@top_srcdir@_.): New targets; define so that
DEPTARGETS_CLEAN has the DEP_VERIFY targets only at the top level.

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@18203 dc483132-0cff-0310-8789-dd5450dbe970

18 years ago * src/lib/gssapi/mechglue/g_initialize.c: Remove unused variables
Tom Yu [Thu, 22 Jun 2006 18:49:23 +0000 (18:49 +0000)]
* src/lib/gssapi/mechglue/g_initialize.c: Remove unused variables
and include gss_libinit.h to clean up warnings.  Patch from
Michael Calmer.

ticket: 3918
tags: pullup

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@18202 dc483132-0cff-0310-8789-dd5450dbe970

18 years ago r18022@luminous: jaltman | 2006-05-19 05:18:37 -0400
Sam Hartman [Thu, 22 Jun 2006 18:43:20 +0000 (18:43 +0000)]
 r18022@luminous:  jaltman | 2006-05-19 05:18:37 -0400
 Updates of portable CCAPI sources.   All code compiles.

 r18025@luminous:  jaltman | 2006-05-20 23:48:39 -0400
 Construct an outline of a sample platform specific main.c

 Add ccs_serv_cleanup() routine.  Currently does nothing.

 Correct field names used within the authorization check.

 r18026@luminous:  jaltman | 2006-05-22 02:25:43 -0400
 More byte order conversions in the server operations code.

 r18027@luminous:  jaltman | 2006-05-22 13:12:49 -0400
 Source files containing common routines used by both
 the client and the server.

 r18028@luminous:  jaltman | 2006-05-22 13:17:07 -0400
 Move msg.c and marshall.c to common library.

 Add dllmain.c which contains the Windows DllMain() entry
 point.  This must be moved later to a Windows specific
 directory.

 Cleanup type usage and function name references.

 All that is missing now from the client DLL is a definition
 of cci_perform_rpc() which is the entry point to the IPC
 routine.

 r18029@luminous:  jaltman | 2006-05-22 13:18:27 -0400
 Move generic list functions to common/generic_lists.c
 so they can be used by both the client dll and the server.

 Fix type utilization in serv_ops.c

 r18083@luminous:  jaltman | 2006-06-05 13:49:34 -0400
 improved error handling

 r18094@luminous:  jaltman | 2006-06-09 10:42:04 -0400
 * corrections to windows rpc layer

 * corrections to network byte order conversions

 r18095@luminous:  lxs | 2006-06-09 17:46:24 -0400
 cci_msg_retrieve_blob(): changed argument 4 from void** to char**
 to suppress the warnings from gcc.

 r18096@luminous:  lxs | 2006-06-09 17:55:32 -0400
 moved enum cc_list_type to generic_lists.h to avoid "incomplete enum"
 warnings when compiling generic_lists.c

 r18097@luminous:  lxs | 2006-06-09 17:56:15 -0400
 Removed ancient Metrowerks tests from public headers.

 r18098@luminous:  lxs | 2006-06-09 17:57:20 -0400
 Include string.h to get memcpy, strlen, etc on BSD OSes.

 r18099@luminous:  lxs | 2006-06-09 17:59:36 -0400
 Added Mac OS X project file and Mach-IPC support code

 r18106@luminous:  jaltman | 2006-06-12 09:56:31 -0400
 remove duplicate header file and obsolete source file

 r18193@luminous:  jaltman | 2006-06-22 12:57:14 -0400
 This commit updates lib/krb5/ccache/ccapi to support CCAPI Version 3
 and above.  Specify -DUSE_CCAPI_V3=1 when compiling to use CCAPI Version 3

 r18194@luminous:  jaltman | 2006-06-22 12:58:37 -0400
 Fix parameter name in cc_credentials_iterator_t next()

 r18195@luminous:  jaltman | 2006-06-22 12:59:08 -0400
 Add missing header

 r18196@luminous:  jaltman | 2006-06-22 13:11:37 -0400
 Use the old exported names for setup and shutdown

 r18197@luminous:  jaltman | 2006-06-22 13:18:14 -0400
 krb5_stdccv3_setup is ok

=== Please enter your commit message above this line ===

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@18200 dc483132-0cff-0310-8789-dd5450dbe970

18 years agoRevert 18100 before merging onto trunk
Sam Hartman [Thu, 22 Jun 2006 18:42:12 +0000 (18:42 +0000)]
Revert 18100 before merging onto trunk

git-svn-id: svn://anonsvn.mit.edu/krb5/branches/ccapi@18199 dc483132-0cff-0310-8789-dd5450dbe970

18 years agoApply (modified) patches from Michael Calmer to fix some warnings
Tom Yu [Thu, 22 Jun 2006 18:36:16 +0000 (18:36 +0000)]
Apply (modified) patches from Michael Calmer to fix some warnings

* src/lib/gssapi/spnego/spnego_mech.c (get_req_flags): Remove
unused var.
(get_negTokenResp): Fix signedness bug.
(make_spnego_tokenInit_msg): Remove unused vars
(make_spnego_tokenTarg_msg): Initialize uninitialized vars.

* src/lib/gssapi/spnego/gssapiP_spnego.h: Delete TWRITE_STR.

ticket: 3905
tags: pullup

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@18198 dc483132-0cff-0310-8789-dd5450dbe970

18 years agokrb5_stdccv3_setup is ok
Jeffrey Altman [Thu, 22 Jun 2006 17:18:14 +0000 (17:18 +0000)]
krb5_stdccv3_setup is ok

git-svn-id: svn://anonsvn.mit.edu/krb5/branches/ccapi@18197 dc483132-0cff-0310-8789-dd5450dbe970

18 years agoUse the old exported names for setup and shutdown
Jeffrey Altman [Thu, 22 Jun 2006 17:11:37 +0000 (17:11 +0000)]
Use the old exported names for setup and shutdown

git-svn-id: svn://anonsvn.mit.edu/krb5/branches/ccapi@18196 dc483132-0cff-0310-8789-dd5450dbe970

18 years agoAdd missing header
Jeffrey Altman [Thu, 22 Jun 2006 16:59:08 +0000 (16:59 +0000)]
Add missing header

git-svn-id: svn://anonsvn.mit.edu/krb5/branches/ccapi@18195 dc483132-0cff-0310-8789-dd5450dbe970

18 years agoFix parameter name in cc_credentials_iterator_t next()
Jeffrey Altman [Thu, 22 Jun 2006 16:58:37 +0000 (16:58 +0000)]
Fix parameter name in cc_credentials_iterator_t next()

git-svn-id: svn://anonsvn.mit.edu/krb5/branches/ccapi@18194 dc483132-0cff-0310-8789-dd5450dbe970

18 years agoThis commit updates lib/krb5/ccache/ccapi to support CCAPI Version 3
Jeffrey Altman [Thu, 22 Jun 2006 16:57:14 +0000 (16:57 +0000)]
This commit updates lib/krb5/ccache/ccapi to support CCAPI Version 3
and above.  Specify -DUSE_CCAPI_V3=1 when compiling to use CCAPI Version 3

git-svn-id: svn://anonsvn.mit.edu/krb5/branches/ccapi@18193 dc483132-0cff-0310-8789-dd5450dbe970

18 years ago * src/util/support/plugins.c (krb5int_open_plugin): Use RTLD_LOCAL
Tom Yu [Thu, 22 Jun 2006 03:00:53 +0000 (03:00 +0000)]
* src/util/support/plugins.c (krb5int_open_plugin): Use RTLD_LOCAL
instead of RTLD_GLOBAL.  Use RTLD_GROUP if available.

ticket: 3909
tags: pullup

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@18192 dc483132-0cff-0310-8789-dd5450dbe970

18 years agoremove unimplemented/unused mechglue functions
Tom Yu [Wed, 21 Jun 2006 22:25:19 +0000 (22:25 +0000)]
remove unimplemented/unused mechglue functions

* src/lib/gssapi/mechglue/Makefile.in (SRCS, STLIBOBJS): Delete
g_userok, gssd_pname_to_uid.

* src/lib/gssapi/mechglue/mechglue.h: Delete gssd_pname_to_uid,
gss_initialize.

* src/lib/gssapi/mechglue/mglueP.h: Delete gssint_userok,
gssd_pname_to_uid, gssint_get_mechanism_ext,
gss_acquire_cred_with_password_sfct, gss_mechanism_ext.

* src/lib/gssapi/g_userok.c:
* src/lib/gssapi/g_indicate_mechs.c:
* src/lib/gssapi/gen_oids.c:
* src/lib/gssapi/gssd_pname_to_uid: Delete.

* src/lib/gssapi/mechglue/g_initialize.c: Delete
gssint_get_mechanism_ext.

ticket: new
target_version: 1.5
tags: pullup
component: krb5-libs

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@18187 dc483132-0cff-0310-8789-dd5450dbe970

18 years agoSpawn ftp client with "-d" and "-v" for better debugging
Ken Raeburn [Wed, 21 Jun 2006 21:51:26 +0000 (21:51 +0000)]
Spawn ftp client with "-d" and "-v" for better debugging

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@18186 dc483132-0cff-0310-8789-dd5450dbe970

18 years agocease export of krb5_gss_*
Tom Yu [Wed, 21 Jun 2006 21:08:31 +0000 (21:08 +0000)]
cease export of krb5_gss_*

* src/lib/gssapi/libgssapi_krb5.exports: Cease export of krb5
mechanism entry points which were once equivalent to GSS-API entry
points.  These were never public interfaces, and calling them
directly now can cause problems.  Also, cease export of some
other internal symbols.

ticket: new
target_version: 1.5
tags: pullup
component: krb5-libs

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@18185 dc483132-0cff-0310-8789-dd5450dbe970

18 years ago*sigh*
Ken Raeburn [Wed, 21 Jun 2006 00:31:19 +0000 (00:31 +0000)]
*sigh*
Stupid typo in last change.

ticket: 2759

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@18184 dc483132-0cff-0310-8789-dd5450dbe970

18 years ago(GET_HOST_BY_NAME, GET_HOST_BY_ADDR) [GETHOSTBYNAME_RETURNS_INT]: Test
Ken Raeburn [Wed, 21 Jun 2006 00:28:21 +0000 (00:28 +0000)]
(GET_HOST_BY_NAME, GET_HOST_BY_ADDR) [GETHOSTBYNAME_RETURNS_INT]: Test
the output hostent pointer as an additional way of checking for errors.
Original patch from Nalin Dahyabhai, needed some tweaking to fit in
current sources, especially as updated in ticket 3911.

ticket: 2759
tags: pullup

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@18183 dc483132-0cff-0310-8789-dd5450dbe970

18 years agoRevert part of previous changes: Move temporary values that don't need
Ken Raeburn [Wed, 21 Jun 2006 00:12:03 +0000 (00:12 +0000)]
Revert part of previous changes: Move temporary values that don't need
longer storage duration, like error codes, back into GET_*_BY_* macros.

ticket: 3911

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@18182 dc483132-0cff-0310-8789-dd5450dbe970

18 years agoRevert an untested change that wasn't supposed to go into this ticket
Ken Raeburn [Tue, 20 Jun 2006 23:59:56 +0000 (23:59 +0000)]
Revert an untested change that wasn't supposed to go into this ticket

ticket: 18180

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@18181 dc483132-0cff-0310-8789-dd5450dbe970

18 years agogetaddrinfo code uses vars outside of storage duration
Ken Raeburn [Tue, 20 Jun 2006 23:59:11 +0000 (23:59 +0000)]
getaddrinfo code uses vars outside of storage duration

The calls to gethostbyname_r and friends were wrapped in macros that declared
automatic variables for the auxiliary storage needed, but the pointers returned
by the functions would be used outside of that scope, when the storage would no
longer be valid.

Changed the macro interfaces to define new types for the auxiliary storage, and
add a new argument to the macros referring to that storage.  Changed call sites
accordingly.

ticket: new

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@18180 dc483132-0cff-0310-8789-dd5450dbe970

18 years ago(kadmin_cpw): Don't crash if principal name is not given. Based on a
Ken Raeburn [Tue, 20 Jun 2006 23:27:01 +0000 (23:27 +0000)]
(kadmin_cpw): Don't crash if principal name is not given.  Based on a
patch from S Rahul.
(extended_com_err_fn): If error code is zero, don't fetch an error message.

ticket: 3308
tags: pullup

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@18179 dc483132-0cff-0310-8789-dd5450dbe970

18 years agoDocument kpropd -a option
Ken Raeburn [Tue, 20 Jun 2006 23:22:21 +0000 (23:22 +0000)]
Document kpropd -a option

ticket: 2087

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@18178 dc483132-0cff-0310-8789-dd5450dbe970

18 years agowhitespace
Ken Raeburn [Tue, 20 Jun 2006 23:21:31 +0000 (23:21 +0000)]
whitespace

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@18177 dc483132-0cff-0310-8789-dd5450dbe970

18 years agofix parallel builds for libgss
Tom Yu [Tue, 20 Jun 2006 22:35:20 +0000 (22:35 +0000)]
fix parallel builds for libgss

* src/lib/gssapi/Makefile.in (SUBDIROBJLISTS): Add missing spnego
directory.

ticket: new
target_version: 1.5
tags: pullup
component: krb5-build

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@18176 dc483132-0cff-0310-8789-dd5450dbe970

18 years agoIn verify_krb_v4_tgt, use an unsigned KRB4_32 to store an address rather
Russ Allbery [Tue, 20 Jun 2006 21:45:16 +0000 (21:45 +0000)]
In verify_krb_v4_tgt, use an unsigned KRB4_32 to store an address rather
than an unsigned long to avoid memcpying past the end of a structure on
64-bit platforms.

Ticket: 581
Version_Reported: 1.0.5
Target_Version: 1.5
Tags: pullup

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@18175 dc483132-0cff-0310-8789-dd5450dbe970

18 years agokrb5-1.6-prerelease
Tom Yu [Tue, 20 Jun 2006 05:19:07 +0000 (05:19 +0000)]
krb5-1.6-prerelease

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@18170 dc483132-0cff-0310-8789-dd5450dbe970

18 years agoPass in the correct value for the first argument of select (one larger
Russ Allbery [Mon, 19 Jun 2006 23:37:09 +0000 (23:37 +0000)]
Pass in the correct value for the first argument of select (one larger
than the largest file number in the select set) rather than some multiple
of sizeof some struct.  The latter is large enough accidentally work, but
breaks on AIX.

Map IPv4-mapped IPv6 addresses back to IPv4 in krshd for the purposes of
connecting back to the remote system on AIX, since on AIX getnameinfo
returns such addresses but connect won't accept them.

Ticket: 3122

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@18166 dc483132-0cff-0310-8789-dd5450dbe970

18 years agoMake local const array of structures static too
Ken Raeburn [Mon, 19 Jun 2006 23:33:36 +0000 (23:33 +0000)]
Make local const array of structures static too

ticket: 3276

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@18165 dc483132-0cff-0310-8789-dd5450dbe970

18 years agoUpdate config.guess and config.sub to the current versions from
Russ Allbery [Mon, 19 Jun 2006 17:59:05 +0000 (17:59 +0000)]
Update config.guess and config.sub to the current versions from
savannah.gnu.org.

Ticket: 3900

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@18164 dc483132-0cff-0310-8789-dd5450dbe970

18 years agoExport krb5_gss_register_acceptor_identity in KFW
Jeffrey Altman [Mon, 19 Jun 2006 17:33:36 +0000 (17:33 +0000)]
Export krb5_gss_register_acceptor_identity in KFW

krb5_gss_register_acceptor_identity is a gss krb5 extension that is
part of the public ABI.  It does not have a gss_krb5_* name due to
historical reasons.  Instead there is a gss_krb5_register_acceptor_identity
macro that uses this export.

ticket:  new

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@18163 dc483132-0cff-0310-8789-dd5450dbe970

18 years agogssapi32.def: Export gss_inquire_mechs_for_name now that
Jeffrey Altman [Sun, 18 Jun 2006 03:35:12 +0000 (03:35 +0000)]
gssapi32.def:  Export gss_inquire_mechs_for_name now that
it has been implemented.

ticket: new

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@18162 dc483132-0cff-0310-8789-dd5450dbe970

18 years agoTest for and use setutsent, based on a patch from Nate Yocom at Centrify.
Ken Raeburn [Sat, 17 Jun 2006 00:57:22 +0000 (00:57 +0000)]
Test for and use setutsent, based on a patch from Nate Yocom at Centrify.
Modified to restrict the configure test to just the pty library.

ticket: 3423

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@18161 dc483132-0cff-0310-8789-dd5450dbe970

18 years agodelete old .Sanitize files
Ken Raeburn [Sat, 17 Jun 2006 00:23:48 +0000 (00:23 +0000)]
delete old .Sanitize files

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@18160 dc483132-0cff-0310-8789-dd5450dbe970

18 years ago(foo): bar
Ken Raeburn [Sat, 17 Jun 2006 00:22:37 +0000 (00:22 +0000)]
(foo): bar

Testing changes to rt-cvsgate script to ignore RT "commands" with parens.

ticket: 169

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@18159 dc483132-0cff-0310-8789-dd5450dbe970

18 years ago(hpux10.exports): Export initializer and destructor symbols(?). Patch
Ken Raeburn [Fri, 16 Jun 2006 23:41:54 +0000 (23:41 +0000)]
(hpux10.exports): Export initializer and destructor symbols(?).  Patch
from Albert Chin.

ticket: 3129

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@18158 dc483132-0cff-0310-8789-dd5450dbe970

18 years agoChange a bunch of calls to ctype macros (those cited by Jeff, and a
Ken Raeburn [Fri, 16 Jun 2006 06:58:42 +0000 (06:58 +0000)]
Change a bunch of calls to ctype macros (those cited by Jeff, and a
few others) to cast the character values to unsigned char.

ticket: 3445

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@18156 dc483132-0cff-0310-8789-dd5450dbe970

18 years agofix for support lib version number change
Ken Raeburn [Fri, 16 Jun 2006 05:53:34 +0000 (05:53 +0000)]
fix for support lib version number change

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@18155 dc483132-0cff-0310-8789-dd5450dbe970

18 years agoRemove -lkrb5support, which should be for internal use only, from the displayed
Ken Raeburn [Fri, 16 Jun 2006 00:26:49 +0000 (00:26 +0000)]
Remove -lkrb5support, which should be for internal use only, from the displayed
list of libraries.  This means the output is not suitable for linking against
static libraries built from the tree, but prevents us from committing to
keeping libkrb5support.1 in all future Mac shared-library builds (in addition
to the libkrb5support.0 we're stuck with for non-Mac UNIXy shared-library
builds).

ticket: 3887

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@18154 dc483132-0cff-0310-8789-dd5450dbe970

18 years agoftpd's getline conflicts with current glibc headers
Ken Raeburn [Fri, 16 Jun 2006 00:10:08 +0000 (00:10 +0000)]
ftpd's getline conflicts with current glibc headers

Reported by Ubaidul Khan on kerberos@mit this date.
GNU libc includes a function getline with an incompatible prototype.
It hasn't caused problems for MIT on RHEL 4 (glibc 2.3.4), but
apparently FC5 has a newer set of headers in which it does.

* ftpcmd.y (getline): Renamed to ftpd_getline.  Declarations and callers
changed.
* ftpd.c (getline): Remove duplicate declaration.

ticket: new

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@18153 dc483132-0cff-0310-8789-dd5450dbe970

18 years ago* configure.in: Set and substitute SUPPORTLIB_MAJOR based on operating system.
Ken Raeburn [Thu, 15 Jun 2006 23:58:19 +0000 (23:58 +0000)]
* configure.in: Set and substitute SUPPORTLIB_MAJOR based on operating system.
* util/support/Makefile.in (LIBMAJOR): Use it.
(LIBMINOR): Bump.

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@18152 dc483132-0cff-0310-8789-dd5450dbe970

18 years agoIncrease buffer sizes to 64K where a Kerberos 5 authenticator might be
Ken Raeburn [Thu, 15 Jun 2006 22:42:53 +0000 (22:42 +0000)]
Increase buffer sizes to 64K where a Kerberos 5 authenticator might be
exchanged.  Suggested by Markus Moeller.

ticket: 2615

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@18151 dc483132-0cff-0310-8789-dd5450dbe970

18 years agoremove unused versions of makefiles
Ken Raeburn [Thu, 15 Jun 2006 22:28:48 +0000 (22:28 +0000)]
remove unused versions of makefiles

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@18150 dc483132-0cff-0310-8789-dd5450dbe970

18 years ago* config/pre.in (KRB5_BASE_LIBS): Add $(DL_LIB).
Ken Raeburn [Thu, 15 Jun 2006 22:21:58 +0000 (22:21 +0000)]
* config/pre.in (KRB5_BASE_LIBS): Add $(DL_LIB).
* krb5-config.in: Add DL_LIB.

ticket: 3838
status: open

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@18149 dc483132-0cff-0310-8789-dd5450dbe970

18 years ago(kadmin_startup): Properly skip "\@" and "\/" sequences when
Ken Raeburn [Thu, 15 Jun 2006 22:01:57 +0000 (22:01 +0000)]
(kadmin_startup): Properly skip "\@" and "\/" sequences when
processing principal name, rather than going into an infinite loop.
Suggested by Mark Phalan at Sun.

ticket: 3697

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@18148 dc483132-0cff-0310-8789-dd5450dbe970

18 years ago * src/lib/gssapi/libgssapi_krb5.exports: Add
Tom Yu [Thu, 15 Jun 2006 19:48:47 +0000 (19:48 +0000)]
* src/lib/gssapi/libgssapi_krb5.exports: Add
gss_inquire_mechs_for_name.

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@18143 dc483132-0cff-0310-8789-dd5450dbe970

18 years ago * src/lib/gssapi/krb5/gssapiP_krb5.h: Restore prototype of
Tom Yu [Thu, 15 Jun 2006 19:05:38 +0000 (19:05 +0000)]
* src/lib/gssapi/krb5/gssapiP_krb5.h: Restore prototype of
krb5_gss_release_oid() for now.

* src/lib/gssapi/krb5/rel_oid.c (krb5_gss_release_oid): Restore
for now.

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@18142 dc483132-0cff-0310-8789-dd5450dbe970

18 years agomake depend
Tom Yu [Thu, 15 Jun 2006 18:40:25 +0000 (18:40 +0000)]
make depend

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@18141 dc483132-0cff-0310-8789-dd5450dbe970

18 years ago * src/lib/gssapi/mechglue/Makefile.in (mydir):
Tom Yu [Thu, 15 Jun 2006 18:36:38 +0000 (18:36 +0000)]
* src/lib/gssapi/mechglue/Makefile.in (mydir):
* src/lib/gssapi/spnego/Makefile.in (mydir): Point to correct
locations.

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@18140 dc483132-0cff-0310-8789-dd5450dbe970

18 years agoremove spuriously resurrected file from merge
Tom Yu [Thu, 15 Jun 2006 18:22:17 +0000 (18:22 +0000)]
remove spuriously resurrected file from merge

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@18139 dc483132-0cff-0310-8789-dd5450dbe970

18 years ago* rc_io.c (krb5_rc_io_move): Use same code for cygwin as for normal
Ken Raeburn [Thu, 15 Jun 2006 02:51:22 +0000 (02:51 +0000)]
* rc_io.c (krb5_rc_io_move): Use same code for cygwin as for normal
Windows build.

ticket: 1434

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@18138 dc483132-0cff-0310-8789-dd5450dbe970

18 years agoConditionalize declarations of krb5int_make_srv_query_realm and
Ken Raeburn [Thu, 15 Jun 2006 02:40:23 +0000 (02:40 +0000)]
Conditionalize declarations of krb5int_make_srv_query_realm and
krb5int_free_srv_dns_data on KRB5_DNS_LOOKUP.

ticket: 2628
status: open

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@18137 dc483132-0cff-0310-8789-dd5450dbe970

18 years agoMake __kdb2_hash_open declaration and definition consistent
Ken Raeburn [Thu, 15 Jun 2006 02:35:44 +0000 (02:35 +0000)]
Make __kdb2_hash_open declaration and definition consistent

ticket: 2628
status: open

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@18136 dc483132-0cff-0310-8789-dd5450dbe970