summaryrefslogtreecommitdiffstats
path: root/src
Commit message (Collapse)AuthorAgeFilesLines
...
* 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
* * ext.h, utility.c (fatalperror, fatal): Add const to argumentEzra Peisach1996-02-243-4/+8
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@7519 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
* remove errno correctlyMark Eichin1996-02-241-1/+1
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@7517 dc483132-0cff-0310-8789-dd5450dbe970
* remove extraneous second include of stdlib.hMark Eichin1996-02-241-6/+1
| | | | | | | remove extra ; from previous merge remove declaration of errno git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@7516 dc483132-0cff-0310-8789-dd5450dbe970
* Simple test program for testing how GSSAPI import name works. (May beTheodore Tso1996-02-243-0/+169
| | | | | | made into a more full-fledged test program later.) git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@7515 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
* more changes from cygnus sourceMark Eichin1996-02-243-1/+14
| | | | | | | | | | | | Fri Feb 16 15:51:59 1996 Mark Eichin <eichin@cygnus.com> * ftpcmd.y (yylex): error handling changes from kbalk@hp.com. Tue Jan 16 18:44:42 1996 Mark Eichin <eichin@cygnus.com> * ftpd.c (user): 331 is more appropriate for kuserok failure. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@7512 dc483132-0cff-0310-8789-dd5450dbe970
* update from cygnus sourcesMark Eichin1996-02-243-10/+32
| | | | | | | | | | | | | Fri Feb 16 15:50:51 1996 Mark Eichin <eichin@cygnus.com> * ftp.c (do_auth): return status handling fixes from kbalk@hp.com. Tue Jan 16 19:05:31 1996 Mark Eichin <eichin@cygnus.com> * ftp.c (login): move do_auth ... * cmds.c (setpeer): ... to just before login call. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@7511 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
* Fri Jan 12 04:37:23 1996 Mark Eichin <eichin@cygnus.com>Mark Eichin1996-02-242-3/+31
| | | | | | | | * cnv_tkt_skey.c (krb524_convert_tkt_skey): rather than apply fit an extended v5 lifetime into a v4 range, give out a v4 ticket with as much of the v5 lifetime is available "now" instead. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@7509 dc483132-0cff-0310-8789-dd5450dbe970
* Sat Feb 3 22:37:55 1996 Mark Eichin <eichin@cygnus.com>Mark Eichin1996-02-242-3/+10
| | | | | | | * network.c (add_port): sunos realloc doesn't handle a NULL pointer, so protect with a macro. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@7508 dc483132-0cff-0310-8789-dd5450dbe970
* one step closer to *really* only depending on krb5.conf. (I don't knowMark Eichin1996-02-242-1/+26
| | | | | | | | | | | | of any others, but this was a big one.) Sat Feb 10 02:46:27 1996 Mark Eichin <eichin@cygnus.com> * main.c (initialize_realms): look for [kdc] profile=path for default alternate kdc profile (environment variable still overrides it.) git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@7507 dc483132-0cff-0310-8789-dd5450dbe970
* This is the aggregate of a bunch of fixes to kadmind (after all, some peopleMark Eichin1996-02-245-434/+383
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | actually use it.) Note that in admin.c, I shredded admin_add_modify and admin_merge_dbentries, converting them to a goto-exception style, eliminating the excessive nesting, so they were readable; having done so, admin_add_modify turned out to be correct, and admin_merge_dbentries was "obviously" broken in that it assigned random keys gratuitiously. Fixing this causes "modent" to actually work, without destroying the key... Wed Feb 21 21:26:50 1996 Mark Eichin <eichin@cygnus.com> * srv_main.c (xprintf): handle VARARGS. Sun Feb 18 00:08:02 1996 Mark W. Eichin <eichin@cygnus.com> * admin.c (admin_merge_dbentries): rewrite for readability, and fix the year old bug of modify randomizing the password field. (admin_add_modify): rewrite for readability. Fri Feb 9 20:11:50 1996 Mark Eichin <eichin@cygnus.com> * srv_net.c (net_init): gethostbyname doesn't use errno, compensate by using KRB5_ERR_BAD_HOSTNAME. Tue Dec 12 19:14:51 1995 Mark Eichin <eichin@cygnus.com> * admin.c (admin_merge_dbentries): new argument mod_only, to distinguish between add and modify. (admin_add_modify): new argument mod_only, to distinguish between add and modify (and pass through to admin_merge_dbentries.) (admin_add_principal, admin_modify_principal, admin_change_opwd, admin_change_orandpw): pass flag indicating modify or add. Tue Sep 26 22:51:25 1995 Mark Eichin <eichin@cygnus.com> * admin.c (admin_add_modify): copy, don't just assign, principals to avoid double-freeing. Zero out "contents" and mod_name fields after freeing, likewise. Free cur_dbentry and new_dbentry properly. Tue Sep 26 02:56:41 1995 Mark Eichin <eichin@cygnus.com> * srv_acl.c (acl_free_entries): jump the ae_next link *before* freeing the item so we don't lose it. Tue Sep 26 02:28:35 1995 Mark Eichin <eichin@cygnus.com> * admin.c (admin_merge_dbentries): copy who into dbentp->mod_name because callers will free it after successful use. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@7506 dc483132-0cff-0310-8789-dd5450dbe970
* * krb5.hin (krb5_x, krb5_xc): wrapper macros to test all functionMark Eichin1996-02-242-38/+52
| | | | | | | | pointers before calling through them (abort if null.) Simplifies debugging on many platforms. Currently #if 1, but could be conditionalized once we're in "production". git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@7505 dc483132-0cff-0310-8789-dd5450dbe970
* * kdb5_edit.c (kdb5_edit_Init): set manual_mkey for testing with -PMark Eichin1996-02-232-0/+5
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@7504 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
* Do not free memory before done using it. (The credential was pointingEzra Peisach1996-02-222-2/+9
| | | | | | to memory that is freed and then referenced again) git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@7501 dc483132-0cff-0310-8789-dd5450dbe970
* A few more things are complete.Richard Basch1996-02-221-4/+6
| | | | | | Added a note about the TGS req starttime bug. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@7500 dc483132-0cff-0310-8789-dd5450dbe970
* kerberos_v4.c: Better DES key validation.Richard Basch1996-02-221-0/+8
| | | | | | | main.c: Don't assume master key is DES for initializing the V4 randkey generator; use a random key from the DES_CBC_CRC generator as the seed. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@7499 dc483132-0cff-0310-8789-dd5450dbe970
* kadm_funcs.c: add_entry was failing; improper struct initializationRichard Basch1996-02-221-0/+5
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@7498 dc483132-0cff-0310-8789-dd5450dbe970
* Makefile.in: Don't install k5-int.hRichard Basch1996-02-221-0/+4
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@7497 dc483132-0cff-0310-8789-dd5450dbe970
* * aclocal.m4Richard Basch1996-02-221-0/+6
| | | | | | | Don't include build directory in rpath Fixed cache variable prefix (from krb_ to krb5_) git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@7496 dc483132-0cff-0310-8789-dd5450dbe970
* Do not include the build directories in the rpath (runtime lib path)Richard Basch1996-02-221-7/+7
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@7495 dc483132-0cff-0310-8789-dd5450dbe970
* * kerberos_v4.cRichard Basch1996-02-222-6/+33
| | | | | | | | | | | Improve the checks that DES keys are being used. * main.c Do not assume that the master key is necessarily a DES key suitable for use to initialize the V4 random key generator. Instead, after initializing the DES_CBC_CRC generator, get a random key and use that to seed the V4 random key generator. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@7494 dc483132-0cff-0310-8789-dd5450dbe970
* add_entry was not working because the structure length element wasRichard Basch1996-02-221-0/+2
| | | | | | not being initialized. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@7493 dc483132-0cff-0310-8789-dd5450dbe970
* Do not install k5-int.hRichard Basch1996-02-221-3/+1
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@7492 dc483132-0cff-0310-8789-dd5450dbe970
* kerberos_v4.c (kerberos_v4): Use strong random number generatorTheodore Tso1996-02-213-2/+11
| | | | | | main.c (main): Initialize Kerberos V4's random number generator. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@7491 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
* Make parsing more flexible, so we don't barf over lack of spacesTheodore Tso1996-02-143-16/+21
| | | | | | around the equals sign. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@7479 dc483132-0cff-0310-8789-dd5450dbe970
* * kdb5_edit.c (enter_master_key, set_dbname_help): If master keyEzra Peisach1996-02-142-11/+52
| | | | | | enctype is unknown, set to DEFAULT_KDC_ENCTYPE. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@7478 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
* * kdb5_edit.c (extract_v4_srvtab): krb5_dbekd_decrypt_key_dataEzra Peisach1996-02-132-2/+7
| | | | | | | | | takes krb5_key_data *, not **. Prototype warnings realy do mean potential errors. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@7476 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
* Fix lint flame (added missing cast)Theodore Tso1996-02-132-1/+5
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@7474 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
* Only display secure_message if encryption actually enabledSam Hartman1996-02-102-1/+6
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@7467 dc483132-0cff-0310-8789-dd5450dbe970
* Fixed bug in v4 compatability: you don't checkSam Hartman1996-02-102-30/+37
| | | | | | v5 authenticator checksums when v4 is being used. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@7466 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
* * pre.inRichard Basch1996-02-091-1/+2
| | | | | | | | Install administrative database utilities in sbin, not admin. Also, define $(transform) to be the sed transformation for program installation. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@7464 dc483132-0cff-0310-8789-dd5450dbe970