summaryrefslogtreecommitdiffstats
path: root/src/lib
Commit message (Collapse)AuthorAgeFilesLines
...
* * 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
* Check for stdlib.h (configure.in)Ezra Peisach1996-01-2311-0/+44
| | | | | | | Include stdlib.h and string.h for declarations of such items like malloc, strlen, memmove... git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@7370 dc483132-0cff-0310-8789-dd5450dbe970
* * Makefile.in (SRCS): Remove extraneous line with only a tab.Ezra Peisach1996-01-232-2/+11
| | | | | | | (SHLIB_LDFLAGS): Declare that krb5_gss_initialize is to be unresolved. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@7368 dc483132-0cff-0310-8789-dd5450dbe970
* * Makefile.in (SHLIB_LIBS): Add lines for shared library buildingEzra Peisach1996-01-232-0/+9
| | | | | | depending on libkrb5, crypto, and com_err. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@7367 dc483132-0cff-0310-8789-dd5450dbe970
* Add support for building GSSAPI as a shared libraryTheodore Tso1996-01-235-8/+57
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@7366 dc483132-0cff-0310-8789-dd5450dbe970
* configure.in: Add the mechglue directory as a subdirTheodore Tso1996-01-233-2/+10
| | | | | | | Makefile.in (libgssapi_krb5.a): Include the object files in the mechglue directory as well. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@7365 dc483132-0cff-0310-8789-dd5450dbe970
* gssapiP_generic.h: Removed prototypes of functions that have beenTheodore Tso1996-01-237-543/+9
| | | | | | | | | moved to the mechglue layer. Makefile.in: Removed gssapi_generic.c, oid_ops.c, rel_buffer.c, and rel_oid_set.c --- these functions are now done in the mechglue layer. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@7364 dc483132-0cff-0310-8789-dd5450dbe970
* rel_oid.c (krb5_gss_internal_release_oid): Add the new interface forTheodore Tso1996-01-237-687/+61
| | | | | | | | | | | | | | the mechglue layer. inq_cred.c (krb5_gss_inquire_cred): Call gss_release_oid_set() instead of generic_gss_release_oid_set(). gssapiP_krb5.h: Added prototype for krb5_gss_internal_release_oid Makefile.in (CCSRCS): Removed the file krb5_gss_glue.c and added the file k5mech.c and pname_to_uid.c git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@7363 dc483132-0cff-0310-8789-dd5450dbe970
* Added Sun's changes (from Roland), as fixed by Ted, to finally have aTheodore Tso1996-01-2314-54/+995
| | | | | | fully working mechglue layer. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@7362 dc483132-0cff-0310-8789-dd5450dbe970
* New files for Sun's multi-mechanism GSSAPITheodore Tso1996-01-232-0/+427
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@7361 dc483132-0cff-0310-8789-dd5450dbe970
* * configure.in: Merge in berk_db library if neededEzra Peisach1996-01-223-3/+33
| | | | | | | * Makefile.in (LIB_SUBDIRS): Get location of berk_db from configure if needed. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@7357 dc483132-0cff-0310-8789-dd5450dbe970
* Fixed three problems in the database rename function:Richard Basch1996-01-221-9/+13
| | | | | | | | | | | | | 1. Added a missing call to krb5_dbm_db_end_update to ensure the lock file timestamp is updated. 2. Corrected the test for a valid lock file handle to be >=0 not non-zero. 3. Use the lock file of the target name, since the source will shortly disappear and another process may already be checking for the lock file of the target. (For example, a kdb5_edit db load will use a temporary name and rename the db to the proper name when it is done, and krb5kdc will be testing for the target lock file.) git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@7351 dc483132-0cff-0310-8789-dd5450dbe970
* Simplified to simply require the use of WITH_ANAME or USE_KDB5_LIBRARYRichard Basch1996-01-225-76/+6
| | | | | | to specify the need for dbm inclusion/testing/compilation flags. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@7350 dc483132-0cff-0310-8789-dd5450dbe970
* * gc_via_tkt.c (krb5_kdcrep2creds): Set is_skey so get_creds won'tTom Yu1996-01-222-1/+7
| | | | | | | break trying to match is_skey in the ccache. This way we won't end up with many copies of user-to-user tickets. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@7348 dc483132-0cff-0310-8789-dd5450dbe970
* krb5_get_credentials does not take kdc_options flagsEzra Peisach1996-01-203-5/+10
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@7344 dc483132-0cff-0310-8789-dd5450dbe970
* Makefile.in: (check-unix): ultrix "test" does not support -xEzra Peisach1996-01-112-2/+6
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@7310 dc483132-0cff-0310-8789-dd5450dbe970
* scc.h (KRB5_SCC_DEFAULT_VNO): Remove KRB5_SCC_DEFAULT_VNO; now set inTheodore Tso1996-01-115-13/+21
| | | | | | | | | | | | | | init_ctx.c. scc_maybe.c (krb5_scc_open_file): scc_gennew.c (krb5_scc_generate_new): Use context->scc_default_format to determine the credentials ccache type. scc_read.c (krb5_scc_read_keyblock): If reading in a version 3 credentials cache, ignore the second enctype stored in the ccache; just read it into a dummy variable. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@7302 dc483132-0cff-0310-8789-dd5450dbe970
* fcc.h (KRB5_FCC_DEFAULT_VNO): Remove KRB5_FCC_DEFAULT_VNO; now set inTheodore Tso1996-01-114-11/+15
| | | | | | | | | | init_ctx.c. fcc_maybe.c (krb5_fcc_open_file): fcc_gennew.c (krb5_fcc_generate_new): Use context->fcc_default_format to determine the credentials cache type. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@7301 dc483132-0cff-0310-8789-dd5450dbe970
* Added checking of profile for DCE compatability options (ccache type,Theodore Tso1996-01-112-4/+25
| | | | | | and checksum type). git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@7300 dc483132-0cff-0310-8789-dd5450dbe970
* Added ##DOS statements after gssapi_err_generic.$(OBJECT) to get itTheodore Tso1996-01-112-0/+9
| | | | | | added to library on Windows. (Patch from Doug Engbert). git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@7298 dc483132-0cff-0310-8789-dd5450dbe970
* Fix return type for mit_des3_string_to_key()Theodore Tso1996-01-112-1/+5
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@7297 dc483132-0cff-0310-8789-dd5450dbe970
* Initialize addrs to 0 so that we don't try to free stack garbage on anTheodore Tso1996-01-112-2/+5
| | | | | | error. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@7294 dc483132-0cff-0310-8789-dd5450dbe970
* Remove #if statement that used sizeof(xxx), since that won't work forTheodore Tso1996-01-112-6/+7
| | | | | | most C compilers/C preprocessors! git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@7293 dc483132-0cff-0310-8789-dd5450dbe970
* krbconfig.c, Makefile.in: Removed krbconfig.c; it contained globalTheodore Tso1996-01-117-17/+22
| | | | | | | | | | | | | | | | | | | variables which are no longer used. recvauth.c: Removed the global extern of krb5_kdc_default_options, which wasn't being used anyway. mk_req.c (krb5_mk_req): Replace use of krb5_kdc_default_options with context->kdc_default_options. gc_frm_kdc.c: Remove the global extern of krb5_kdc_req_sumtype, which wasn't being used anymore anyway. send_tgs.c (krb5_send_tgs_basic): Remove use of the global variable krb5_kdc_req_sumtype, and use the kdc_req_sumtype in the context structure instead. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@7291 dc483132-0cff-0310-8789-dd5450dbe970
* If reading in a version 3 credentials cache, ignore the second enctypeTheodore Tso1996-01-112-1/+7
| | | | | | stored in the ccache; just read it into a dummy variable. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@7290 dc483132-0cff-0310-8789-dd5450dbe970
* Applied patch submitted by Doug Engbert, so that the configurableTheodore Tso1996-01-112-0/+9
| | | | | | | authentication patch takes into account the null entry at the end of the list. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@7289 dc483132-0cff-0310-8789-dd5450dbe970
* * locate_kdc.c (krb5_locate_kdc): Add parrentheses for assignmentEzra Peisach1996-01-114-7/+18
| | | | | | | | | | | in conditional. (gcc -Wall) * init_os_ctx.c (krb5_os_init_context): Remove unused variables * an_to_ln.c (aname_do_match): Initialize local variable before referenced. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@7288 dc483132-0cff-0310-8789-dd5450dbe970
* Take care of a gcc warnign about shufting two farEzra Peisach1996-01-112-1/+6
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@7287 dc483132-0cff-0310-8789-dd5450dbe970
* Added defintion for KRB5_GSS_FOR_CREDS_OPTIONTheodore Tso1996-01-101-0/+2
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@7286 dc483132-0cff-0310-8789-dd5450dbe970
* Added error table code KRB5_FWD_BAD_PRINCIPALTheodore Tso1996-01-102-0/+5
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@7283 dc483132-0cff-0310-8789-dd5450dbe970