summaryrefslogtreecommitdiffstats
path: root/src/lib/gssapi
Commit message (Collapse)AuthorAgeFilesLines
...
* inq_names.c (krb5_gss_inquire_names_for_mech): Add the the new OIDTheodore Tso1997-07-303-1/+20
| | | | | | | | | | value for the host-based service name and the exported name OID to the list of OID's supported by this mechanism. import_name.c (krb5_gss_import_name): Add support for the new OID value for the host-based service name. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@10141 dc483132-0cff-0310-8789-dd5450dbe970
* * util_ordering.c: Include string.h for prototypesEzra Peisach1997-07-222-0/+5
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@10124 dc483132-0cff-0310-8789-dd5450dbe970
* (krb5_gss_accept_sec_context): Initialize ctx before it is referenced ↵Ezra Peisach1997-07-222-1/+6
| | | | | | without being set in failure cases git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@10123 dc483132-0cff-0310-8789-dd5450dbe970
* Always copy the mechtype so that delete_sec_context() can safelyTheodore Tso1997-07-162-1/+11
| | | | | | release the OID without smashing memory passed in by the application. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@10117 dc483132-0cff-0310-8789-dd5450dbe970
* Added code so that a valid credential handle is generated whenKevin Mitchell1997-06-302-3/+75
| | | | | | credentials are delegated. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@10106 dc483132-0cff-0310-8789-dd5450dbe970
* accept_sec_context.c (krb5_gss_accept_sec_context): Reorganized errorTheodore Tso1997-06-074-172/+220
| | | | | | | | | | | | | | | | handling code to be more compact (and correct!). If an error occurs while we are doing mutual authentication, send an KRB_ERROR message back to the client, so that it knows what is going on. (This is specified by RFC 1964; we just weren't implementing this previously.) delete_sec_context.c (krb5_gss_delete_sec_context): Check to make sure pointers in the context are non-zero before freeing them. init_sec_context.c (krb5_gss_init_sec_context): If the server sends a KRB_ERROR message, decode it and return an appropriate minor status error code. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@10094 dc483132-0cff-0310-8789-dd5450dbe970
* Added V2 functions to the glue layerTheodore Tso1997-04-016-17/+74
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@10041 dc483132-0cff-0310-8789-dd5450dbe970
* Fix really stupid typoTheodore Tso1997-04-011-1/+1
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@10040 dc483132-0cff-0310-8789-dd5450dbe970
* import_name.c (krb5_gss_import_name): Add support for importing theTheodore Tso1997-03-283-6/+64
| | | | | | | | | exported name call export_name.c (gss_export_name): Fix export_name emit the token exactly as specified by RFC 2078. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@10038 dc483132-0cff-0310-8789-dd5450dbe970
* Added definition for the generic gsspi OID type "gss_nt_exported_name"Theodore Tso1997-03-283-0/+11
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@10036 dc483132-0cff-0310-8789-dd5450dbe970
* Makefile.in: Add canon_name.c, duplicate_name.c, export_name.c to theTheodore Tso1997-03-286-0/+213
| | | | | | | | | | | | | | | GSSAPI library. gssapiP_krb5.h (KG_IMPLFLAGS): Add support for GSS_C_PROT_READY_FLAG and GSS_C_TRANS_FLAG canon_name.c (gss_canonicalize_name): New GSSAPI V2 function duplicate_name.c (gss_duplicate_name): New GSSAPI V2 function export_name.c (gss_export_name): New GSSAPI V2 function git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@10031 dc483132-0cff-0310-8789-dd5450dbe970
* Add the GSS_C_PROT_READY_FLAG and GSS_C_TRANS_FLAGTheodore Tso1997-03-282-0/+30
| | | | | | | Add prototypes for the V2 functions gss_export_name(), gss_duplicate_name(), and gss_canonicalize_name(). git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@10030 dc483132-0cff-0310-8789-dd5450dbe970
* A zero-length token should be treated like a GSS_C_NO_BUFFER duringTheodore Tso1997-03-252-2/+8
| | | | | | the initial context establishment. [krb5-libs/352] git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@10026 dc483132-0cff-0310-8789-dd5450dbe970
* Fix typo (remove '#' from '#extern "C"')Theodore Tso1997-03-241-1/+1
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@10021 dc483132-0cff-0310-8789-dd5450dbe970
* Add 'extern "C"' for C++ compatibility; also check for __cplusplusTheodore Tso1997-03-182-1/+15
| | | | | | since some C++ compilers don't set __STDC__ git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@10008 dc483132-0cff-0310-8789-dd5450dbe970
* Fix header file so that winmac.h is #included when commpiling on theTheodore Tso1997-03-172-1/+6
| | | | | | Macintosh. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@10005 dc483132-0cff-0310-8789-dd5450dbe970
* Moved some of the library list file build logic from the individual MakefilesRichard Basch1997-02-234-20/+23
| | | | | | to config/win-post.in git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@9964 dc483132-0cff-0310-8789-dd5450dbe970
* * Make shared libs work on AIXSam Hartman1997-02-222-3/+7
| | | | | | * Fix dependencies for library git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@9952 dc483132-0cff-0310-8789-dd5450dbe970
* Removed unneeded call to krb5_init_etsRichard Basch1997-02-201-1/+0
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@9927 dc483132-0cff-0310-8789-dd5450dbe970
* Replace instances of krb5_xfree..Richard Basch1997-02-192-5/+4
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@9910 dc483132-0cff-0310-8789-dd5450dbe970
* Merge of libhack_branchTom Yu1997-02-099-88/+106
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@9831 dc483132-0cff-0310-8789-dd5450dbe970
* * configure.in: Remove the CopyHeader and CopySrcHeader rules asEzra Peisach1997-02-063-5/+16
| | | | | | | | | | | | | | they are handled in Makefile.in * Makefile.in: Create include/gssapi on unix. Make clean removes built gssapi.h These were broken on the unix side. Make complained about too many rules for building the ../../../include/gssapi/.... files - because they were defined twice. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@9804 dc483132-0cff-0310-8789-dd5450dbe970
* util_crypt.c: Include k5-int.h because we need to access the privateRichard Basch1997-02-062-1/+7
| | | | | | cryptosystem structures of the krb5_encrypt_block structure git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@9798 dc483132-0cff-0310-8789-dd5450dbe970
* gssapi.hin: Make sure KRB5_EXPORTVAR is definedRichard Basch1997-02-062-1/+5
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@9797 dc483132-0cff-0310-8789-dd5450dbe970
* Windows/NT integration (V1_0_WIN32_BRANCH merge)Richard Basch1997-02-0638-271/+263
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@9788 dc483132-0cff-0310-8789-dd5450dbe970
* Merge V1_0_FREEZE_3 into the mainline. (Note this merge does *not*Theodore Tso1996-12-1312-48/+122
| | | | | | include the doc subtree!!) git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@9632 dc483132-0cff-0310-8789-dd5450dbe970
* * acquire_cred.c (acquire_accept_cred): use krb5_kt_get_entryBarry Jaspan1996-12-042-36/+14
| | | | | | | instead of scanning through keytab to find matching principal [krb5-libs/210] git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@9601 dc483132-0cff-0310-8789-dd5450dbe970
* *gssapi.h: Renamed to gssapi.hinTom Yu1996-11-184-19/+25
| | | | | | | | | | | | | | * gssapi.hin: Remove #ifdef USE_AUTOCONF_H; we're grepping symbols directly from autoconf.h now. * configure.in: Change CopySrcHeader to CopyHeader, as gssapi.h is now generated in the build tree. * Makefile.in: Add rules to generate gssapi.h from gssapi.hin, similar to how krb5.h is generated from krb5.hin. Remove -DUSE_AUTOCONF_H from $(CFLAGS) git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@9425 dc483132-0cff-0310-8789-dd5450dbe970
* * Makefile.in (HDRS): Changes so that $(OBJS) will not getTom Yu1996-11-063-8/+10
| | | | | | | | recompiled gratuitously if someone touches the include directory. * configure.in: Revert previous change re: CopySrcHeader. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@9302 dc483132-0cff-0310-8789-dd5450dbe970
* Use $(S) instead of / for productions which could be used on both DOSTheodore Tso1996-10-292-2/+7
| | | | | | and Unix systems. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@9248 dc483132-0cff-0310-8789-dd5450dbe970
* Fixed typo so that the remaining length field is set correctlyTheodore Tso1996-10-212-2/+8
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@9218 dc483132-0cff-0310-8789-dd5450dbe970
* util_ordering.c (g_queue_externalize, g_queue_internalize, g_queue_size):Theodore Tso1996-10-193-0/+46
| | | | | | | New routines which allow the serailizing routines to access the seqstate structure. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@9214 dc483132-0cff-0310-8789-dd5450dbe970
* ser_sctx.c (kg_oid_externalize, kg_oid_internalize,Theodore Tso1996-10-195-12/+183
| | | | | | | | | | | | | | | | | | kg_oid_size): Add a GSSAPI OID magic number to the externalized OID, so that if the OID is skipped, (it is optional), the serialization code can resyncronize if necessary. (kg_queue_internalize, kg_queue_externalize, kg_queue_size): New functions to externalize the gssapi queue. (kg_ctx_size, kg_ctx_exteranlize, kg_ctx_import): Changed to include the mech_used field and to include the auth context. gssapi_krb5.c (kg_get_context): Add calls to correctly initialize the serializers needed by import and export sec context. delete_sec_context.c (krb5_gss_delete_sec_context): Remember to release the mech_used OID if necessary! git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@9213 dc483132-0cff-0310-8789-dd5450dbe970
* *** empty log message ***Marc Horowitz1996-10-161-0/+6
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@9187 dc483132-0cff-0310-8789-dd5450dbe970
* * accept_sec_context.c (krb5_gss_accept_sec_context): return anMarc Horowitz1996-10-161-21/+37
| | | | | | | error if the ticket endtime is in the past. also, cleaned up some error cleanup code. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@9186 dc483132-0cff-0310-8789-dd5450dbe970
* * configure.in: Remove calls to CopySrcHeaderTom Yu1996-10-103-15/+28
| | | | | | | | * Makefile.in: More fixups; punt usage of CopySrcHeader and use explicit dependencies instead, thus avoiding abuse of double-colon rules. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@9160 dc483132-0cff-0310-8789-dd5450dbe970
* Don't let the "timeleft" returned by krb5_gss_acquire_cred be negative!Theodore Tso1996-10-102-1/+6
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@9159 dc483132-0cff-0310-8789-dd5450dbe970
* * Makefile.in (all-unix): Fix up last change; depending on a phonyTom Yu1996-10-092-8/+9
| | | | | | target causes everything all of $(OBJS) to get remade always. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@9156 dc483132-0cff-0310-8789-dd5450dbe970
* * Makefile.in (all-unix): Fix up various rules that haveTom Yu1996-10-092-7/+14
| | | | | | | "includes" as dependencies in order to allow for makes that don't do left-to-right ordering of dependencies. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@9155 dc483132-0cff-0310-8789-dd5450dbe970
* Definition of gss_nt_krb5_name was incorrect; someone was being aTheodore Tso1996-10-092-1/+6
| | | | | | bonehead. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@9154 dc483132-0cff-0310-8789-dd5450dbe970
* remove spurious filesTom Yu1996-09-111-31/+0
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@9079 dc483132-0cff-0310-8789-dd5450dbe970
* utl_nohash_validate.c, util_canonhost.c, util_validate.c: Only includeTheodore Tso1996-08-285-3/+15
| | | | | | | | sys/types.h if present. configure.in: Add check for limits.h and sys/types.h git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@8999 dc483132-0cff-0310-8789-dd5450dbe970
* Fix stupid bug; don't free buf before it's allocated!Theodore Tso1996-08-282-1/+5
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@8998 dc483132-0cff-0310-8789-dd5450dbe970
* * Require DES-CBC-CRC. This works alwaysSam Hartman1996-08-222-1/+6
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@8965 dc483132-0cff-0310-8789-dd5450dbe970
* * acquire_cred.c (krb5_gss_acquire_cred): Add const to localEzra Peisach1996-08-022-1/+7
| | | | | | variable which is pointing to const data. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@8896 dc483132-0cff-0310-8789-dd5450dbe970
* * gssapiP_generic.h: If not on a Mac or under Dos, and stdlib.hEzra Peisach1996-08-023-0/+13
| | | | | | | | | | | | | | exists, include it. * configure.in: Check for stdlib.h This cleans up many warnings on the Alpha as malloc is not previously declared. In Beta-6, gssapiP_generic.h always included k5-int.h (which included stdlib.h). Now, only the DOS and Mac platforms include k5-int.h so we need to include stdlib.h if present. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@8895 dc483132-0cff-0310-8789-dd5450dbe970
* * Makefile.in (OBJS): Remove trailing backslash on a comment; itTom Yu1996-07-262-1/+6
| | | | | | was keeping HDRS from getting set. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@8846 dc483132-0cff-0310-8789-dd5450dbe970
* Add AC_PROG_INSTALL, since it's needed for a "make install"Theodore Tso1996-07-262-0/+6
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@8830 dc483132-0cff-0310-8789-dd5450dbe970
* restore old version (oops checked in debugging versTom Yu1996-07-261-3/+0
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@8827 dc483132-0cff-0310-8789-dd5450dbe970
* * Makefile.in: remove trailing backslash from comment under SRCSTom Yu1996-07-263-1/+10
| | | | | | because it was causing line that set OBJS variable to git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@8826 dc483132-0cff-0310-8789-dd5450dbe970