aboutsummaryrefslogtreecommitdiff
path: root/src/lib/gssapi/generic
AgeCommit message (Collapse)AuthorFilesLines
2004-06-22Delete preprocessor tests for macintosh, __MWERKS__, applec, and THINK_C, allKen Raeburn2-7/+5
part of the pre-Mac OS X support. (Except the bits in the Yarrow code, where it was part of the upstream source.) git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@16506 dc483132-0cff-0310-8789-dd5450dbe970
2004-06-17* util_validate.c (g_save): Call gssint_initialize_libraryKen Raeburn2-0/+10
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@16475 dc483132-0cff-0310-8789-dd5450dbe970
2004-06-08Patch from kwc@citi.umich.edu to supportSam Hartman4-0/+49
gss_krb5_export_lucid_sec_context and other facilities for NFSv4 implementations. In order to apply this patch gss_krb5.h needs to be auto-generated so we can expose a 64-bit type for sequence numbers. Ticket: 2587 status: open git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@16423 dc483132-0cff-0310-8789-dd5450dbe970
2004-06-02* disp_com_err_status.c (init_et): Variable deleted.Ken Raeburn2-5/+7
(g_display_com_err_status): Don't call initialize_ggss_error_table conditionally; instead, always call gssint_initialize_library. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@16391 dc483132-0cff-0310-8789-dd5450dbe970
2004-04-24Added support for library initialization and finalization, and verificationKen Raeburn2-1/+6
that the initializer completed successfully. Delay initialization on POSIX until the first "verification" call. Currently specific to a few platforms, but should still build on others without thread support enabled. Use it to finish creating (if necessary) and destroy mutexes, and free some other storage "permanently" allocated by libraries (currently, libkrb5 cache/keytab type registries only). Change initialization of static mutexes to a two-step operation, a static "partial" initializer and a "finish_init" routine called from a thread-safe environment like library initialization is assumed to be. POSIX will use the former, Windows will use the latter, and the debug support will check that *both* have been used. Added init/fini functions to com_err, profile, krb5, and gssapi libraries. (The profile library one may need to be removed later.) The existing ones, not thread-safe, are still around. Use weak symbol support if available to figure out if the pthread library has been linked in, and avoid calling certain routines if the C library stubs are known not to exist or work. Stub declarations for thread-specific data. Minor bugfixes, whitespace changes. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@16268 dc483132-0cff-0310-8789-dd5450dbe970
2004-04-23update dependenciesKen Raeburn1-27/+27
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@16261 dc483132-0cff-0310-8789-dd5450dbe970
2004-03-14Add a mutex to protect the set manipulationsKen Raeburn3-21/+87
* gssapiP_generic.h: Include k5-thread.h. (g_set): Add a mutex. (G_SET_INIT): Initialize it. * util_validate.c (g_save, g_validate, g_delete): Lock the mutex while working on the set. (BDB version untested.) git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@16167 dc483132-0cff-0310-8789-dd5450dbe970
2004-03-14Make the set type separate from the set-element (linked list node) typeKen Raeburn3-27/+43
* generic/gssapiP_generic.h (g_set): New struct type. (G_SET_INIT): New macro. * generic/util_validate.c (g_save, g_validate, g_delete): Change first argument to take a g_set * rather than void **; use the address of the void pointer from the structure. (g_save_name, g_save_cred_id, g_save_ctx_id, g_validate_name, g_validate_cred_id, g_validate_ctx_id, g_delete_name, g_delete_cred_id, g_delete_ctx_id): Updated first argument type. * genericgssapiP_generic.h: Declarations updated. * krb5/gssapi_krb5.c (kg_vdb): Change type to g_set and initialize. * krb5/gssapiP_krb5.h (kg_vdb): Declaration updated. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@16166 dc483132-0cff-0310-8789-dd5450dbe970
2004-03-14* gssapiP_generic.h (struct _g_set_elt, g_set_elt): Renamed from non-_eltKen Raeburn4-21/+27
versions. * util_set.c, util_validate.c: Uses updated. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@16165 dc483132-0cff-0310-8789-dd5450dbe970
2004-02-09* util_ordering.c (g_queue_externalize, g_queue_internalize): Check forKen Raeburn2-0/+9
sufficient buffer space. ticket: 2166 status: open git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@16040 dc483132-0cff-0310-8789-dd5450dbe970
2003-12-20* gssapi_generic.c (const_oids): Renamed from oids, and now const.Ken Raeburn2-1/+8
(oids): New macro, casts const_oids to non-const pointer for use in initializers. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@15955 dc483132-0cff-0310-8789-dd5450dbe970
2003-12-15make dependKen Raeburn1-12/+24
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@15928 dc483132-0cff-0310-8789-dd5450dbe970
2003-12-13Add 64-bit sequence number support. Do sequence number ordering tests relativeKen Raeburn4-26/+86
to the initial value rather than absolute. Support tokens without pseudo-ASN.1 wrappers. Don't restrict enctype lists. Implement CFX token support. With CFX_EXERCISE defined, use random padding, random rotates, and bogus initial tokens, to exercise the associated code paths. ticket: 2040 status: open git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@15911 dc483132-0cff-0310-8789-dd5450dbe970
2003-07-17delete ##WIN16## lines from makefilesKen Raeburn2-1/+4
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@15691 dc483132-0cff-0310-8789-dd5450dbe970
2003-05-14Be more friendly towards parallel buildsKen Raeburn2-5/+17
* Makefile.in ($(EHDRDIR)$(S)timestamp): New target, used for ensuring $(EHDRDIR) exists. (clean-unix): Delete the dummy file. ($(EHDRDIR)$(S)gssapi.h): Depend on it, instead of creating the directory here. ($(EHDRDIR)$(S)gssapi_generic.h): Likewise. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@15443 dc483132-0cff-0310-8789-dd5450dbe970
2003-03-06* disp_com_err_status.c, gssapi_generic.h: Removed Mac header goober. * ↵Alexandra Ellwood5-19/+12
gssapiP_generic.h, gssapi.hin: Removed macintosh check because we don't build on OS 9 anymore. * gssapi.hin: Removed enumsalwaysint because there are no typed enums in this header. Removed duplicate CFM-68K magic git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@15252 dc483132-0cff-0310-8789-dd5450dbe970
2003-02-13More tweaks to deal with parallel buildsTom Yu2-19/+22
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@15185 dc483132-0cff-0310-8789-dd5450dbe970
2003-02-11Fix recursion-forcing rules to be more friendly to parallel buildsTom Yu2-0/+7
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@15179 dc483132-0cff-0310-8789-dd5450dbe970
2003-02-11 * Makefile.in: Another attempt... turns our that the "copy"Tom Yu2-8/+15
command on Windows preserves modtimes, so spurious rebuilds were happening even with the stamp file, since the target in $(EHDRDIR) is always out of date with respect to the stamp file. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@15178 dc483132-0cff-0310-8789-dd5450dbe970
2003-02-11Fix some things to avoid spurious rebuilds of header filesTom Yu2-11/+20
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@15177 dc483132-0cff-0310-8789-dd5450dbe970
2003-02-09Have g_token_size return unsigned int for signed/unsigned cleanupEzra Peisach3-3/+8
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@15171 dc483132-0cff-0310-8789-dd5450dbe970
2003-01-17Use new target create-ehdrdir, defined differently for UNIX and WIN32, toKen Raeburn2-6/+11
conditionally create the target directory $(EHDRDIR) if needed, before copying files into it. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@15128 dc483132-0cff-0310-8789-dd5450dbe970
2003-01-17* Makefile.in ($(EHDRDIR)$(S)gssapi.h): Depend on includes-unix, to make sureKen Raeburn2-2/+9
the directory is created before installation of the file. ($(EHDRDIR)$(S)gssapi_generic.h): Likewise. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@15125 dc483132-0cff-0310-8789-dd5450dbe970
2003-01-10Use markers in Makefile.in rather than rules in configure.in to indicate whenKen Raeburn2-0/+7
to use the lib.in and libobj.in makefile fragments. Pushing this per-directory info into Makefile.in will make it a little easier to work on combining configure scripts for multiple directories. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@15107 dc483132-0cff-0310-8789-dd5450dbe970
2003-01-08Nuke some old .orig filesKen Raeburn2-72/+4
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@15089 dc483132-0cff-0310-8789-dd5450dbe970
2002-12-062002-12-05 Sam Hartman <hartmans@mit.edu>Sam Hartman2-23/+28
* util_token.c (g_verify_token_header g_make_token_header): Accept -1 to mean that no token type is expected; the token type is purely an RFC 1964 artifact and is not used in other mechanisms such as SPNEGO. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@15029 dc483132-0cff-0310-8789-dd5450dbe970
2002-11-15 * gssapiP_generic.h, util_token.c: Change g_make_token_header andEzra Peisach3-5/+12
g_verfy_token_header to take an unsigned length in. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@15006 dc483132-0cff-0310-8789-dd5450dbe970
2002-10-07Implement an install-headers target to install public headers into KRB5_INCDIR;Sam Hartman2-1/+5
probably called by setting DESTDIR. ticket: 1208 git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@14912 dc483132-0cff-0310-8789-dd5450dbe970
2002-08-29* Makefile.in: Revert $(S)=>/ change, for Windows supportKen Raeburn2-7/+11
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@14786 dc483132-0cff-0310-8789-dd5450dbe970
2002-08-29Ignore a bunch of files generated by building in the source tree, excludingKen Raeburn1-0/+3
those covered by CVSROOT/cvsignore patterns. Static UNIX build only, at the moment, may need updates for other configurations. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@14783 dc483132-0cff-0310-8789-dd5450dbe970
2002-08-27undo quoting changesKen Raeburn2-10/+7
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@14779 dc483132-0cff-0310-8789-dd5450dbe970
2002-08-27more quotingKen Raeburn2-4/+7
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@14778 dc483132-0cff-0310-8789-dd5450dbe970
2002-08-27Quote targets of some copy operations within the build tree. NeededKen Raeburn2-2/+7
now for Windows since we use "/" as a directory separator in places where Windows would also look for command options. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@14776 dc483132-0cff-0310-8789-dd5450dbe970
2002-08-23Change $(S)=>/ and $(U)=>.. globallyKen Raeburn2-7/+11
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@14761 dc483132-0cff-0310-8789-dd5450dbe970
2002-07-15 * gssapiP_generic.h, util_token.c (g_verify_token_header): MakeEzra Peisach3-2/+7
length argument a pointer to an unsigned int. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@14653 dc483132-0cff-0310-8789-dd5450dbe970
2002-07-13update dependenciesKen Raeburn1-3/+0
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@14637 dc483132-0cff-0310-8789-dd5450dbe970
2002-07-13Get rid of some unused functions and files. HideKen Raeburn4-44/+7
krb5_gss_internal_release_oid, which is referenced only in its own source file. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@14636 dc483132-0cff-0310-8789-dd5450dbe970
2002-07-13 * gssapi_generic.h: allow inclusion by C++Tom Yu5-12/+69
* gssapi.hin: Conditionalized pragmas for Metrowerks * gssapi.hin: Added check for CFM compiles. Removed dependency on PRAGMA_* macros. Moved check struct alignment check before struct declarations. * disp_com_err_status.c, gssapi.hin, gssapi_generic.h: Updated Mac OS X headers to new framework layout * gssapi_generic.h: Fixed check for Mac OS X includes. [pullups from 1-2-2-branch] * gssapiP_generic.h: use "" include for krb5.h [pullup from 1-2-2-branch] git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@14635 dc483132-0cff-0310-8789-dd5450dbe970
2002-06-15update dependenciesKen Raeburn1-14/+14
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@14522 dc483132-0cff-0310-8789-dd5450dbe970
2001-10-20In directories building libraries, generate dependencies for .so/.po files tooKen Raeburn1-14/+14
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13828 dc483132-0cff-0310-8789-dd5450dbe970
2001-10-20avoid name conflicts with glibKen Raeburn2-0/+38
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13827 dc483132-0cff-0310-8789-dd5450dbe970
2001-10-11Update automatic dependencies to work on Windows by using $(OUTPRE) andKen Raeburn1-30/+31
$(OBJEXT). Change a couple of UNIX rules to not trigger incorrectly on Windows. Rebuild dependencies. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13801 dc483132-0cff-0310-8789-dd5450dbe970
2001-10-10Don't conditionalize prototypes; delete macros supporting it. (Maybe overdone;Ken Raeburn3-143/+137
don't worry about restoring them when importing new versions of code.) git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13792 dc483132-0cff-0310-8789-dd5450dbe970
2001-10-06KRB5_EXPORTVAR is defined lots of places but never used; delete itKen Raeburn2-1/+2
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13787 dc483132-0cff-0310-8789-dd5450dbe970
2001-10-05Put back GSS_DLLIMP for variables, but define the macro here instead of inKen Raeburn5-137/+163
win-mac.h. Drop far/near pointer specs, and _MSDOS (Win16) support. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13780 dc483132-0cff-0310-8789-dd5450dbe970
2001-10-04Danilo says we can get rid of the DLLIMP stuff nowKen Raeburn4-70/+73
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13775 dc483132-0cff-0310-8789-dd5450dbe970
2001-09-01dependenciesKen Raeburn1-0/+46
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13725 dc483132-0cff-0310-8789-dd5450dbe970
2001-06-27 * gssapi.hin, gssapi_generic.h, gssapi_generic.c:Tom Yu4-33/+217
added oids from rfc 2744. Kept old oids for compatibility. [pullup of lxs's changes] git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13515 dc483132-0cff-0310-8789-dd5450dbe970
2001-06-22 * util_validate.c (g_save): Cleanup extraneous variable fromEzra Peisach2-1/+5
last change. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13483 dc483132-0cff-0310-8789-dd5450dbe970
2001-06-21 * util_validate.c (g_validate, g_save, g_delete): If HAVE_BSD_TYPEEzra Peisach2-2/+21
is not defined, declare static functions as taking a void *type for passing to g_set_entry_add. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13468 dc483132-0cff-0310-8789-dd5450dbe970