summaryrefslogtreecommitdiffstats
path: root/src/lib
Commit message (Collapse)AuthorAgeFilesLines
...
* For MS-DOS filesystems, you must close the file before unlinking it,Theodore Tso1996-02-252-5/+11
| | | | | | otherwise the unlink() will fail. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@7531 dc483132-0cff-0310-8789-dd5450dbe970
* Under Windows, assume that the keytab file is located in the WindowsTheodore Tso1996-02-252-0/+20
| | | | | | directory. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@7528 dc483132-0cff-0310-8789-dd5450dbe970
* Use Windows path separator, if appropriate. Under Windows also useTheodore Tso1996-02-242-3/+20
| | | | | | the environment variables TEMP and TMP for the replay cache. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@7526 dc483132-0cff-0310-8789-dd5450dbe970
* Add new GSSAPI V2 calls. (XXX we still need to get the officialTheodore Tso1996-02-242-0/+41
| | | | | | function numbers defined for them.) git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@7525 dc483132-0cff-0310-8789-dd5450dbe970
* No longer need to call name-type/mechanism registration function.Theodore Tso1996-02-242-9/+6
| | | | | | This is now done for us by the generic intialization function. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@7524 dc483132-0cff-0310-8789-dd5450dbe970
* g_mechname.c (gss_add_mech_name_type): Only mark a name-type as beingTheodore Tso1996-02-2413-256/+473
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | non-mechanism-specific if the mechanism doesn't match the type currently associated with the name-type. g_init_sec_context.c (gss_init_security_context): If we are using a mechanism-specific name, use the mechanism-specific name directly, instead of calling __gss_internal_import() on the external form of the name. If the mechanism_type is unspecified, use the type of the mechanism-specific name. If the mechanism_type is specified, it must match the type of the supplied name. g_acquire_cred.c (gss_acquire_cred): If we are acquiring credentials for a mechanism-specific name, use the name directly, instead of doing an __gss_internal_import() on the name. Also, if the desired_mechanisms oid is NULL, default to using the mechanism-type of the mechanism-specific name. g_compare_name.c (gss_compare_name): Add logic for comparing mechanism-specific names. g_accept_sec_context.c (gss_accept_sec_context): Use __gss_convert_name_to_union_name() to take the gss_name_t returned by the mechanism accept_sec_context(), and convert it into a mechanism-specific union name. g_inquire_context.c (gss_inquire_context): Removed local static function convert_name_to_union_name(), and changed references to it use the generalized __gss_convert_name_to_union_name() call. g_glue.c (__gss_convert_name_to_union_name): New function which takes gss_name_t returned by a particular mechanism, and converts it into a gss_union_name. g_rel_oid_set.c (gss_release_oid_set): Manually free the oids in an OID set, since the containing structure is allocated as an array. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@7523 dc483132-0cff-0310-8789-dd5450dbe970
* * mglueP.h (gss_config): Change int fields to OM_uint32 to matchEzra Peisach1996-02-242-4/+10
| | | | | | | arguments to procedure calls in gss_init_sec_context, gss_accept_sec_context, and gss_display_status. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@7522 dc483132-0cff-0310-8789-dd5450dbe970
* * import_sec_context.c (krb5_gss_import_sec_context): Do notEzra Peisach1996-02-243-6/+12
| | | | | | | | | | | | shadow parameter ctx. * inq_context.c (krb5_gss_inquire_context): Do not shadow parameter ctx. The variable ctx was used both as an argument to the function (and put into the variabel context) and declared as a local variable. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@7521 dc483132-0cff-0310-8789-dd5450dbe970
* * rel_oid.c (krb5_gss_internal_release_oid): Change to match prototypeEzra Peisach1996-02-243-4/+13
| | | | | | | * process_context_token.c (krb5_gss_process_context_token): Change to match prototype. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@7520 dc483132-0cff-0310-8789-dd5450dbe970
* Declare krb__get_srvtabname()Ezra Peisach1996-02-245-0/+13
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@7518 dc483132-0cff-0310-8789-dd5450dbe970
* gssapiP_krb5.h: Changed most krb5 gssapi functions to take a void * asTheodore Tso1996-02-2424-330/+145
| | | | | | | | | | | their first argument, instead of a krb5_context. Makes for a cleaner interface to the mechanism glue layer. k5mech.c (krb5_gss_initialize): Call name-type/mechanism registration function so that mechanism glue layer knows whether or not a name needs to be lazy evaluated or not. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@7514 dc483132-0cff-0310-8789-dd5450dbe970
* g_imp_name.c (gss_import_name): If the user passes in a name-typeTheodore Tso1996-02-247-16/+189
| | | | | | | | | | | | | | | | | | | | | | | | | which is mechanism specific, then import it immediately; don't lazy evaluate it. g_mechname.c (gss_add_mech_name_type): New file for maintaining a registry of name-types which are mechanism specific. g_dsp_name.c (gss_display_name): If there is a mechanism specific name, use it when displaying the name. oid_ops.c (generic_gss_copy_oid): New function used to copy an OID object. g_rel_name.c (gss_release_name): Release the OID in the mechanism name, as it is now allocated. Release the mechanism-specific name if it is present. g_imp_name.c (gss_import_name): Copy the input OID, so we don't have to worry about memory allocation problems later. oid_ops.c (generic_gss_copy_oid): Added new function to copy OIDs. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@7513 dc483132-0cff-0310-8789-dd5450dbe970
* * keytab.c (krb5_ktkdb_close): new function, non-optional.Mark Eichin1996-02-242-10/+27
| | | | | | | (krb5_kt_kdb_ops): include _close method, comment what the other slots are. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@7510 dc483132-0cff-0310-8789-dd5450dbe970
* t_random.c: New file which just tests the random number generatorTheodore Tso1996-02-234-2/+145
| | | | | | | new_rn_key.c (mit_des_set_random_generator_seed): Add fix so that we do something even if the input key is not a valid DES key. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@7503 dc483132-0cff-0310-8789-dd5450dbe970
* * Makefile.in (check-unix): Set LD_LIBRARY_PATH for kdb5_anaddEzra Peisach1996-02-224-0/+11
| | | | | | | | * hostaddr.c (krb5_os_hostaddr): Set magic number in structure. * full_ipadr.c (krb5_make_full_ipaddr): Set magic number in structure. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@7502 dc483132-0cff-0310-8789-dd5450dbe970
* If the configuration file does not exist (context->profile == NULL)Theodore Tso1996-02-172-3/+12
| | | | | | | | return KRB5_CONFIG_CANTOPEN; if the default realm is not defined in the configuration file, return an error message saying so. These changes just make the diagnostic error messages more clear. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@7486 dc483132-0cff-0310-8789-dd5450dbe970
* Added new error table code KRB5_CONFIG_NODEFREALMTheodore Tso1996-02-162-0/+5
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@7485 dc483132-0cff-0310-8789-dd5450dbe970
* If version is not FVNO_4, do not seek forwar a random stack value.Ezra Peisach1996-02-152-2/+9
| | | | | | Also check resturn status of lseek. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@7481 dc483132-0cff-0310-8789-dd5450dbe970
* Set magic number in krb5_addressEzra Peisach1996-02-152-0/+7
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@7480 dc483132-0cff-0310-8789-dd5450dbe970
* * kdb_dbm.c (krb5_dbm_db_rename): Initialize pointer before useEzra Peisach1996-02-142-1/+7
| | | | | | for case where new db does not exist. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@7477 dc483132-0cff-0310-8789-dd5450dbe970
* Remove junk fileTheodore Tso1996-02-131-31/+0
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@7475 dc483132-0cff-0310-8789-dd5450dbe970
* Incluide stdlib.h for declaration of mallocEzra Peisach1996-02-112-0/+8
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@7470 dc483132-0cff-0310-8789-dd5450dbe970
* * g_glue.c: grab stdlib.h to get NULLTom Yu1996-02-102-0/+7
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@7469 dc483132-0cff-0310-8789-dd5450dbe970
* * scc.h scc_gprin.c scc_maybe.c scc_skip.c scc_sseq.cRichard Basch1996-02-095-113/+221
| | | | | | | Store and retrieve the os_context time offset from the credentials cache. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@7465 dc483132-0cff-0310-8789-dd5450dbe970
* * fcc_maybe.cRichard Basch1996-02-091-13/+18
| | | | | | Only store the os_context time offset if it is valid. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@7462 dc483132-0cff-0310-8789-dd5450dbe970
* * fcc.h fcc_gprin.c fcc_maybe.c fcc_skip.c fcc_sseq.cRichard Basch1996-02-095-48/+154
| | | | | | | | | | | Store the time offset from the os_context in the credentials cache. When applications open the credentials cache, they will set the os_context time offset if kdc_timesync is set and the os_context time offset has not yet been set. Note: The time offset is stored during krb5_cc_initialize, so the os_context should be set prior to this operation. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@7461 dc483132-0cff-0310-8789-dd5450dbe970
* Need to include stdio.h and errno.h no matter what.Ezra Peisach1996-02-072-2/+7
| | | | | | (stderr and ENOMEM needs to be defined) git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@7452 dc483132-0cff-0310-8789-dd5450dbe970
* Folded in danw's changes to allow building Makefiles for theTheodore Tso1996-02-0716-1/+62
| | | | | | | Macintosh. We now can build MPW makefiles which are interpreted by CodeWarrior. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@7444 dc483132-0cff-0310-8789-dd5450dbe970
* Commited new snapshot from Roland Schemers at SunTheodore Tso1996-02-0740-454/+1115
| | | | | | | | | | This snapshot features a BSD-style copyright notice from Sun. It also includes the code to parse a configuration file and then dlopen the proper shared library. Miscellaneous cleanup in the mechglue directory. Namespace uglieness (like get_mechanism) have been cleaned up, to use things like __gss_get_mechanism instead. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@7442 dc483132-0cff-0310-8789-dd5450dbe970
* * configure.in, Makefile.inRichard Basch1996-02-042-25/+12
| | | | | | | Better support of alternate db libraries. Berkeley db is now a separate library git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@7436 dc483132-0cff-0310-8789-dd5450dbe970
* Remove check to make sure ticket enctypeSam Hartman1996-02-014-49/+11
| | | | | | is in the tgs enctypes. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@7431 dc483132-0cff-0310-8789-dd5450dbe970
* Remove check to make sure cached tickets are in tgs_enctypesSam Hartman1996-02-012-24/+6
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@7430 dc483132-0cff-0310-8789-dd5450dbe970
* Several changes to the db rename feature.Richard Basch1996-01-311-19/+25
| | | | | | | | | | Renaming locks the target lock file. If the target lock file doesn't exist, create it. Check the return value of krb5_dbm_db_set_name and set the context accordingly if the target didn't exist. Only unlink the source lock file if one could be computed. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@7418 dc483132-0cff-0310-8789-dd5450dbe970
* * kdb_dbm.c (krb5_dbm_db_rename): O_EXCL is meaningless withoutMark Eichin1996-01-302-1/+6
| | | | | | O_CREAT. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@7416 dc483132-0cff-0310-8789-dd5450dbe970
* Fix quoting problemSam Hartman1996-01-282-2/+6
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@7411 dc483132-0cff-0310-8789-dd5450dbe970
* fix indentationMark Eichin1996-01-271-2/+2
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@7402 dc483132-0cff-0310-8789-dd5450dbe970
* * kuserok.c: use HAVE_SETEUID and HAVE_SETRESUID to figure out howMark Eichin1996-01-273-4/+11
| | | | | | | | to emulate seteuid instead of assuming hpux. * configure.in: test for seteuid as well; fold some tests into a single AC_HAVE_FUNCS. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@7401 dc483132-0cff-0310-8789-dd5450dbe970
* * t_kdb.c: wrap db_dbm decls and berkely_dispatch in ifdefsMark Eichin1996-01-273-2/+18
| | | | | | | | | BERK_DB_DBM. (do_testing): wrap references as well. * keytab.c (krb5_ktkdb_get_entry): use KRB5_PROTOTYPE. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@7400 dc483132-0cff-0310-8789-dd5450dbe970
* * t_cksum.c (main): use proper old-style definitionMark Eichin1996-01-272-1/+7
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@7399 dc483132-0cff-0310-8789-dd5450dbe970
* Require DES for credentialsSam Hartman1996-01-262-1/+5
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@7395 dc483132-0cff-0310-8789-dd5450dbe970
* Fix bug in call to shared library macrosSam Hartman1996-01-262-1/+5
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@7394 dc483132-0cff-0310-8789-dd5450dbe970
* Removed outdated comment about mappingSam Hartman1996-01-262-4/+3
| | | | | | | etypes to ktypes--it's a one to one mapping now. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@7389 dc483132-0cff-0310-8789-dd5450dbe970
* Fixed to check enctype of retrieved keysSam Hartman1996-01-263-2/+11
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@7388 dc483132-0cff-0310-8789-dd5450dbe970
* get_creds.c: Only match on enctype if in_creds.keyblockSam Hartman1996-01-253-3/+23
| | | | | | | | | | has non-null enctype. (I.E. implement as documented) gc_via_tkt.c: If the in_creds.keyblock.enctype !=0 then don't call send_tgs with a null ktypes paramater; instead, explicitally allow only increds.keyblock.enctype. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@7385 dc483132-0cff-0310-8789-dd5450dbe970
* Previously, ktype_match only made sure that the enctype was validSam Hartman1996-01-256-15/+35
| | | | | | | | | and in the set of default tgs enctypes. Now, if matching on keytype, do an exact match, else use ktype_reasonable (renamed ktype_match) to make sure the ticket is in the default tgs enctypes. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@7384 dc483132-0cff-0310-8789-dd5450dbe970
* Remove superfluous link lineSam Hartman1996-01-252-1/+5
| | | | | | from configure.in git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@7380 dc483132-0cff-0310-8789-dd5450dbe970
* * g_compare_name.c, g_delete_sec_context.c, g_dsp_status.c,Tom Yu1996-01-2515-196/+288
| | | | | | | | | | | g_exp_sec_context.c, g_imp_sec_context.c, g_rel_buffer.c, g_rel_cred.c, g_rel_name.c, g_rel_oid_set.c, get_mechanism.c, get_mtype.c: Include stdlib.h and string.h as needed * mglueP.h: Add many invocations of NPROTOTYPE and PROTOTYPE to prevent breakage. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@7378 dc483132-0cff-0310-8789-dd5450dbe970
* * pname_to_uid.c (krb5_pname_to_uid): Changed def'n ofTom Yu1996-01-252-2/+8
| | | | | | | krb5principalname to static so K&R compilers won't lose on automatic aggregate initialization. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@7377 dc483132-0cff-0310-8789-dd5450dbe970
* Don't assume that the input_name_buffer is null terminated, when itTheodore Tso1996-01-242-8/+26
| | | | | | contains a string. Fix gcc warnings. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@7373 dc483132-0cff-0310-8789-dd5450dbe970
* Check for stdlib.h, include stdlib.h, string.h, cast to handle gcc warningEzra Peisach1996-01-234-1/+14
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@7371 dc483132-0cff-0310-8789-dd5450dbe970