summaryrefslogtreecommitdiffstats
path: root/src/lib
Commit message (Collapse)AuthorAgeFilesLines
...
* Makefile.in: Remove msvcrt.lib from the explicit WINLIBS link lineTheodore Tso1997-07-305-3/+17
| | | | | | | | | | | since we're now using /MD and have removed the /nodefaultlibs switch. For now, build debug versions of the libraries. krb5_16.def, krb5_32.def, sapkrb16.def: Add decode_krb5_ap_req to the exported functions list, since the GSSAPI krb5 mechanism routine needs access to this internal routine. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@10143 dc483132-0cff-0310-8789-dd5450dbe970
* Add support for the new OID value for host-based service nameTheodore Tso1997-07-303-0/+11
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@10142 dc483132-0cff-0310-8789-dd5450dbe970
* 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
* * kdb_db2.c (krb5_db2_db_set_hashfirst): Don't cast aTom Yu1997-07-292-1/+6
| | | | | | krb5_context * to a krb5_db2_context *. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@10140 dc483132-0cff-0310-8789-dd5450dbe970
* * kdb_db2.c: Fix typo; also, tweak page size in attempt to speedTom Yu1997-07-263-5/+8
| | | | | | | | things up. * kdb_db2.h: Fix typo. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@10137 dc483132-0cff-0310-8789-dd5450dbe970
* * Makefile.in: Remove test-randkey since it was breaking theTom Yu1997-07-252-1/+7
| | | | | | | server-side tests; api.2/getprinc-v2.exp wants *two* keys, while randkey results in only one. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@10132 dc483132-0cff-0310-8789-dd5450dbe970
* * server_init.c: Change a few calls to align with the new kdbTom Yu1997-07-253-3/+10
| | | | | | | | API. * Makefile.in: Bump version. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@10131 dc483132-0cff-0310-8789-dd5450dbe970
* * t_kdb.c: Reflect changes in the API, mostly db_createTom Yu1997-07-257-60/+1545
| | | | | | | | | | | | | | * Makefile.in: Bump version due to major reworking. * kdb_db2.h: * kdb_db2.c: Add Berkely DB backend. * keytab.c: Add support for new kdb API; delete dead arguments. * kdb_xdr.c: Remove dependencies on dbm; encode things to krb5_datas rather than datums. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@10130 dc483132-0cff-0310-8789-dd5450dbe970
* * t_ser.c: Add support for changed kdb APITom Yu1997-07-252-2/+7
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@10129 dc483132-0cff-0310-8789-dd5450dbe970
* * kdb5_err.et: Add error code for bad creation flagsTom Yu1997-07-252-0/+5
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@10128 dc483132-0cff-0310-8789-dd5450dbe970
* * Makefile.in: Bump version due to et changesTom Yu1997-07-252-1/+5
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@10127 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
* Fix stupid #ifdef logic errorTheodore Tso1997-07-171-1/+1
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@10121 dc483132-0cff-0310-8789-dd5450dbe970
* Only copy over the old table when there's an old table to copy over.Theodore Tso1997-07-162-2/+9
| | | | | | Otherwise, BoundsChecker complains about memcpy(foo, NULL, 0). git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@10118 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 Winsock kludge for finding your local IP address. May not workTheodore Tso1997-07-042-6/+65
| | | | | | for all stacks, so we use it as a fallback. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@10114 dc483132-0cff-0310-8789-dd5450dbe970
* Fix goof in ChangeLogTom Yu1997-07-011-0/+1
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@10110 dc483132-0cff-0310-8789-dd5450dbe970
* * client_principal.c, client_rpc.c: Add support for setv4keyTom Yu1997-07-013-0/+40
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@10109 dc483132-0cff-0310-8789-dd5450dbe970
* * server_acl.h: Fix ACL_ALL_MASK to include ACL_SETKEYTom Yu1997-07-013-2/+9
| | | | | | * svr_principal.c: Fix setv4key_principal. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@10108 dc483132-0cff-0310-8789-dd5450dbe970
* * kadm_rpc.h, kadm_rpc_xdr.c: Add support for setv4keyTom Yu1997-07-013-1/+33
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@10107 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
* * svr_principal.c: Add new function kadm5_setv4key_principalTom Yu1997-06-292-0/+134
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@10104 dc483132-0cff-0310-8789-dd5450dbe970
* * kadm_err.et: Add support for kadm5_setv4key_principalTom Yu1997-06-293-0/+11
| | | | | | * admin.h: Add prototype for kadm5_setv4key_principal. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@10103 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
* * admin.h: add prototype for kadm5_setkey_principalBarry Jaspan1997-05-283-1/+29
| | | | | | * misc_free.c (kadm5_free_key_data): add kadm5_free_data git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@10089 dc483132-0cff-0310-8789-dd5450dbe970
* * setkey-test.c, configure.in: add rules to test for correctBarry Jaspan1997-05-053-2/+24
| | | | | | random()-equivlant function git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@10085 dc483132-0cff-0310-8789-dd5450dbe970
* Write special case hack for the SAP kerberos libraries since we can'tTheodore Tso1997-05-025-21/+323
| | | | | | | make the version server code correctly read out the version resource from SAPGUI.EXE for some reason.... git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@10082 dc483132-0cff-0310-8789-dd5450dbe970
* win_glue.c: Add code to get the version resource from the callingTheodore Tso1997-04-293-10/+159
| | | | | | application and use that to call the Version server. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@10078 dc483132-0cff-0310-8789-dd5450dbe970
* add kadm5_setkey_principalBarry Jaspan1997-04-2314-0/+456
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@10072 dc483132-0cff-0310-8789-dd5450dbe970
* * realmofhost.c (krb_realmofhost): Add bounds checking to variousTom Yu1997-04-104-9/+30
| | | | | | | | | | things. * g_krbhst.c (krb_get_krbhst): Fix to bound fscanf and sscanf. * g_krbrlm.c (krb_get_lrealm): Fix to bound fscanf. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@10066 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
* Added the V2 calls gss_canonicalize_name(), gss_export_name(),Theodore Tso1997-03-283-4/+13
| | | | | | gss_duplicate_name() to the list of calls exported by the DLL. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@10034 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
* rcache owner should be checked against the effective uid, not the realTheodore Tso1997-03-252-1/+6
| | | | | | uid. [krb5-libs/366] git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@10027 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 handling of the sam-timestamp and sam-usec fields, which shouldTheodore Tso1997-03-252-10/+15
| | | | | | | always be set if the nonce is not available, not just SAM_USE_SAD_AS_KEY is being used. [krb5-libs/325] git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@10025 dc483132-0cff-0310-8789-dd5450dbe970
* t_ser.c: Clean up error reporting for krb5_init_context(). AlsoTheodore Tso1997-03-242-31/+80
| | | | | | report errors for each subtest, so we know which subtest failed. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@10023 dc483132-0cff-0310-8789-dd5450dbe970
* t_kdb.c (do_testing): Clean up error handling for krb5_init_contextTheodore Tso1997-03-243-8/+13
| | | | | | | Makefile.in (check): Define and use KRB5_CONFIG_SETUP which sets up the environment variables appropriately. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@10022 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
* Fix up name of the SAP Kerberos glue library to be platform dependentTheodore Tso1997-03-193-75/+14
| | | | | | | (sapkrb16.dll, sapkrb32.dll). Fix makefile rules to work correctly after NT port. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@10010 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
* * keytab.c: Don't assume dbm_db_get_mkey() and dbe_find_enctypeTom Yu1997-03-172-14/+29
| | | | | | | won't error out. Also, some gcc -Wall warning cleanups. [krb5-kdc/361] git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@10004 dc483132-0cff-0310-8789-dd5450dbe970
* * Makefile.in (unit-test-server-body): depend on test-randkey, notBarry Jaspan1997-03-122-1/+6
| | | | | | randkey-test, so the test gets run git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@10002 dc483132-0cff-0310-8789-dd5450dbe970
* * svr_principal.c (add_to_history): Don't call realloc() on a NULLTom Yu1997-03-092-3/+13
| | | | | | pointer, lest non-ANSI compliant systems like SunOS fail. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@9998 dc483132-0cff-0310-8789-dd5450dbe970