summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
* Added a call to signal() in request_hup() so that the signal handlerGeoffrey King1998-07-112-0/+12
| | | | | | | gets reset after each SIGHUP, since this does not happen automatically in System V's signal handling system. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@10631 dc483132-0cff-0310-8789-dd5450dbe970
* * kadm_server.c (kadm_ser_cpw): Re-enable "old-style" passwordTom Yu1998-07-102-26/+46
| | | | | | | | changing. Yes, it's potentially a problem due to lack of quality checking, but we'll live with that because we can use key-hash-based checks too. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@10630 dc483132-0cff-0310-8789-dd5450dbe970
* Thu Jul 9 19:35:01 1998 Matthew D Hancher <mdh@mit.edu>Matthew Hancher1998-07-092-20/+113
| | | | | | | | | | | * tf_util.c (tf_init): Fixed a potential race condition in the opening of v4 ticket files. tf_init() was calling lstat() followed by fopen(). Now it calls fopen() and then calls lstat() and fstat() to check file ownership and to check that it opened the file it thought it did. I patched the shared memory code similarly, but since nothing uses it I don't have a good way to test it properly. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@10629 dc483132-0cff-0310-8789-dd5450dbe970
* Perl versions of the conversion utilitiesTheodore Tso1998-07-092-0/+535
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@10628 dc483132-0cff-0310-8789-dd5450dbe970
* These additions cause the KDC to react to SIGHUP by closing andGeoffrey King1998-07-089-1/+100
| | | | | | | | reopening its log files, so that logfile management utilities may now compress old logs and then kill -HUP the KDC process to get them to use fresh log files. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@10627 dc483132-0cff-0310-8789-dd5450dbe970
* Third time's the charm.... *sigh* (ya irix6.3/gcc fix)Matthew Hancher1998-07-081-9/+9
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@10626 dc483132-0cff-0310-8789-dd5450dbe970
* kadm_ser_wrap.c (kadm_ser_init): Use krb5_425_conv_principal insteadTheodore Tso1998-07-082-6/+9
| | | | | | of krb5_build_principal to create the changepw sprinc principal. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@10625 dc483132-0cff-0310-8789-dd5450dbe970
* Wed Jul 8 01:10:44 1998 Matthew D Hancher <mdh@mit.edu>Matthew Hancher1998-07-082-2/+22
| | | | | | | | * aclocal.m4: Allow shared libraries to build properly under Irix 6.x with gcc. (This is actually a fix of a previous fix that didn't make it into ChangeLog.) git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@10624 dc483132-0cff-0310-8789-dd5450dbe970
* conv_princ.c: Add additional commonly seen Kerberos V4 services to theTheodore Tso1998-07-072-0/+17
| | | | | | hard-coded list. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@10623 dc483132-0cff-0310-8789-dd5450dbe970
* * chk_trans.c: Fix up previous fix; short-circuit out whenTom Yu1998-07-072-2/+8
| | | | | | trans->length == 0. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@10622 dc483132-0cff-0310-8789-dd5450dbe970
* Makefile.in (build_pwfile): Add rule to build the build_pwfile programTheodore Tso1998-07-035-50/+200
| | | | | | | | | | | | kadm_server.c (kadm_ser_cpw): Put the call to the kadm_approve_pw in the common code, so it's executed even if KADM5 is defined. Add appropriate syslogs to the change password processing. kadm_funcs.c (pwstring;): If NDBM_PW_CHECK is defined, then do the NDBM-based dictionary check. Build kadmind4 using the make option PW_CHECK=-DNDBM_PW_CHECK if this feature is desired. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@10621 dc483132-0cff-0310-8789-dd5450dbe970
* Update commands to build the Macintosh MPW MakefileTheodore Tso1998-07-032-3/+8
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@10620 dc483132-0cff-0310-8789-dd5450dbe970
* asn1_encode.c: Make the magic Macintosh EPOCH offset be 70 yearsTheodore Tso1998-07-022-1/+7
| | | | | | | instead of 66 years, since CodeWarrior Pro 2 now bases everything off of 1900. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@10619 dc483132-0cff-0310-8789-dd5450dbe970
* k5unseal.c (kg_unseal): Clean up lint warningsTheodore Tso1998-07-026-29/+66
| | | | | | | | | | | | | | | accept_sec_context.c (krb5_gss_accept_sec_context): Don't return an error token if we can't provide the server name to the KRB5 error structure (because cred isn't initialized). gssapi_krb5.c, gssapi_krb5.h: Export the oid of static arrays as krb5_gss_oid_array since it's needed by gss_import_sec_context. import_sec_context.c: Fix up the OID of the mechanism in the imported security context so that we use the static OID if at all possible. This is needed since gss_inquire_context() must return a static OID. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@10618 dc483132-0cff-0310-8789-dd5450dbe970
* com_err.c (MacMessageBox): Change TextBox to TETextBox to match upTheodore Tso1998-07-022-1/+6
| | | | | | with CodeWarrior changes. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@10617 dc483132-0cff-0310-8789-dd5450dbe970
* oid_ops.c (generic_gss_release_oid): Recognize our own (new) "self"Theodore Tso1998-07-022-1/+9
| | | | | | | oids so that we don't free static oid's. (exported_name and nt_service_name_v2). git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@10616 dc483132-0cff-0310-8789-dd5450dbe970
* Update ReadMe file so it's a little bit more accurate...Theodore Tso1998-07-021-5/+4
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@10615 dc483132-0cff-0310-8789-dd5450dbe970
* Remove unneded Includes lineTheodore Tso1998-07-021-1/+0
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@10614 dc483132-0cff-0310-8789-dd5450dbe970
* Update Macintosh changes to ChangeLog which Marshall made on 1/13/98Theodore Tso1998-07-021-0/+8
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@10613 dc483132-0cff-0310-8789-dd5450dbe970
* Update Macintosh changes to ChangeLogTheodore Tso1998-07-021-0/+14
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@10612 dc483132-0cff-0310-8789-dd5450dbe970
* Add new GSSAPI functionsTheodore Tso1998-07-023-6/+80
| | | | | | Also comment out __terminate and __initialize functions. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@10611 dc483132-0cff-0310-8789-dd5450dbe970
* Update Mac resource file to say 1.0.4b1Theodore Tso1998-07-022-3/+7
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@10610 dc483132-0cff-0310-8789-dd5450dbe970
* KerberosHeaders.h: Removed #endif with no matching initial #ifTheodore Tso1998-07-012-2/+5
| | | | | | statement. (How did this compile before?) git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@10609 dc483132-0cff-0310-8789-dd5450dbe970
* win-mac.h: Make size_t to be an unsigned long instead of unsigned intTheodore Tso1998-07-012-1/+6
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@10608 dc483132-0cff-0310-8789-dd5450dbe970
* chk_trans.c (krb5_check_transited_list): Fix use of an uninitalizedTheodore Tso1998-07-012-2/+7
| | | | | | | variable; apparently the code was depending on the stack garbage being non-zero(!) git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@10607 dc483132-0cff-0310-8789-dd5450dbe970
* Fix obvious bug where we were returning a pointer to an automaticTheodore Tso1998-07-012-1/+8
| | | | | | | variable which should have been a static. Fortunately nothing in the Mac tree was using inet_ntoa().... git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@10606 dc483132-0cff-0310-8789-dd5450dbe970
* Committed sarac's changes which make the mpw dependencies more saneTheodore Tso1998-07-012-73/+254
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@10605 dc483132-0cff-0310-8789-dd5450dbe970
* * mk_priv.c (krb_mk_priv): Fix up call to pcbc_encrypt(). ByTom Yu1998-06-242-1/+18
| | | | | | | | | | | | | | | | | | taking the address of key, the 5th arg to pcbc_encrypt() was actually a (char **) cast to a (C_Block *). The reason for this is that a C_Block (actually a des_cblock) is typedef'ed from a char[8], which by being in the parameters of the definition of krb_mk_priv() becomes of type (char *). This means that using the address operator on key resulted in a pointer to a pointer to a char rather than a pointer to a des_cblock, which would have been innocuous in this case because pcbc_encrypt() actually takes a (des_cblock *) as the 5th (ivec) argument. The moral is to never pass around naked arrays as function arguments; instead, pass around pointers to arrays to avoid spontaneous conversions to pointers sneaking up. Note that CNS actually uses a (C_Block *) everywhere, and maybe we should as well. *whew* git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@10603 dc483132-0cff-0310-8789-dd5450dbe970
* Tue Jun 23 06:28:51 1998 Matthew D Hancher <mdh@mit.edu>Matthew Hancher1998-06-231-1/+6
| | | | | | | * aclocal.m4: added a kluge to get shared libraries to build with gcc under Irix 6.3 git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@10602 dc483132-0cff-0310-8789-dd5450dbe970
* * cnv_tkt_skey.c (krb524_convert_tkt_skey): Handle null addressTom Yu1998-06-173-23/+26
| | | | | | | | | fields; actually use saddr (the address from the UDP header) to generate the ticket address rather than just checking against it. * conv_creds.c (krb524_convert_creds_plain): Punt address checks. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@10601 dc483132-0cff-0310-8789-dd5450dbe970
* Don't depend on $(RM) macro being defined when building kerbsrc-nt.zipTheodore Tso1998-05-272-4/+7
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@10600 dc483132-0cff-0310-8789-dd5450dbe970
* Folded in enhancements from Cygnus's Kerbnet-1.2 (plus our changesTheodore Tso1998-05-2713-607/+678
| | | | | | | made since Cygnus's last snapshot). See ChangeLog from Cygnus (included in the ChangeLog file) for more details. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@10598 dc483132-0cff-0310-8789-dd5450dbe970
* Makefile.in: Add ccache/memory as a directory to be recursively builtTheodore Tso1998-05-272-3/+17
| | | | | | by this makefile under Windows. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@10597 dc483132-0cff-0310-8789-dd5450dbe970
* Makefile.in: Update Makefile so that it can be built under WindowsTheodore Tso1998-05-272-2/+12
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@10596 dc483132-0cff-0310-8789-dd5450dbe970
* mkbin.bat: Added convenience batch file which copies all of theTheodore Tso1998-05-273-2/+25
| | | | | | | | | appropriate files out of the build tree into a single kbin directory Makefile.in: Add the windows/lib directory to the list of directories to be built (and cleaned). git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@10595 dc483132-0cff-0310-8789-dd5450dbe970
* logwtmp.c: Include paths.h if present, and use _PATH_WTMP to determineTheodore Tso1998-05-272-1/+14
| | | | | | WTMPFILE. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@10594 dc483132-0cff-0310-8789-dd5450dbe970
* configure.in: Add check for paths.hTheodore Tso1998-05-272-1/+5
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@10593 dc483132-0cff-0310-8789-dd5450dbe970
* sys_term.c: #include utmp.h if present, and use _PATH_WTMP andTheodore Tso1998-05-273-2/+23
| | | | | | | | | _PATH_UTMP if defined to determine location of the wtmp and utmp files. configure.in: Add check for utmp.h git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@10592 dc483132-0cff-0310-8789-dd5450dbe970
* windows.in: Remove -DLEHMAN, which doesn't do anything. (A grepTheodore Tso1998-05-272-1/+7
| | | | | | through the whole source tree shows no instances of #ifdef LEHMAN) git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@10591 dc483132-0cff-0310-8789-dd5450dbe970
* srv_rcache.c (krb5_get_server_rcache):Theodore Tso1998-05-273-2/+8
| | | | | | auth_con.c (krb5_auth_con_setrcache): Export this function in Windows DLL. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@10590 dc483132-0cff-0310-8789-dd5450dbe970
* Check in files from Kerbnet-1.2 release. This is an auxiliary libraryTheodore Tso1998-05-278-0/+972
| | | | | | used by some of the windows programs. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@10589 dc483132-0cff-0310-8789-dd5450dbe970
* Makefile.in: include krb5/ccache/memory and windows/lib in the list ofTheodore Tso1998-05-273-7/+39
| | | | | | | | | | | | directories built by the Windows build. When building kerbsrc-nt.zip, put a copy of mkbin.bat in the top-level build directory. Fix bug in kerbsrc-nt.zip building where it wasn't creating the initial Makefile (although the dos-zipfiles target did the right thing). aclocal.m4 (KRB5_LIB_PARAMS): Remove "untested" comment from freebsd. Add section for openbsd. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@10588 dc483132-0cff-0310-8789-dd5450dbe970
* krb5.hin: Declare krb5_auth_con_setrcache and krb5_get_server_rcacheTheodore Tso1998-05-272-2/+7
| | | | | | to be exported by the DLL. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@10587 dc483132-0cff-0310-8789-dd5450dbe970
* login.c (dolastlog): BSD 4.4 systems don't have lastlog.h, but stillTheodore Tso1998-05-275-8/+55
| | | | | | | | | | | | | | | | | | define struct lastlog somewhere. Included from Dima Ruban's FreeBSD patches. krlogin.c: Include sys/ioctl_compat.h if it is present (instead of just for 386BSD). loginpaths.h (LPATH): If the OS provides _PATH_DEFPATH, use it to define LPATH and RPATH. login.c: #include paths.h if present, and use it to set the pathnames for certain common files. configure.in (withval): Check for <sys/ioctl_compat.h> and <paths.h> git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@10586 dc483132-0cff-0310-8789-dd5450dbe970
* krb5_32.def: Change the DLL export list to includeTheodore Tso1998-05-272-5/+31
| | | | | | | | | krb5_auth_con_setrcache, krb5_get_server_rcache, krb5_cc_default_name, krb5_change_password, krb5_mcc_ops, and all of the Cygnus krb5_get_init_creds functions. Remove the old libkadm functions, as they are no longer available. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@10585 dc483132-0cff-0310-8789-dd5450dbe970
* * configure.in: Re-order check for setupterm to avoid lossage ifTom Yu1998-05-262-1/+6
| | | | | | setupterm is defined in libtermcap or libcurses. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@10584 dc483132-0cff-0310-8789-dd5450dbe970
* Makefile.in (CLEANLIBS): Remove lib/kadm from the list of directoriesTheodore Tso1998-05-252-9/+7
| | | | | | built in the windows build. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@10583 dc483132-0cff-0310-8789-dd5450dbe970
* Makefile.in: Remove lib/kadm and lib/krb5/free from the list ofTheodore Tso1998-05-252-8/+8
| | | | | | directories supported by windows (since they have since gone away). git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@10582 dc483132-0cff-0310-8789-dd5450dbe970
* aclocal.m4: Added suggested changes to improve HP-UX's support forTheodore Tso1998-05-252-3/+18
| | | | | | shared libraries. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@10581 dc483132-0cff-0310-8789-dd5450dbe970
* util_buffer.c (g_make_string_buffer): Don't include the trailingTheodore Tso1998-05-252-2/+7
| | | | | | NULL of the string in the gss buffer's length. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@10580 dc483132-0cff-0310-8789-dd5450dbe970