krb5.git
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

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

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

25 years agoRename conf_boolean to krb5_conf_boolean and remove the static designation
Jeffrey Altman [Fri, 23 Jul 1999 03:10:58 +0000 (03:10 +0000)]
Rename conf_boolean to krb5_conf_boolean and remove the static designation
so that the function may be used in other modules.

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

25 years ago * mkinstalldirs: New file; from autoconf-2.13
Tom Yu [Fri, 23 Jul 1999 03:07:13 +0000 (03:07 +0000)]
* mkinstalldirs: New file; from autoconf-2.13

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

25 years agoAdditional exports which are used by Kermit for Server Side Telnet authentication
Jeffrey Altman [Fri, 23 Jul 1999 03:07:07 +0000 (03:07 +0000)]
Additional exports which are used by Kermit for Server Side Telnet authentication

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

25 years agoAdded new profile_in_memory flag to the struct _krb5_context so that
Jeffrey Altman [Fri, 23 Jul 1999 03:05:24 +0000 (03:05 +0000)]
Added new profile_in_memory flag to the struct _krb5_context so that
Krb5 may keep track of whether or not a profile file was found.
This is needed for conditional use of DNS Realm and Server lookups
based on whether or not a profile exists.

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

25 years ago * config.guess, config.sub, install-sh: Update from autoconf-2.13
Tom Yu [Fri, 23 Jul 1999 02:47:17 +0000 (02:47 +0000)]
* config.guess, config.sub, install-sh: Update from autoconf-2.13

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

25 years agoclean up more conflicts
Tom Yu [Fri, 23 Jul 1999 02:38:08 +0000 (02:38 +0000)]
clean up more conflicts

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

25 years agoresolve conflicts from autoconf-2.13 import
Tom Yu [Fri, 23 Jul 1999 02:30:33 +0000 (02:30 +0000)]
resolve conflicts from autoconf-2.13 import

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

25 years agoInitial revision
Tom Yu [Fri, 23 Jul 1999 02:21:05 +0000 (02:21 +0000)]
Initial revision

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

25 years agomore fixes for meeroh's patch
Ken Raeburn [Thu, 22 Jul 1999 00:04:07 +0000 (00:04 +0000)]
more fixes for meeroh's patch

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

25 years ago* init_os_ctx.c (os_get_default_config_files): Fix some typos and missed name
Ken Raeburn [Wed, 21 Jul 1999 21:26:11 +0000 (21:26 +0000)]
* init_os_ctx.c (os_get_default_config_files): Fix some typos and missed name
changes in the patch Miro just checked in but forgot to mention here, in which
Mac filespecs are used instead of filenames.

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

25 years ago* prof_int.h (profile_t): Delete typedef, since Miro changed prof_int.h to
Ken Raeburn [Wed, 21 Jul 1999 21:23:14 +0000 (21:23 +0000)]
* prof_int.h (profile_t): Delete typedef, since Miro changed prof_int.h to
include profile.h, which also has the typedef.
* prof_file.c, prof_init.c: Fix typos and missed variable and type name changes
from Miro's patch.

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

25 years ago#ifdefed out krb5_*config_file on MacOS
Miro Jurisic [Wed, 21 Jul 1999 18:23:24 +0000 (18:23 +0000)]
#ifdefed out krb5_*config_file on MacOS

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

25 years agoProfile library now uses MacOS native file specifiers on MacOS, and file paths on...
Miro Jurisic [Wed, 21 Jul 1999 18:22:10 +0000 (18:22 +0000)]
Profile library now uses MacOS native file specifiers on MacOS, and file paths on all other OSes

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

25 years agoAdded krb5_free_unparsed_name
Miro Jurisic [Wed, 21 Jul 1999 18:21:56 +0000 (18:21 +0000)]
Added krb5_free_unparsed_name

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

25 years agoUse Mac files specifiers for config files on MacOS
Miro Jurisic [Wed, 21 Jul 1999 18:20:50 +0000 (18:20 +0000)]
Use Mac files specifiers for config files on MacOS

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

25 years agoProfile library now uses MacOS native file specifiers on MacOS, and file paths on...
Miro Jurisic [Wed, 21 Jul 1999 17:21:56 +0000 (17:21 +0000)]
Profile library now uses MacOS native file specifiers on MacOS, and file paths on all other OSes

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

25 years agoAdded #ifdef __cplusplus extern "C"
Miro Jurisic [Wed, 14 Jul 1999 23:27:36 +0000 (23:27 +0000)]
Added #ifdef __cplusplus extern "C"

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

25 years agoprofile headers now copied to output
Miro Jurisic [Tue, 13 Jul 1999 23:48:31 +0000 (23:48 +0000)]
profile headers now copied to output

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

25 years agoAIX 4.3.2 (4.3.0+) build fixes based on bug report from Joshua Lackey,
Ken Raeburn [Mon, 12 Jul 1999 20:19:51 +0000 (20:19 +0000)]
AIX 4.3.2 (4.3.0+) build fixes based on bug report from Joshua Lackey,
lackeyj@austin.ibm.com.

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

25 years agoUpdated for 2.1d3 and 2.1d4
Miro Jurisic [Mon, 12 Jul 1999 16:57:45 +0000 (16:57 +0000)]
Updated for 2.1d3 and 2.1d4

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

25 years agoFixed krb5 library CFM version numbers
Miro Jurisic [Mon, 12 Jul 1999 16:52:42 +0000 (16:52 +0000)]
Fixed krb5 library CFM version numbers

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

25 years ago * krb5_decode_test.c (main): Add additional test cases in
Tom Yu [Sun, 11 Jul 1999 09:20:22 +0000 (09:20 +0000)]
* krb5_decode_test.c (main): Add additional test cases in
  encryption_key to test negative integer handling.

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

25 years ago * asn1_decode.c (asn1_decode_integer): Fix to deal with overflows
Tom Yu [Sun, 11 Jul 1999 09:19:41 +0000 (09:19 +0000)]
* asn1_decode.c (asn1_decode_integer): Fix to deal with overflows
  and negative integers.
(asn1_decode_unsigned_integer): Fix to deal with overflows and to
  return errors on encountering negative integers.

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

25 years agoHeaders now correctly copied to output folders
Miro Jurisic [Sat, 10 Jul 1999 22:54:39 +0000 (22:54 +0000)]
Headers now correctly copied to output folders

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

25 years agoFixed discrepancies between debug and final targets
Miro Jurisic [Sat, 10 Jul 1999 18:19:20 +0000 (18:19 +0000)]
Fixed discrepancies between debug and final targets

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

25 years agoAdded
Miro Jurisic [Sat, 10 Jul 1999 17:20:43 +0000 (17:20 +0000)]
Added

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

25 years agoMore fixed to make Makefile work correctly from any root
Miro Jurisic [Sat, 10 Jul 1999 17:19:02 +0000 (17:19 +0000)]
More fixed to make Makefile work correctly from any root

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

25 years agoAdded
Miro Jurisic [Sat, 10 Jul 1999 17:07:25 +0000 (17:07 +0000)]
Added

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

25 years agoMore fixed to make perl script run cirrectly from any root
Miro Jurisic [Sat, 10 Jul 1999 16:59:44 +0000 (16:59 +0000)]
More fixed to make perl script run cirrectly from any root

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

25 years agoMore fixed to make perl script run cirrectly from any root
Miro Jurisic [Sat, 10 Jul 1999 16:52:12 +0000 (16:52 +0000)]
More fixed to make perl script run cirrectly from any root

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

25 years agoAdded profile library and fixed perl script invocation to work fromarbitrary root
Miro Jurisic [Sat, 10 Jul 1999 05:12:25 +0000 (05:12 +0000)]
Added profile library and fixed perl script invocation to work fromarbitrary root

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

25 years agoAdded profile library file list
Miro Jurisic [Sat, 10 Jul 1999 05:11:55 +0000 (05:11 +0000)]
Added profile library file list

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

25 years agoRemoved profile lib error table installation
Miro Jurisic [Sat, 10 Jul 1999 05:11:38 +0000 (05:11 +0000)]
Removed profile lib error table installation

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

25 years ago* kdb5_util.c (main): Do try using com_err in the case that krb5_init_context
Ken Raeburn [Wed, 7 Jul 1999 00:41:01 +0000 (00:41 +0000)]
* kdb5_util.c (main): Do try using com_err in the case that krb5_init_context
fails, instead of fprintf of the error number.
(cf krb5-bugs db #499, 13-Nov-1997)

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

25 years ago* KRB5-asn.py (PA-SAM-RESPONSE): Fix syntax error -- comma separating sequence
Ken Raeburn [Tue, 6 Jul 1999 23:24:12 +0000 (23:24 +0000)]
* KRB5-asn.py (PA-SAM-RESPONSE): Fix syntax error -- comma separating sequence
components doesn't belong buried in a comment.

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

25 years ago* configure.in: Delete old and already disabled code relating to shared library
Ken Raeburn [Tue, 6 Jul 1999 23:16:47 +0000 (23:16 +0000)]
* configure.in: Delete old and already disabled code relating to shared library
support.

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

25 years ago * krb5_decode_test.c (main): Add test cases for encryption_key in
Tom Yu [Sun, 4 Jul 1999 00:45:24 +0000 (00:45 +0000)]
* krb5_decode_test.c (main): Add test cases for encryption_key in
order to test skipping of trailing fields in sequences, as well as
handling of indefinite lengths in sequences.

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

25 years ago * asn1buf.c (asn1buf_sync): Add length parameter to disambiguate
Tom Yu [Sun, 4 Jul 1999 00:44:07 +0000 (00:44 +0000)]
* asn1buf.c (asn1buf_sync): Add length parameter to disambiguate
constructed-indefinite encoding from constructed-definite encoding
which happens to end at the same place as the enclosing buf.

* asn1buf.h: Update to match definition.

* krb5_decode.c (end_structure): Update to deal with additional
length parameter to asn1buf_sync().

* asn1_k_decode.c (end_sequence_of, end_structure): Update to deal
with additional length parameter to asn1buf_sync().

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

25 years ago * asn1buf.h: New prototpyes for asn1buf_sync() and
Tom Yu [Sat, 3 Jul 1999 09:00:15 +0000 (09:00 +0000)]
* asn1buf.h: New prototpyes for asn1buf_sync() and
asn1buf_skiptail().

* asn1buf.c (asn1buf_sync): Fix to deal with
constructed-indefinite encodings with trailing fields.  As a
result, this requires that the most recently read tag number be
passed in.
(asn1buf_skiptail): New helper function to skip trailing fields in
a constructed-indefinite encoding.

* krb5_decode.c (end_structure): Hack to deal with changed
asn1buf_sync().

* asn1_k_decode.c (end_structure, end_sequence_of): Hack to deal
with changed asn1buf_sync().

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

25 years ago * asn1buf.c (asn1buf_sync): Interim fix for DCE compat problem
Tom Yu [Thu, 1 Jul 1999 00:38:28 +0000 (00:38 +0000)]
* asn1buf.c (asn1buf_sync): Interim fix for DCE compat problem
with indefinite length encodings.

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

25 years ago * Makefile.in: Fix jaltman's changes so they don't break the unix
Tom Yu [Thu, 1 Jul 1999 00:08:58 +0000 (00:08 +0000)]
* Makefile.in: Fix jaltman's changes so they don't break the unix
build.

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

25 years agoDisable lookaside cache. It's needed if the replay cache is enabled, and could
Ken Raeburn [Wed, 30 Jun 1999 19:28:13 +0000 (19:28 +0000)]
Disable lookaside cache.  It's needed if the replay cache is enabled, and could
theoretically make certain attacks more difficult, but the replay cache is
disabled, the attack is very difficult compared to other existing attacks
(would need huge numbers of queries), and under heavy load the lookaside cache
degrades performance.

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

25 years ago* locate_kdc.c (krb5_locate_kdc): Kerberos admin service name is
Ken Raeburn [Wed, 30 Jun 1999 19:17:23 +0000 (19:17 +0000)]
* locate_kdc.c (krb5_locate_kdc): Kerberos admin service name is
"kerberos-adm", not "kadmin", so look up "_kerberos-adm._tcp" in DNS.

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

25 years agokrb5_try_realm_txt_rr() should allow the resolv library to expand
Jeffrey Altman [Wed, 30 Jun 1999 15:12:42 +0000 (15:12 +0000)]
krb5_try_realm_txt_rr() should allow the resolv library to expand
the local domain or domain searchlist when the query is being
performed without the specification of a hostname or domain.
When 'name' is NULL or "", no '.' should be appended to the query.
Appending a '.' in that circumstance will result in an inability
to resolv the REALM if gethostname() does not return a fully
qualified domain name as on Windows and Solaris.

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

25 years agoMakefile.in modified to support conditional compilation of krb5_32.dll
Jeffrey Altman [Wed, 30 Jun 1999 00:04:48 +0000 (00:04 +0000)]
Makefile.in modified to support conditional compilation of krb5_32.dll
with DNS support using DNSFLAGS variable defined in win-pre.h.

krb5_32.def modified to export functions necessary to support eklogin
protocol.

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

25 years agoAdd support for conditional definition of DNS flags to win-pre.h
Jeffrey Altman [Wed, 30 Jun 1999 00:00:30 +0000 (00:00 +0000)]
Add support for conditional definition of DNS flags to win-pre.h
If KRB5_USE_DNS is defined in the environment then Krb5_32.dll
will be built with DNS support.

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

25 years ago * replay.c (MATCH): Fix up to compare the correct components of
Tom Yu [Tue, 29 Jun 1999 02:03:02 +0000 (02:03 +0000)]
* replay.c (MATCH): Fix up to compare the correct components of
the input address.

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

25 years ago * dk_encrypt.c (krb5_marc_dk_encrypt): Call
Tom Yu [Tue, 29 Jun 1999 01:55:21 +0000 (01:55 +0000)]
* dk_encrypt.c (krb5_marc_dk_encrypt): Call
krb5_marc_dk_encrypt_length() instead of krb5_dk_encrypt_length()
to prevent blocksize errors.

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

25 years ago * enc_helper.c (krb5_encrypt_helper): NULL out the pointer to the
Tom Yu [Tue, 29 Jun 1999 01:53:43 +0000 (01:53 +0000)]
* enc_helper.c (krb5_encrypt_helper): NULL out the pointer to the
ciphertext if there is an error; this prevents stuff farther up
from freeing freed memory.

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

25 years agoCheck whether profile is valid before partying on it
Danilo Almeida [Wed, 23 Jun 1999 22:18:05 +0000 (22:18 +0000)]
Check whether profile is valid before partying on it

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

25 years agoDNS lookup implementation, conditionally compiled under KRB5_DNS_LOOKUP (which
Ken Raeburn [Mon, 21 Jun 1999 18:33:05 +0000 (18:33 +0000)]
DNS lookup implementation, conditionally compiled under KRB5_DNS_LOOKUP (which
is not defined).  Written by Ken Hornstein and Jeffrey Altman, with some minor
changes from me.

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

25 years agoBoost version to 1.0.8
Danilo Almeida [Mon, 21 Jun 1999 18:15:24 +0000 (18:15 +0000)]
Boost version to 1.0.8

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

25 years ago* init_ctx.c (krb5_free_context): Set field pointers to NULL after freeing
Ken Raeburn [Fri, 18 Jun 1999 22:51:40 +0000 (22:51 +0000)]
* init_ctx.c (krb5_free_context): Set field pointers to NULL after freeing
targets, in case higher-level code retains pointers into the context structure.
From Jeffrey Altman.

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

25 years agominor syntax cleanup
Ken Raeburn [Fri, 18 Jun 1999 22:19:19 +0000 (22:19 +0000)]
minor syntax cleanup

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

25 years ago * asn1_encode.c (asn1_encode_generaltime): Fix minor bug in
Tom Yu [Thu, 17 Jun 1999 21:31:56 +0000 (21:31 +0000)]
* asn1_encode.c (asn1_encode_generaltime): Fix minor bug in
bounds-checking for tm_year: 1900 + 8099 = 9999.

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

25 years ago* ccdefname.c (get_from_registry_indirect, try_dir, get_from_os):
Danilo Almeida [Thu, 17 Jun 1999 10:01:28 +0000 (10:01 +0000)]
* ccdefname.c (get_from_registry_indirect, try_dir, get_from_os):
        Extra robustness to win32 code.
* init_os_ctx.c (krb5_get_config_files, krb5_free_config_files):
        Add function to get config files being used for current
        context with corresponding free function.

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

25 years ago* krb5_32.def: Add krb5_get_default_config_files and
Danilo Almeida [Thu, 17 Jun 1999 09:59:36 +0000 (09:59 +0000)]
* krb5_32.def: Add krb5_get_default_config_files and
        krb5_free_config_files.

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

25 years ago* krb5.hin (krb5_get_default_config_files, krb5_free_config_files):
Danilo Almeida [Thu, 17 Jun 1999 09:59:00 +0000 (09:59 +0000)]
* krb5.hin (krb5_get_default_config_files, krb5_free_config_files):
        Add function to get default config files with corresponding
        free function.

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