krb5.git
25 years agoReplacd Duplicate with Catenate to avoid mod date weirdness
Miro Jurisic [Wed, 8 Sep 1999 20:15:34 +0000 (20:15 +0000)]
Replacd Duplicate with Catenate to avoid mod date weirdness

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

25 years ago1.1 updates
Ken Raeburn [Tue, 7 Sep 1999 22:22:57 +0000 (22:22 +0000)]
1.1 updates

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

25 years agoAdded
Miro Jurisic [Tue, 7 Sep 1999 17:28:35 +0000 (17:28 +0000)]
Added

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

25 years agoupdated with 1.1 info, but made clearly distinct from 1.1
Ken Raeburn [Thu, 2 Sep 1999 21:53:16 +0000 (21:53 +0000)]
updated with 1.1 info, but made clearly distinct from 1.1

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

25 years agoDanilo's updates for building windows zip file
Ken Raeburn [Thu, 2 Sep 1999 21:52:45 +0000 (21:52 +0000)]
Danilo's updates for building windows zip file

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

25 years agoexport krb5_kuserok on windows
Ken Raeburn [Thu, 2 Sep 1999 21:43:00 +0000 (21:43 +0000)]
export krb5_kuserok on windows

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

25 years agofrom 1.1 branch
Ken Raeburn [Thu, 2 Sep 1999 21:39:46 +0000 (21:39 +0000)]
from 1.1 branch

1999-09-01  Danilo Almeida  <dalmeida@mit.edu>

* kuserok.c (krb5_kuserok): Fix improper negation in
non-Unix localname check.  Also fix calling convention
before this function is exported by the Windows DLL.

* localaddr.c (krb5_os_localaddr): Fix memset to clear
right address list.  (Thanks to jaltman@columbia.edu).

1999-09-01  Ken Raeburn  <raeburn@mit.edu>

* get_krbhst.c (krb5_get_krbhst): Fix double-indirection
confusion.  Do actually copy string contents to newly allocated
storage.

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

25 years agofrom 1.1 branch:
Ken Raeburn [Wed, 1 Sep 1999 21:55:49 +0000 (21:55 +0000)]
from 1.1 branch:

* init_ctx.c (get_profile_etype_list): Update name of the des3 entry in the
default etype list.

* init_ctx.c (get_profile_etype_list): New argument DESONLY; if set, ignore any
ktype values other than NULL, DES_CBC_CRC, and DES_CBC_MD5.
(krb5_get_default_in_tkt_ktypes, krb5_get_tgs_ktypes): Set it.
(krb5_get_permitted_enctypes): Don't set it.

* fwd_tgt.c (krb5_fwd_tgt_creds): Use KRB5_TC_SUPPORTED_KTYPES when calling
krb5_cc_retrieve_cred.
* gc_frm_kdc.c (krb5_get_cred_from_kdc_opt): Ditto.
* get_creds.c (krb5_get_credentials_core): Set that flag.
(krb5_get_credentials): Check for KRB5_CC_NOT_KTYPE error return.

* t_ser.c (main): Disable eblock serialization test, since the code it tests
was disabled nearly a year ago.

* str_conv.c (krb5_timestamp_to_sfstring): Don't pass extra argument to
sprintf.

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

25 years agouse KRB5_TC_SUPPORTED_KTYPES
Ken Raeburn [Wed, 1 Sep 1999 21:53:38 +0000 (21:53 +0000)]
use KRB5_TC_SUPPORTED_KTYPES

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

25 years agofrom 1.1 branch:
Ken Raeburn [Wed, 1 Sep 1999 21:51:42 +0000 (21:51 +0000)]
from 1.1 branch:

* krlogin.c (main): Error out if -D isn't followed by another argument.  Based
on patch from Brad Thompson.

* krshd.c (v4_kdata, v4_ticket): Don't define if KRB5_KRB4_COMPAT is not
defined.  Patch from Brad Thompson.

* kcmd.c (kcmd): If krb5_get_credentials returns a nonzero error code, print an
error message before returning.

* krlogin.c (main): If ospeed is outside of compiled-in table index range but
not high enough to be a baud rate, use the highest rate in the table.

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

25 years agojaltman's principal-name check from 1.1 branch, indentation fixed
Ken Raeburn [Wed, 1 Sep 1999 21:50:32 +0000 (21:50 +0000)]
jaltman's principal-name check from 1.1 branch, indentation fixed

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

25 years agotestcase fixes from 1.1 branch:
Ken Raeburn [Wed, 1 Sep 1999 21:47:24 +0000 (21:47 +0000)]
testcase fixes from 1.1 branch:

* t_kdb.c (add_principal): Free only contents of a generated key, since the
keyblock structure itself is on the stack.

* t_kdb.c (add_principal): Update for new calling sequence to
krb5_dbekd_encrypt_key_data.
(do_testing): Update calls.

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

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