krb5.git
25 years agolook up local hostname instead of using 'localhost'; pass RUNTESTFLAGS
Ken Raeburn [Wed, 1 Sep 1999 21:46:13 +0000 (21:46 +0000)]
look up local hostname instead of using 'localhost'; pass RUNTESTFLAGS

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@11774 dc483132-0cff-0310-8789-dd5450dbe970

25 years agodisable krb5-mech2 for now; from 1.1 branch
Ken Raeburn [Wed, 1 Sep 1999 21:41:50 +0000 (21:41 +0000)]
disable krb5-mech2 for now; from 1.1 branch

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@11773 dc483132-0cff-0310-8789-dd5450dbe970

25 years agoFrom 1.1 branch:
Ken Raeburn [Wed, 1 Sep 1999 21:15:34 +0000 (21:15 +0000)]
From 1.1 branch:

1999-09-01  Danilo Almeida  <dalmeida@mit.edu>
* klist.c (do_ccache, show_credential): Use krb5_free_unparsed_name
instead of free.

1999-08-26  Danilo Almeida  <dalmeida@mit.edu>
* klist.c (show_credential): Index addresses array with i
in a loop instead of 1.  (Thanks to jaltman@columbia.edu)

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@11772 dc483132-0cff-0310-8789-dd5450dbe970

25 years agofix uninit var; make compile on sunos4. from 1.1 branch
Ken Raeburn [Wed, 1 Sep 1999 21:14:38 +0000 (21:14 +0000)]
fix uninit var; make compile on sunos4. from 1.1 branch

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@11771 dc483132-0cff-0310-8789-dd5450dbe970

25 years agoDanilo's SendMessage->PostMessage change from 1.1 branch
Ken Raeburn [Wed, 1 Sep 1999 21:14:01 +0000 (21:14 +0000)]
Danilo's SendMessage->PostMessage change from 1.1 branch

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@11770 dc483132-0cff-0310-8789-dd5450dbe970

25 years ago1.1 updates; mostly des3 doc and y2k fixes
Ken Raeburn [Wed, 1 Sep 1999 21:12:54 +0000 (21:12 +0000)]
1.1 updates; mostly des3 doc and y2k fixes

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@11769 dc483132-0cff-0310-8789-dd5450dbe970

25 years agoimplement KRB5_TC_SUPPORTED_KTYPES and common _retrieve methods; from 1.1 branch
Ken Raeburn [Wed, 1 Sep 1999 21:12:02 +0000 (21:12 +0000)]
implement KRB5_TC_SUPPORTED_KTYPES and common _retrieve methods; from 1.1 branch

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@11768 dc483132-0cff-0310-8789-dd5450dbe970

25 years agonew error code for multi-cryptosystem support, from 1.1 branch
Ken Raeburn [Wed, 1 Sep 1999 21:10:02 +0000 (21:10 +0000)]
new error code for multi-cryptosystem support, from 1.1 branch

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@11767 dc483132-0cff-0310-8789-dd5450dbe970

25 years agoDanilo's const_profile_filespec_t and other changes from 1.1 branch
Ken Raeburn [Wed, 1 Sep 1999 21:09:09 +0000 (21:09 +0000)]
Danilo's const_profile_filespec_t and other changes from 1.1 branch

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@11766 dc483132-0cff-0310-8789-dd5450dbe970

25 years agodes3 testing. move out principal expiration time in test db by 30 years
Ken Raeburn [Wed, 1 Sep 1999 21:06:55 +0000 (21:06 +0000)]
des3 testing.  move out principal expiration time in test db by 30 years

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@11765 dc483132-0cff-0310-8789-dd5450dbe970

25 years agoFrom 1.1 branch.
Ken Raeburn [Wed, 1 Sep 1999 20:59:34 +0000 (20:59 +0000)]
From 1.1 branch.
Indented krb5_cc macros for readability, plus:

1999-08-31  Jeffrey Altman <jaltman@columbia.edu>

    * k5-int.h:  Add #define ANSI_STDIO for Windows builds so that
                 stdio opens files in binary mode instead of text
                 mode.  This is necessary for Ctrl-Z transparency.

1999-08-30  Ken Raeburn  <raeburn@mit.edu>

* configure.in: Check for memmove and bcopy.

* Makefile.in (install): Install profile.h since krb5.h will use
it.

1999-08-26  Danilo Almeida  <dalmeida@mit.edu>

* krb5.hin (krb5_kuserok): Fix calling convention to make it
consistent with rest of krb5 exports before we start exporting
this from the Windows DLL.

1999-08-25  Danilo Almeida  <dalmeida@mit.edu>

* k5-int.h (krb5_cc_retrieve_cred_default): Fix calling convention
to make it consistent with actual calling convention.

1999-08-23  Ken Raeburn  <raeburn@mit.edu>

* krb5.hin (KRB5_TC_SUPPORTED_KTYPES): New flag.
* k5-int.h (krb5_cc_retrieve_cred_default): Declare.

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@11764 dc483132-0cff-0310-8789-dd5450dbe970

25 years agoTom's cryptosystem alias entries from 1.1 branch
Ken Raeburn [Wed, 1 Sep 1999 20:44:39 +0000 (20:44 +0000)]
Tom's cryptosystem alias entries from 1.1 branch

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@11763 dc483132-0cff-0310-8789-dd5450dbe970

25 years agomemmove/bcopy fix from 1.1 branch
Ken Raeburn [Wed, 1 Sep 1999 19:58:29 +0000 (19:58 +0000)]
memmove/bcopy fix from 1.1 branch

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@11762 dc483132-0cff-0310-8789-dd5450dbe970

25 years agoforce single-des session keys until we've got multiple-cryptosystem stuff working...
Ken Raeburn [Wed, 1 Sep 1999 19:57:12 +0000 (19:57 +0000)]
force single-des session keys until we've got multiple-cryptosystem stuff working better

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@11761 dc483132-0cff-0310-8789-dd5450dbe970

25 years agoDisable outdated test suite. Update an expiration date that has already passed
Ken Raeburn [Wed, 1 Sep 1999 19:55:45 +0000 (19:55 +0000)]
Disable outdated test suite.  Update an expiration date that has already passed
in the test code, putting it into the future again.

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@11760 dc483132-0cff-0310-8789-dd5450dbe970

25 years agoy2k fix from 1.1 branch
Ken Raeburn [Wed, 1 Sep 1999 19:54:26 +0000 (19:54 +0000)]
y2k fix from 1.1 branch

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@11759 dc483132-0cff-0310-8789-dd5450dbe970

25 years agorhapsody and 'make -k' fixes from 1.1 branch
Ken Raeburn [Wed, 1 Sep 1999 19:53:45 +0000 (19:53 +0000)]
rhapsody and 'make -k' fixes from 1.1 branch

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@11758 dc483132-0cff-0310-8789-dd5450dbe970

25 years agoUpdated the glue to the most recent list of functions (as per .h files)
Miro Jurisic [Tue, 31 Aug 1999 21:30:55 +0000 (21:30 +0000)]
Updated the glue to the most recent list of functions (as per .h files)

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@11741 dc483132-0cff-0310-8789-dd5450dbe970

25 years agoRemoved *_nt_* variables from the export list
Miro Jurisic [Tue, 31 Aug 1999 21:30:10 +0000 (21:30 +0000)]
Removed *_nt_* variables from the export list

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@11740 dc483132-0cff-0310-8789-dd5450dbe970

25 years agoDisabled echoing by default
Miro Jurisic [Tue, 31 Aug 1999 21:29:03 +0000 (21:29 +0000)]
Disabled echoing by default

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@11739 dc483132-0cff-0310-8789-dd5450dbe970

25 years ago * Makefile.in (kshd): Remove $(LOGINLIBS) from kshd dependencies
Tom Yu [Tue, 24 Aug 1999 19:55:09 +0000 (19:55 +0000)]
* Makefile.in (kshd): Remove $(LOGINLIBS) from kshd dependencies

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@11710 dc483132-0cff-0310-8789-dd5450dbe970

25 years agoUse multiple addresses, if present, on Mac and Windows
Danilo Almeida [Sat, 21 Aug 1999 15:12:50 +0000 (15:12 +0000)]
Use multiple addresses, if present, on Mac and Windows

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@11701 dc483132-0cff-0310-8789-dd5450dbe970

25 years agoFixed missing include gssapi.h
Miro Jurisic [Fri, 20 Aug 1999 19:32:15 +0000 (19:32 +0000)]
Fixed missing include gssapi.h

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@11699 dc483132-0cff-0310-8789-dd5450dbe970

25 years agoadded ccache cleanup to CFM termination procs
Miro Jurisic [Fri, 20 Aug 1999 19:07:24 +0000 (19:07 +0000)]
added ccache cleanup to CFM termination procs

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@11698 dc483132-0cff-0310-8789-dd5450dbe970

25 years agoAdded ccache cleanup to CFm termination procs
Miro Jurisic [Fri, 20 Aug 1999 19:06:44 +0000 (19:06 +0000)]
Added ccache cleanup to CFm termination procs

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@11697 dc483132-0cff-0310-8789-dd5450dbe970

25 years ago2.5a3 became 2.5b1, fixed version numbers
Miro Jurisic [Fri, 20 Aug 1999 19:02:04 +0000 (19:02 +0000)]
2.5a3 became 2.5b1, fixed version numbers

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@11696 dc483132-0cff-0310-8789-dd5450dbe970

25 years agoUpdated for 2.5b1
Miro Jurisic [Fri, 20 Aug 1999 19:01:18 +0000 (19:01 +0000)]
Updated for 2.5b1

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@11695 dc483132-0cff-0310-8789-dd5450dbe970

25 years ago * krb524d.c (do_connection): Convert to using new symbol for
Tom Yu [Thu, 19 Aug 1999 00:25:21 +0000 (00:25 +0000)]
* krb524d.c (do_connection): Convert to using new symbol for
DES3.

* cnv_tkt_skey.c (krb524_convert_tkt_skey): Convert to using new
symbol for DES3.

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@11686 dc483132-0cff-0310-8789-dd5450dbe970

25 years ago * kerberos_v4.c (compat_decrypt_key): Align DES3 enctypes with
Tom Yu [Wed, 18 Aug 1999 23:43:04 +0000 (23:43 +0000)]
* kerberos_v4.c (compat_decrypt_key): Align DES3 enctypes with
current names.
(kerb_get_principal): Align DES3 enctypes with current names.

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@11685 dc483132-0cff-0310-8789-dd5450dbe970

25 years ago * etypes.c: Update des3-cbc-sha1 to alignt with new number
Tom Yu [Wed, 18 Aug 1999 23:41:58 +0000 (23:41 +0000)]
* etypes.c: Update des3-cbc-sha1 to alignt with new number
assignments.

* cksumtypes.c: Update hmac-sha1-des3 to align with new number
assignments.

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@11684 dc483132-0cff-0310-8789-dd5450dbe970

25 years ago * krb5.hin: Re-align des3-cbc-sha1 and hmac-sha1-des3 to agree
Tom Yu [Wed, 18 Aug 1999 23:40:48 +0000 (23:40 +0000)]
* krb5.hin: Re-align des3-cbc-sha1 and hmac-sha1-des3 to agree
with new number assignments; also rename symbols a little bit.

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@11683 dc483132-0cff-0310-8789-dd5450dbe970

25 years agoRemoved com_err functions from profile.exp
Miro Jurisic [Wed, 18 Aug 1999 19:53:14 +0000 (19:53 +0000)]
Removed com_err functions from profile.exp

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@11681 dc483132-0cff-0310-8789-dd5450dbe970

25 years agoAdded et.exp
Miro Jurisic [Wed, 18 Aug 1999 19:34:42 +0000 (19:34 +0000)]
Added et.exp

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@11680 dc483132-0cff-0310-8789-dd5450dbe970

25 years agoRemoved com_err exports
Miro Jurisic [Wed, 18 Aug 1999 19:32:47 +0000 (19:32 +0000)]
Removed com_err exports

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@11679 dc483132-0cff-0310-8789-dd5450dbe970

25 years agoAdded com_err library
Miro Jurisic [Wed, 18 Aug 1999 19:31:31 +0000 (19:31 +0000)]
Added com_err library

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@11678 dc483132-0cff-0310-8789-dd5450dbe970

25 years agoAdded com_err file lists
Miro Jurisic [Wed, 18 Aug 1999 19:31:20 +0000 (19:31 +0000)]
Added com_err file lists

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@11677 dc483132-0cff-0310-8789-dd5450dbe970

25 years ago* ktutil_funcs.c (ktutil_add): Cleanup newly allocated keytab
Geoffrey King [Wed, 18 Aug 1999 00:38:13 +0000 (00:38 +0000)]
* ktutil_funcs.c (ktutil_add): Cleanup newly allocated keytab
entry and tail of linked list when an error occurs.

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@11676 dc483132-0cff-0310-8789-dd5450dbe970

25 years ago * mkrel (reldate): Fix to deal with release branch snapshots
Tom Yu [Tue, 17 Aug 1999 02:09:49 +0000 (02:09 +0000)]
* mkrel (reldate): Fix to deal with release branch snapshots

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@11666 dc483132-0cff-0310-8789-dd5450dbe970

25 years agoUpdated for 2.5a2
Miro Jurisic [Mon, 16 Aug 1999 18:09:56 +0000 (18:09 +0000)]
Updated for 2.5a2

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@11665 dc483132-0cff-0310-8789-dd5450dbe970

25 years agoAdded "addent" command to allow creation of new keytab entries by
Geoffrey King [Mon, 16 Aug 1999 11:50:19 +0000 (11:50 +0000)]
Added "addent" command to allow creation of new keytab entries by
specifying a key or password, a principal, a kvno, and an enctype.

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@11664 dc483132-0cff-0310-8789-dd5450dbe970

25 years ago * README.NOT.SLEEPYCAT.DB: New file; pointer to README to
Tom Yu [Mon, 16 Aug 1999 00:48:26 +0000 (00:48 +0000)]
* README.NOT.SLEEPYCAT.DB: New file; pointer to README to
hopefully unconfuse people.

* README: Add notice to the effect that this is not Berkeley or
Sleepycat DB.

* README.db2: Renamed from README.

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@11661 dc483132-0cff-0310-8789-dd5450dbe970

25 years agoconfig.sub: Now recognizes MacOS 10 as a valid OS
Brad Thompson [Fri, 13 Aug 1999 23:40:45 +0000 (23:40 +0000)]
config.sub: Now recognizes MacOS 10 as a valid OS

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@11657 dc483132-0cff-0310-8789-dd5450dbe970

25 years agoaclocal.m4: Added MacOS X shared library support
Brad Thompson [Fri, 13 Aug 1999 23:38:56 +0000 (23:38 +0000)]
aclocal.m4: Added MacOS X shared library support

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@11656 dc483132-0cff-0310-8789-dd5450dbe970

25 years agoInitializes some variables so that they do not end up in the common block
Brad Thompson [Fri, 13 Aug 1999 23:34:27 +0000 (23:34 +0000)]
Initializes some variables so that they do not end up in the common block

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@11655 dc483132-0cff-0310-8789-dd5450dbe970

25 years agoInitialize __krb_sendauth_hidden_tkt_len so it doesn't end up in the
Brad Thompson [Fri, 13 Aug 1999 23:23:00 +0000 (23:23 +0000)]
Initialize __krb_sendauth_hidden_tkt_len so it doesn't end up in the
common block.

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@11654 dc483132-0cff-0310-8789-dd5450dbe970

25 years agoInitialize swap_bytes so that it doesn't end up in the common block
Brad Thompson [Fri, 13 Aug 1999 23:21:31 +0000 (23:21 +0000)]
Initialize swap_bytes so that it doesn't end up in the common block

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@11653 dc483132-0cff-0310-8789-dd5450dbe970

25 years agoNow recognizes MacOS 10 as a valid OS
Brad Thompson [Fri, 13 Aug 1999 23:19:39 +0000 (23:19 +0000)]
Now recognizes MacOS 10 as a valid OS

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@11652 dc483132-0cff-0310-8789-dd5450dbe970

25 years agoAdded MacOS X shared library support
Brad Thompson [Fri, 13 Aug 1999 23:18:54 +0000 (23:18 +0000)]
Added MacOS X shared library support

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@11651 dc483132-0cff-0310-8789-dd5450dbe970

25 years agochpw.c (krb5_mk_chpw_req):
Alexandra Ellwood [Tue, 10 Aug 1999 20:18:47 +0000 (20:18 +0000)]
chpw.c (krb5_mk_chpw_req):
Added call to free cipherpw.data.  cipherpw.data is allocated
by krb5_mk_priv and passed back.  Since cipherpw is never
passed back, krb5_mk_chpw_req should free it.

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@11648 dc483132-0cff-0310-8789-dd5450dbe970

25 years ago1999-08-10 Alexandra Ellwood <lxs@mit.edu>
Alexandra Ellwood [Tue, 10 Aug 1999 20:18:27 +0000 (20:18 +0000)]
1999-08-10 Alexandra Ellwood <lxs@mit.edu>

* chpw.c (krb5_mk_chpw_req):
Added call to free cipherpw.data.  cipherpw.data is allocated
by krb5_mk_priv and passed back.  Since cipherpw is never
passed back, krb5_mk_chpw_req should free it.

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@11647 dc483132-0cff-0310-8789-dd5450dbe970

25 years ago(krb5_change_password):
Alexandra Ellwood [Tue, 10 Aug 1999 20:16:15 +0000 (20:16 +0000)]
(krb5_change_password):
Reorganized code so that krb5_change_password actually frees
everything it allocated on error.  Also fixed some memory
leaks which happened even without an error occurring.

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@11646 dc483132-0cff-0310-8789-dd5450dbe970

25 years ago1999-08-10 Alexandra Ellwood <lxs@mit.edu>
Alexandra Ellwood [Tue, 10 Aug 1999 20:15:51 +0000 (20:15 +0000)]
1999-08-10 Alexandra Ellwood <lxs@mit.edu>

* changepw.c (krb5_change_password):
Reorganized code so that krb5_change_password actually frees
everything it allocated on error.  Also fixed some memory
leaks which happened even without an error occurring.

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@11645 dc483132-0cff-0310-8789-dd5450dbe970

25 years agoDefine MAXPATHLEN only if not already define. This helps avoid
Danilo Almeida [Tue, 10 Aug 1999 02:02:36 +0000 (02:02 +0000)]
Define MAXPATHLEN only if not already define.  This helps avoid
build warnings.

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@11638 dc483132-0cff-0310-8789-dd5450dbe970

25 years agoUse standard windows exe link flags
Danilo Almeida [Tue, 10 Aug 1999 00:20:15 +0000 (00:20 +0000)]
Use standard windows exe link flags

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@11637 dc483132-0cff-0310-8789-dd5450dbe970

25 years agoBuild kpasswd under windows
Danilo Almeida [Tue, 10 Aug 1999 00:19:25 +0000 (00:19 +0000)]
Build kpasswd under windows

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@11636 dc483132-0cff-0310-8789-dd5450dbe970

25 years agoProvide Win32 implementation so that kinit and such work under Win32
Danilo Almeida [Mon, 9 Aug 1999 21:46:49 +0000 (21:46 +0000)]
Provide Win32 implementation so that kinit and such work under Win32

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@11635 dc483132-0cff-0310-8789-dd5450dbe970

25 years agoMake sure we have FQDN in the case where we use gethostname
Danilo Almeida [Mon, 9 Aug 1999 21:45:25 +0000 (21:45 +0000)]
Make sure we have FQDN in the case where we use gethostname

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@11634 dc483132-0cff-0310-8789-dd5450dbe970

25 years agoFixed file list generation
Miro Jurisic [Sat, 7 Aug 1999 17:25:20 +0000 (17:25 +0000)]
Fixed file list generation

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@11631 dc483132-0cff-0310-8789-dd5450dbe970

25 years agoFixed file list generation to work from any directory
Miro Jurisic [Fri, 6 Aug 1999 17:35:26 +0000 (17:35 +0000)]
Fixed file list generation to work from any directory

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@11630 dc483132-0cff-0310-8789-dd5450dbe970

25 years ago* def_realm.c (krb5_get_default_realm): Check that we have
Danilo Almeida [Fri, 6 Aug 1999 16:07:04 +0000 (16:07 +0000)]
* def_realm.c (krb5_get_default_realm): Check that we have
a realm before trying to copy it (since profile_get_string
may return no error but not get anything).

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@11629 dc483132-0cff-0310-8789-dd5450dbe970

25 years agoFix calling convention for krb5_get_profile
Danilo Almeida [Fri, 6 Aug 1999 15:58:47 +0000 (15:58 +0000)]
Fix calling convention for krb5_get_profile

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@11628 dc483132-0cff-0310-8789-dd5450dbe970

25 years agoKeep invariant that profile_in_memory member of context
Danilo Almeida [Thu, 5 Aug 1999 20:37:59 +0000 (20:37 +0000)]
Keep invariant that profile_in_memory member of context
is only sensible if KRB5_DNS_LOOKUP is defined.

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@11627 dc483132-0cff-0310-8789-dd5450dbe970

25 years ago* t_std_conf.c (test_get_krbhst): Use krb5_free_krbhst to
Danilo Almeida [Thu, 5 Aug 1999 20:37:18 +0000 (20:37 +0000)]
* t_std_conf.c (test_get_krbhst): Use krb5_free_krbhst to
free buffers allocated by krb5_get_krbhst.

* locate_kdc.c (_krb5_use_dns): Add _krb_use_dns to abstract
away looking up of whether we use DNS or not in the profile.

* ktdefname.c (krb5_kt_default_name): Use profile_release_string
instead of free to free string allocated by profile_get_string.

* get_krbhst.c (krb5_get_krbhst): Copy results from profile_get_values
into malloc'ed buffers so we can safely free them later.  Also call
profile_free_list on the original values.

* locate_kdc.c (krb5_locate_kdc):
* hst_realm.c (krb5_get_host_realm):
* def_realm.c (krb5_get_default_realm): Use _krb5_use_dns to figure
out whether to use DNS or not instead of directly reading the
profile in this routine.

* realm_dom.c (krb5_get_realm_domain):
* hst_realm.c (krb5_get_host_realm):
* def_realm.c (krb5_get_default_realm): Copy results of
profile_get_string into malloc'ed buffer so it can safely be free'd
later.

* locate_kdc.c (krb5_locate_srv_conf):
* def_realm.c (krb5_get_default_realm):
* changepw.c (krb5_change_password):
* an_to_ln.c (krb5_aname_to_localname): Use profile_free_list
to free values allocated by profile_get_values.

* init_os_ctx.c (os_init_paths): Wrap use of ctx->profile_in_memory
with KRB5_DNS_LOOKUP.  Use pointer value to determine whether to free
files by checking the files value rather than depending on the
return value.

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@11626 dc483132-0cff-0310-8789-dd5450dbe970

25 years agoDocument why krb5_win_ccdll_load is called way early in code.
Danilo Almeida [Thu, 5 Aug 1999 20:36:27 +0000 (20:36 +0000)]
Document why krb5_win_ccdll_load is called way early in code.
(It is because we need to have the ccapi stuff loaded before trying
to get the OS-specific context initialization where we figure out
default cache names and such.)

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@11625 dc483132-0cff-0310-8789-dd5450dbe970

25 years ago* init_ctx.c (get_profile_etype_list): Use profile_release_string
Danilo Almeida [Thu, 5 Aug 1999 20:26:47 +0000 (20:26 +0000)]
* init_ctx.c (get_profile_etype_list): Use profile_release_string
to free string allocated by profile_get_string.
(krb5_init_context): Use a real context for krb5_win_ccdll_load.

* get_in_tkt.c (krb5_appdefault_string):
* conv_princ.c (krb5_425_conv_principal): Use profile_free_list
to free values allocated by profile_get_values.

* get_in_tkt.c (_krb5_conf_boolean, krb5_appdefault_boolean):
Rename krb5_conf_boolean to _krb5_conf_boolean to denote that
it is not public so that folks outside the libraries won't
be tempted to use it.

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@11624 dc483132-0cff-0310-8789-dd5450dbe970

25 years agoRemove profile_free_string because we already have profile_release_string
Danilo Almeida [Thu, 5 Aug 1999 20:08:52 +0000 (20:08 +0000)]
Remove profile_free_string because we already have profile_release_string
(who named these things anyhow?)

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@11623 dc483132-0cff-0310-8789-dd5450dbe970

25 years agoAdd profile_free_string to free strings allocated by profile_get_string
Danilo Almeida [Thu, 5 Aug 1999 19:37:54 +0000 (19:37 +0000)]
Add profile_free_string to free strings allocated by profile_get_string

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@11622 dc483132-0cff-0310-8789-dd5450dbe970

25 years ago* stdcc_util.c (deep_free_cc_v5_creds):
Alexandra Ellwood [Thu, 5 Aug 1999 15:40:12 +0000 (15:40 +0000)]
* stdcc_util.c (deep_free_cc_v5_creds):
Added free(creds) so that the cc_creds gets freed when a
cred_union gets freed.  Before it was leaking memory.

I searched the k5 sources for folks calling deep_free_cc_v5_creds
and my change seems to not break anyone else.

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@11621 dc483132-0cff-0310-8789-dd5450dbe970

25 years agoAdded free(creds) to deep_free_cc_v5_creds so that someone is freeing the cc_creds...
Alexandra Ellwood [Thu, 5 Aug 1999 15:35:16 +0000 (15:35 +0000)]
Added free(creds) to deep_free_cc_v5_creds so that someone is freeing the cc_creds when a cred_union gets freed.  Before it was leaking memory

I searched the k5 sources for folks calling deep_free_cc_v5_creds and my change seems to not break anything.

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@11620 dc483132-0cff-0310-8789-dd5450dbe970

25 years agoIntialize out_creds pointer to 0 and then check whether it is 0 before
Danilo Almeida [Wed, 4 Aug 1999 03:18:29 +0000 (03:18 +0000)]
Intialize out_creds pointer to 0 and then check whether it is 0 before
trying to dereference it, in case lower-level routine failed to assign
a value to it.

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@11619 dc483132-0cff-0310-8789-dd5450dbe970

25 years agoUpdate dump-utmp from KerbNet 1.2.
Ken Raeburn [Tue, 3 Aug 1999 21:29:17 +0000 (21:29 +0000)]
Update dump-utmp from KerbNet 1.2.
Add makefile rules for building dump-utmp on request.
Fix line id for console on Solaris.  (PR561)

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@11618 dc483132-0cff-0310-8789-dd5450dbe970

25 years agoprof_file.c (profile_open_file)
Alexandra Ellwood [Tue, 3 Aug 1999 21:19:04 +0000 (21:19 +0000)]
prof_file.c (profile_open_file)
Mac OS side now sets profile->magic to PROF_MAGIC_FILE
so the rest of the functions think it's a real profile.

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@11617 dc483132-0cff-0310-8789-dd5450dbe970

25 years agostdcc.c (krb5_stdcc_destroy):
Alexandra Ellwood [Tue, 3 Aug 1999 21:18:24 +0000 (21:18 +0000)]
stdcc.c (krb5_stdcc_destroy):
Added code to free the krb5_ccache like krb5_stdcc_close does
so we don't leak memory.

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@11616 dc483132-0cff-0310-8789-dd5450dbe970

25 years ago* krb5.hin: Wrap all declarations in `extern "C"' for C++, not just some. Move
Ken Raeburn [Tue, 3 Aug 1999 20:37:37 +0000 (20:37 +0000)]
* krb5.hin: Wrap all declarations in `extern "C"' for C++, not just some.  Move
header file inclusions up above extern-C block.  (Fixes PR 729 from Chas
Williams.)

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@11615 dc483132-0cff-0310-8789-dd5450dbe970

25 years agoAdded line to initialize profile->magic on the Macintosh because all of the other...
Alexandra Ellwood [Tue, 3 Aug 1999 19:33:10 +0000 (19:33 +0000)]
Added line to initialize profile->magic on the Macintosh because all of the other profile library functions check for it and do nothing if it isn't there

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@11614 dc483132-0cff-0310-8789-dd5450dbe970

25 years agoFixed a memory leak in krb5_stdcc_destroy(). The destroy function was failing to...
Alexandra Ellwood [Tue, 3 Aug 1999 16:40:23 +0000 (16:40 +0000)]
Fixed a memory leak in krb5_stdcc_destroy().  The destroy function was failing to free memory allocated for the krb5_ccache.  Code to free this memory was swiped from krb5_stdcc_close()

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@11613 dc483132-0cff-0310-8789-dd5450dbe970

25 years agoPatches from Brad Thompson for building without krb4 compatibility
Ken Raeburn [Mon, 2 Aug 1999 20:16:07 +0000 (20:16 +0000)]
Patches from Brad Thompson for building without krb4 compatibility

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@11612 dc483132-0cff-0310-8789-dd5450dbe970

25 years ago* config.guess: Add MacOS 10 support. (Submitted to autoconf maintainers.)
Ken Raeburn [Fri, 30 Jul 1999 22:24:46 +0000 (22:24 +0000)]
* config.guess: Add MacOS 10 support.  (Submitted to autoconf maintainers.)

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@11611 dc483132-0cff-0310-8789-dd5450dbe970

25 years agonuke some ancient isode remnants
Ken Raeburn [Thu, 29 Jul 1999 23:46:21 +0000 (23:46 +0000)]
nuke some ancient isode remnants

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@11610 dc483132-0cff-0310-8789-dd5450dbe970

25 years agoGetMacProfileFileSpec: fined bogus string conversion
Miro Jurisic [Tue, 27 Jul 1999 13:50:06 +0000 (13:50 +0000)]
GetMacProfileFileSpec: fined bogus string conversion

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@11608 dc483132-0cff-0310-8789-dd5450dbe970

25 years ago * telnet.c (telnet): Fix typo in error message, via
Tom Yu [Mon, 26 Jul 1999 21:55:24 +0000 (21:55 +0000)]
* telnet.c (telnet): Fix typo in error message, via
schwim@whatmore.Stanford.EDU

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@11607 dc483132-0cff-0310-8789-dd5450dbe970

25 years agofix typo in calculating buffer size
Ken Raeburn [Mon, 26 Jul 1999 21:16:22 +0000 (21:16 +0000)]
fix typo in calculating buffer size

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@11606 dc483132-0cff-0310-8789-dd5450dbe970

25 years agoReadded error_message
Miro Jurisic [Mon, 26 Jul 1999 21:01:40 +0000 (21:01 +0000)]
Readded error_message

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@11604 dc483132-0cff-0310-8789-dd5450dbe970

25 years agoUpdated for 2.5a1
Miro Jurisic [Mon, 26 Jul 1999 16:42:58 +0000 (16:42 +0000)]
Updated for 2.5a1

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@11603 dc483132-0cff-0310-8789-dd5450dbe970

25 years agoFixed size_t redefinition on MacOS
Miro Jurisic [Mon, 26 Jul 1999 16:41:43 +0000 (16:41 +0000)]
Fixed size_t redefinition on MacOS

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@11602 dc483132-0cff-0310-8789-dd5450dbe970

25 years agoChanged GSSLib fragment name; upped krb5 CFM version number
Miro Jurisic [Mon, 26 Jul 1999 16:40:28 +0000 (16:40 +0000)]
Changed GSSLib fragment name; upped krb5 CFM version number

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@11601 dc483132-0cff-0310-8789-dd5450dbe970

25 years agoAdded krb5_get_profile
Miro Jurisic [Mon, 26 Jul 1999 16:38:06 +0000 (16:38 +0000)]
Added krb5_get_profile

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@11600 dc483132-0cff-0310-8789-dd5450dbe970

25 years agoAdded krb5_get_profile; removed com_err functions
Miro Jurisic [Mon, 26 Jul 1999 16:35:32 +0000 (16:35 +0000)]
Added krb5_get_profile; removed com_err functions

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@11599 dc483132-0cff-0310-8789-dd5450dbe970

25 years agomerged changes from the Mac_V2_0_derivatives branch and added krb5_get_profile
Miro Jurisic [Mon, 26 Jul 1999 16:34:48 +0000 (16:34 +0000)]
merged changes from the Mac_V2_0_derivatives branch and added krb5_get_profile

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@11598 dc483132-0cff-0310-8789-dd5450dbe970

25 years agoc_ustime.c, init_os_ctx.c: merged changes from the Mac_V2_0_derivatives branch
Miro Jurisic [Mon, 26 Jul 1999 16:34:13 +0000 (16:34 +0000)]
c_ustime.c, init_os_ctx.c: merged changes from the Mac_V2_0_derivatives branch
init_os_ctx.x: added krb5_get_profile

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@11597 dc483132-0cff-0310-8789-dd5450dbe970

25 years agoMerged from Mac_V2_0_derivatives branch
Miro Jurisic [Mon, 26 Jul 1999 16:28:17 +0000 (16:28 +0000)]
Merged from Mac_V2_0_derivatives branch

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@11596 dc483132-0cff-0310-8789-dd5450dbe970

25 years agofrom the 1.0 branch
Ezra Peisach [Sat, 24 Jul 1999 12:53:30 +0000 (12:53 +0000)]
from the 1.0 branch

kshd: Add $(LOGINLIBS) for setluid on the Alpha's... Probably never pulled up

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@11595 dc483132-0cff-0310-8789-dd5450dbe970

25 years agoUpdating ChangeLog
Jeffrey Altman [Fri, 23 Jul 1999 18:05:31 +0000 (18:05 +0000)]
Updating ChangeLog

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@11594 dc483132-0cff-0310-8789-dd5450dbe970

25 years agoUpdating changelog
Jeffrey Altman [Fri, 23 Jul 1999 17:58:20 +0000 (17:58 +0000)]
Updating changelog

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@11593 dc483132-0cff-0310-8789-dd5450dbe970

25 years agoUpdate changelog
Jeffrey Altman [Fri, 23 Jul 1999 17:56:13 +0000 (17:56 +0000)]
Update changelog

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@11592 dc483132-0cff-0310-8789-dd5450dbe970

25 years agochangelog update
Jeffrey Altman [Fri, 23 Jul 1999 17:50:53 +0000 (17:50 +0000)]
changelog update

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@11591 dc483132-0cff-0310-8789-dd5450dbe970

25 years agoIf no filespecs are provided, then return an empty profile
Jeffrey Altman [Fri, 23 Jul 1999 03:28:05 +0000 (03:28 +0000)]
If no filespecs are provided, then return an empty profile

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@11590 dc483132-0cff-0310-8789-dd5450dbe970

25 years agoAdd profile support for libdefaults dns_fallback
Jeffrey Altman [Fri, 23 Jul 1999 03:24:30 +0000 (03:24 +0000)]
Add profile support for libdefaults dns_fallback

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@11589 dc483132-0cff-0310-8789-dd5450dbe970

25 years agoUpdated Windows section to use filespecs instead of filenames
Jeffrey Altman [Fri, 23 Jul 1999 03:20:38 +0000 (03:20 +0000)]
Updated Windows section to use filespecs instead of filenames

Add support for storing the existence of a memory profile in the krb5_context

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@11588 dc483132-0cff-0310-8789-dd5450dbe970

25 years ago * Makefile.in (install-mkdirs): Use mkinstalldirs rather than
Tom Yu [Fri, 23 Jul 1999 03:18:26 +0000 (03:18 +0000)]
* Makefile.in (install-mkdirs): Use mkinstalldirs rather than
mkdir -p for portability reasons.

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@11587 dc483132-0cff-0310-8789-dd5450dbe970