summaryrefslogtreecommitdiffstats
path: root/src/lib/gssapi
Commit message (Collapse)AuthorAgeFilesLines
...
* * g_imp_sec_context.c, g_exp_sec_context.c: Include string.hEzra Peisach1996-03-033-0/+6
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@7586 dc483132-0cff-0310-8789-dd5450dbe970
* k5mech.c (krb5_gss_get_context): Initialize the serializers here,Theodore Tso1996-03-024-125/+119
| | | | | | | | | | | | | | instead of in export and import security context. This will speed things up a little. export_sec_context.c (krb5_gss_export_sec_context): import_sec_context.c (krb5_gss_import_sec_context): Don't create a serialization context just for importing/exporting credentials. Use the passed-in gssapi context. This speeds things up significantly. Assume the serializers are initialized in krb5_gss_get_context. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@7582 dc483132-0cff-0310-8789-dd5450dbe970
* g_glue.c (__gss_get_mech_type): Fix code to properly parse tokenTheodore Tso1996-03-014-42/+72
| | | | | | | | | | headers. It was working only by serendipity.... g_accept_sec_context.c (gss_accept_sec_context): Add error checking and memory cleanup. Make gss_accept_sec_context work for mechanisms that use multiple token roundtrips. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@7581 dc483132-0cff-0310-8789-dd5450dbe970
* Fix to work on 16-bit platforms (we don't allow greater than 64kTheodore Tso1996-03-012-0/+15
| | | | | | tokens on these platforms). git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@7576 dc483132-0cff-0310-8789-dd5450dbe970
* mglueP.h: For MS-DOS, add #include of malloc.hTheodore Tso1996-02-295-62/+180
| | | | | | | | | | | g_acquire_cred.c (gss_acquire_cred): Fix so that the call works when desired_name is NULL (meaning use the default credentials). g_imp_sec_context.c (gss_import_sec_context): g_exp_sec_context.c (gss_export_sec_context): Fix to import/export the framing security context (so that this call actually works!). git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@7574 dc483132-0cff-0310-8789-dd5450dbe970
* g_initialize.c (gss_initialize): Don't fprintf to stderr onTheodore Tso1996-02-283-1/+14
| | | | | | | | Macintoshes and Windows. g_inq_context.c: Add INTERFACE keyword for Windows. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@7561 dc483132-0cff-0310-8789-dd5450dbe970
* Add mechglue to the list of directories which are recursively handledTheodore Tso1996-02-282-0/+12
| | | | | | for Windows. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@7560 dc483132-0cff-0310-8789-dd5450dbe970
* Protect include of unistd.h with HAVE_UNISTD_HTheodore Tso1996-02-272-0/+6
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@7557 dc483132-0cff-0310-8789-dd5450dbe970
* Make sure size_t and uid_t are defined under MS-DOSTheodore Tso1996-02-272-1/+16
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@7556 dc483132-0cff-0310-8789-dd5450dbe970
* accept_sec_context.c (krb5_gss_accept_sec_context): Remove dead codeTheodore Tso1996-02-275-7/+23
| | | | | | | | | | | | which used geteuid(). Makefile.in (gssapi_err_krb5.$(OBJEXT)): Add Windows production to add file to library. pname_to_uid.c: Don't try to compile pname_to_uid.c for MS-DOS or Macintosh. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@7555 dc483132-0cff-0310-8789-dd5450dbe970
* Remoe static declaration of kg_context,Sam Hartman1996-02-262-5/+4
| | | | | | which is global elsewhere and extern in gssapiP_krb5.h git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@7551 dc483132-0cff-0310-8789-dd5450dbe970
* * g_acquire_cred.c, g_delete_sec_context.c, g_dsp_name.c,Mark Eichin1996-02-2516-0/+23
| | | | | | | | | g_dsp_status.c, g_exp_sec_context.c, g_glue.c, g_imp_name.c, g_imp_sec_context.c, g_indicate_mechs.c, g_init_sec_context.c, g_inq_cred.c, g_rel_buffer.c, g_rel_cred.c, g_rel_name.c, g_rel_oid_set.c: include stdio.h to actually get NULL. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@7543 dc483132-0cff-0310-8789-dd5450dbe970
* Makefile.in, g_inquire_cred.c, g_inquire_names.c, g_inquire_context.c:Theodore Tso1996-02-255-6/+10
| | | | | | | Renamed files to g_inq_cred.c, g_inq_names.c, and g_inq_context.c, respectively. To make files be unqiue to DOS's 8.3 restrictions. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@7539 dc483132-0cff-0310-8789-dd5450dbe970
* g_acquire_cred.c (gss_add_cred): New GSSAPI V2 functionTheodore Tso1996-02-2526-50/+324
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | g_inquire_cred.c (gss_inquire_cred_by_mech): New GSSAPI V2 function. g_init_sec_context.c (gss_init_sec_context): Make sure we convert the union credential into a mechanism specific credential. g_glue.c (__gss_get_mechanism_cred): New function for returning the mechanism-specific credential from a union credential. g_inquire_names.c (gss_inquire_names_for_mech): g_oid_ops.c (gss_str_to_oid, gss_oid_to_str, ss_test_oid_set_member, gss_add_oid_set_member, gss_create_empty_oid_set, gss_release_oid): g_imp_sec_context.c (gss_import_sec_context): g_exp_sec_context.c (gss_export_sec_context): g_inquire_cred.c (gss_inquire_cred): g_rel_oid_set.c (gss_release_oid_set): g_rel_buffer.c (gss_release_buffer): g_rel_name.c (gss_release_name): g_imp_name.c (gss_import_name): g_dsp_name.c (gss_display_name): g_compare_name.c (gss_compare_name): g_indicate_mechs.c (gss_indicate_mechs): g_dsp_status.c (gss_display_status): g_unseal.c (gss_unseal, gss_unwrap): g_seal.c (gss_seal, gss_wrap): g_verify.c (gss_verify, gss_verify_mic): g_sign.c (gss_sign, gss_get_mic): g_context_time.c (gss_context_time): g_delete_sec_context.c (gss_delete_sec_context): g_process_context.c (gss_process_context): g_accept_sec_context.c (gss_accept_sec_context): g_init_sec_context.c (gss_init_sec_context): g_rel_cred.c (gss_release_cred): g_acquire_cred.c (gss_acquire_cred): Added INTERFACE keyword for Windows. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@7536 dc483132-0cff-0310-8789-dd5450dbe970
* New error code functionTheodore Tso1996-02-252-0/+10
| | | | | | | XXX Need to square number assigment with official C-binds draft once it is issued. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@7535 dc483132-0cff-0310-8789-dd5450dbe970
* Add support for new V2 call gss_wrap_size_limitTheodore Tso1996-02-252-1/+3
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@7533 dc483132-0cff-0310-8789-dd5450dbe970
* Add support for new V2 call gss_wrap_size_limit()Theodore Tso1996-02-253-2/+57
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@7532 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
* 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
* 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
* 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-072-0/+8
| | | | | | | 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
* 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
* 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
* 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
* 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
* 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
* gssapiP_krb5.h (KRB5_GSS_FOR_CREDS_OPTION): New constant added forTheodore Tso1996-01-103-77/+252
| | | | | | | | | | | | delegation (forwarding) of credentials. init_sec_context.c (make_ap_req): Add support for sending delegated credentials. Misc lint cleanups. accept_sec_context.c (krb5_gss_accept_sec_context): Add support for accepting delegated credentials. Misc lint cleanups. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@7281 dc483132-0cff-0310-8789-dd5450dbe970
* gssapiP_generic.h (TWRITE_INT16, TREAD_INT16): Added new macrosTheodore Tso1996-01-052-0/+13
| | | | | | to read and write two byte integers from the wire. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@7276 dc483132-0cff-0310-8789-dd5450dbe970