summaryrefslogtreecommitdiffstats
path: root/src/lib/gssapi
Commit message (Collapse)AuthorAgeFilesLines
...
* Add #ifdef _WIN32 in places where we had #ifdef _MSDOSTheodore Tso1996-06-122-1/+6
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@8308 dc483132-0cff-0310-8789-dd5450dbe970
* Change INTERFACE to be KRB5_CALLCONV, which is where the callingTheodore Tso1996-06-122-57/+109
| | | | | | | | | | | | | | convention is defined. Add KRB5_DLLIMP which is where the DLL import/export should be put for Win32. (Win16 is just different.) The correct way to declare a function which will be used in a DLL is now: KRB5_DLLIMP func_return_t KRB5_CALLCONV func(long) Change function delcarations to use the new convention. Actually, it doesn't hurt to use the old convention as long as func_return_t doesn't contain a '*'. But in the long run we should be exterminating all uses of INTERFACE in favor of KRB5_CALLCONV and KRB5_DLLIMP. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@8307 dc483132-0cff-0310-8789-dd5450dbe970
* cvsignore hackeryTom Yu1996-06-104-4/+0
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@8288 dc483132-0cff-0310-8789-dd5450dbe970
* Changed `mutual' element of struct _krb5_gss_ctx_id_rec into more generalKevin Mitchell1996-06-076-12/+21
| | | | | | | `gss_flags' and updated functions that process it; now get delegation flag set properly :) git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@8275 dc483132-0cff-0310-8789-dd5450dbe970
* Don't pass $(LIBCMD) on the command line. It's set in the windows.inTheodore Tso1996-06-062-3/+8
| | | | | | prologue for all Makefiles anyway. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@8271 dc483132-0cff-0310-8789-dd5450dbe970
* Update .Sanitize files to reflect current file statusTheodore Tso1996-06-061-0/+3
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@8246 dc483132-0cff-0310-8789-dd5450dbe970
* Do not build libgssapi.a on AIX, because it doesnt workSam Hartman1996-05-233-8/+24
| | | | | | (unresolved symbols) and would be fairly useless anyway. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@8120 dc483132-0cff-0310-8789-dd5450dbe970
* update Makefile.in for new libupdateTom Yu1996-05-202-9/+8
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@8060 dc483132-0cff-0310-8789-dd5450dbe970
* * k5seal.c k5unseal.c util_cksum.c:Richard Basch1996-05-154-11/+14
| | | | | | | setup krb5_checksum "contents" and "length" field prior to calling krb5_calculate_checksum(). git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@8029 dc483132-0cff-0310-8789-dd5450dbe970
* Change call to krb5_auth_con_setcksumtype to useTheodore Tso1996-05-142-1/+7
| | | | | | krb5_auth_con_set_req_cksumtype by default instead. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@8018 dc483132-0cff-0310-8789-dd5450dbe970
* (clean-unix): Remove libgssapi_krb5.stampEzra Peisach1996-05-072-1/+5
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@7909 dc483132-0cff-0310-8789-dd5450dbe970
* Add code to support appropriate behavior when the input credentials isTheodore Tso1996-05-032-13/+51
| | | | | | | | NULL (i.e., the default credential). We use the default credential for the "default mechanism", which is the first mechanism registered with the library. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@7887 dc483132-0cff-0310-8789-dd5450dbe970
* Renamed MD5 routines to be preceded with krb5_Richard Basch1996-04-133-22/+27
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@7806 dc483132-0cff-0310-8789-dd5450dbe970
* Integrated OpenVision's changes into the most recent MIT code. ThisMarc Horowitz1996-04-123-0/+330
| | | | | | | revision is what I'd call the easy stuff. Some more controversial stuff remains to be done, which is why I'm doing a checkin now. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@7797 dc483132-0cff-0310-8789-dd5450dbe970
* Return GSS_S_CRED_UNAVAIL on if krb5_cc_set_flags() returns an error,Theodore Tso1996-04-122-1/+8
| | | | | | | since that's the call that will return an error if the credentials files doesn't exist. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@7794 dc483132-0cff-0310-8789-dd5450dbe970
* Fixed code to correctly handle errors reported from the mechanismTheodore Tso1996-04-122-31/+47
| | | | | | layer. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@7793 dc483132-0cff-0310-8789-dd5450dbe970
* If make_ap_req() returns KRB5APP_TKT_EXPIRED, then returnTheodore Tso1996-04-102-0/+8
| | | | | | GSS_S_CREDENTIALS_EXPIRED as the major return code. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@7779 dc483132-0cff-0310-8789-dd5450dbe970
* Inlined list of source files for SRCS and OBJS (for Macintosh build)Theodore Tso1996-04-022-9/+13
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@7748 dc483132-0cff-0310-8789-dd5450dbe970
* Makefile.in (SRCS): Inlined list of source files for SRCS and OBJSTheodore Tso1996-04-023-6/+18
| | | | | | | | | (for Macintosh build). k5mech.c: Added Macintosh #ifdef so that the #include path is right for the Macintosh. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@7747 dc483132-0cff-0310-8789-dd5450dbe970
* Don't include <sys/types.h> mechglue.h will take care of this byTheodore Tso1996-03-272-1/+6
| | | | | | including gssapi.h, which will include sys/types.h if necessary. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@7717 dc483132-0cff-0310-8789-dd5450dbe970
* g_imp_sec_context.c (gss_import_sec_context):Theodore Tso1996-03-218-5/+23
| | | | | | | | | | | | g_exp_sec_context.c (gss_export_sec_context): Fix 16bit vs 32bit lint flame. g_glue.c, g_initialize.c: Add include of string.h, as it is needed. g_acquire_cred.c, g_inq_cred.c: Add include of time.h g_rel_oid_set.c (gss_release_oid_set): Removed unused variable. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@7695 dc483132-0cff-0310-8789-dd5450dbe970
* Don't compile this procedure, since it's not used. The mechanism glueTheodore Tso1996-03-212-0/+10
| | | | | | layer uses the krb5_gss_internal_relase_oid() function. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@7694 dc483132-0cff-0310-8789-dd5450dbe970
* Comment out #ident line. This causes the Macintosh C compilerTheodore Tso1996-03-212-2/+9
| | | | | | | indigestion. Remove #include of gssapi/gssapi.h, since that gets included by gssapiP_generic.h. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@7686 dc483132-0cff-0310-8789-dd5450dbe970
* mechglue.h: Don't include <sys/types.h>; it's included if necessary inTheodore Tso1996-03-2130-35/+50
| | | | | | | | | | | | | | | | | gssapi/gssapi.h. On a Macintosh, #include gssapi.h instead of gssapi/gssapi.h. g_accept_sec_context.c, g_acquire_cred.c, g_compare_name.c, g_context_time.c, g_delete_sec_context.c, g_dsp_name.c, 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_initialize.c, g_inq_context.c, g_inq_cred.c, g_inq_names.c, g_process_context.c, g_rel_buffer.c, g_rel_cred.c, g_rel_name.c, g_rel_oid_set.c, g_seal.c, g_sign.c, g_unseal.c, g_verify.c, gssd_pname_to_uid.c, mechglue.h, mglueP.h: Comment out #ident line. This causes the Macintosh C compiler indigestion. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@7685 dc483132-0cff-0310-8789-dd5450dbe970
* Add new .Sanitize fileEzra Peisach1996-03-201-0/+71
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@7674 dc483132-0cff-0310-8789-dd5450dbe970
* Synchronize .Sanitize with current realityEzra Peisach1996-03-203-5/+3
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@7673 dc483132-0cff-0310-8789-dd5450dbe970
* use PROTOTYPE macro in mechglue.hKen Raeburn1996-03-132-2/+7
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@7626 dc483132-0cff-0310-8789-dd5450dbe970
* convert __gss_get_mechanism to k&r style definitionMark Eichin1996-03-121-1/+2
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@7606 dc483132-0cff-0310-8789-dd5450dbe970
* use PROTOTYPE and K&R style definitions, per krb5 styleMark Eichin1996-03-122-9/+11
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@7605 dc483132-0cff-0310-8789-dd5450dbe970
* Fixed mispelling of Doug Engert's nameTheodore Tso1996-03-111-1/+1
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@7604 dc483132-0cff-0310-8789-dd5450dbe970
* Change sizeof(long) to sizeof(krb5_int32)Ezra Peisach1996-03-092-1/+6
| | | | | | Yet another piece of code that was assuming that longs are 32 bits... git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@7602 dc483132-0cff-0310-8789-dd5450dbe970
* * 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