aboutsummaryrefslogtreecommitdiff
path: root/src/lib/krb5/os/get_krbhst.c
AgeCommit message (Collapse)AuthorFilesLines
2000-10-17 * changepw.c: Cast length argument to recvfrom/sendto to intEzra Peisach1-1/+1
* os-proto.h: Moved extern definition of krb5_max_dgram_size, krb5_max_skdc_timeout, krb5_skdc_timeout_shift, krb5_skdc_timeout_1 here. * accessor.c: Definition for krb5_max_dgram_size, krb5_max_skdc_timeout, krb5_skdc_timeout_shift, krb5_skdc_timeout_1 moved to os-proto.h * osconfig.c: Changed definition for krb5_max_dgram_size, krb5_max_skdc_timeout, krb5_skdc_timeout_shift, krb5_skdc_timeout_1 to unsigned int. * get_krbhst.c, init_os_context.c, locate_kdc.c, prompter.c: Unsigned/signed int cleanup. * read_pwd.c (krb5_read_password): Change size_return to unsigned int *. * sendto_kdc.c: Remove definition for krb5_max_dgram_size, krb5_max_skdc_timeout, krb5_skdc_timeout_shift, krb5_skdc_timeout_1. (moved to os-proto.h). Cast arguments to int for send() and recv(). git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12783 dc483132-0cff-0310-8789-dd5450dbe970
1999-09-24copyright notice updates from 1.1 branchKen Raeburn1-1/+4
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@11853 dc483132-0cff-0310-8789-dd5450dbe970
1999-09-02from 1.1 branchKen Raeburn1-9/+14
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
1999-08-05* t_std_conf.c (test_get_krbhst): Use krb5_free_krbhst toDanilo Almeida1-3/+25
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
1995-06-07def_realm.c (krb5_get_default_realm), get_krbhst.cTheodore Tso1-105/+0
(krb5_get_krbhst), hst_realm.c (krb5_get_host_realm), init_os_ctx.c (krb5_os_init_context), osconfig.c, realm_dom.c (krb5_get_realm_domain): Remove old ifdef'ed code which read in krb.conf and krb.realms. read_pwd.c (krb5_read_password): Remove old #ifdef notdef code. Significantly simplified and cleaned up function. Removed BSD 4.3 compatibility code. (If we ever need to make this work on a non-POSIX system, we'll supply POSIX termios emulation functions in src/lib/krb5/posix.) git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@5964 dc483132-0cff-0310-8789-dd5450dbe970
1995-05-03nevermind..Mark Eichin1-18/+0
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@5695 dc483132-0cff-0310-8789-dd5450dbe970
1995-05-03 * get_krbhst.c (krb5_get_krbhst): look in KRB5_ENV_KDCMark Eichin1-0/+18
(KERBEROS_SERVER) for a REALM:SERVER string. This overrides anything else for that realm and is intended for un-installed client use, testsuite use, and diagnostic use. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@5686 dc483132-0cff-0310-8789-dd5450dbe970
1995-04-22Makefile.in, configure.in, t_std_conf.c: Add test program toTheodore Tso1-1/+1
test the standard configuration krb5 routines. osconfig.c: Don't define krb5_kdc_udp_portname and krb5_kdc_sec_portname any more. There's no real point... hst_realm.c (krb5_get_krbhst): Strip off the trailing dot from the hostname if present. locate_kdc.c (krb5_locate_kdc): Use the profile code to get the list of Kerberos servers (plus port numbers) for a particular realm from [realms]/<realm>/kdc git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@5442 dc483132-0cff-0310-8789-dd5450dbe970
1995-04-22def_realm.c (krb5_get_default_realm): Use the profile code toTheodore Tso1-0/+49
get the default realm from [libdefaults]/default_realm. get_krbhst.c (krb5_get_krbhst): Use the profile code to get the list of Kerberos servers for a particualar realm from [realms]/<realm>/kdc realm_dom.c (krb5_get_realm_domain): Use the profile code to get the default domain postfix for a realm (used only to convert V4 -> V5 principals) from [realms]/<realm>/default_domain hst_realm.c (krb5_get_host_realm): Use the profile code to get the default realm given a particular host from [domain_realm]/<host|domain> init_os_ctx.c (krb5_os_init_context): When the OS context is initialized, also initialize the profile file. This loads in the /etc/krb5.conf file. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@5438 dc483132-0cff-0310-8789-dd5450dbe970
1995-04-14Windows global stuff:Keith Vetter1-1/+1
o removed INTERFACE from non-api functions o add FAR to pointers visible to the world o made the tests for __STDC__ also check for _WINDOWS o creates GSSAPI.DLL & GSSAPI.LIB as per spec. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@5354 dc483132-0cff-0310-8789-dd5450dbe970
1995-04-06Bug fixes or better error handling for the following 4 Windows bugsKeith Vetter1-2/+6
(note, these changes haven't yet been tested on the PC which were failing so no guarantee that they fully work): a) GUI to cns improved so that you don't need a resize for the widgets to align properly, and so the interaction of typing: "username cr password cr" is all you need to do to get you a ticket. b) cns uses krb5_us_gettimeofday instead of krb5_timeofday because the former is more accurate and handles timezones. Probably should make the latter just call the former. c) Added SOCKET_INIT and SOCKET_DESTROY around krb5_sendto_kdc to prevent some tcp/ip stacks from locking up after 8 uses. d) Added a new error message and better error handling to give more precision as to why one PC was getting the error 'Cannot find KDC for requested realm.' git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@5342 dc483132-0cff-0310-8789-dd5450dbe970
1995-03-29Added functionality for windows to read default file locations fromKeith Vetter1-0/+1
windows ini files. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@5307 dc483132-0cff-0310-8789-dd5450dbe970
1995-03-07Port of most of the OS directory to the PCKeith Vetter1-2/+2
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@5079 dc483132-0cff-0310-8789-dd5450dbe970
1995-02-28Avoid <krb5/...> includesJohn Gilmore1-3/+1
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@5014 dc483132-0cff-0310-8789-dd5450dbe970
1995-01-23* get_krbhst.c (krb5_get_krbhst): Declare realm argument const,John Gilmore1-1/+1
to match prototype. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@4833 dc483132-0cff-0310-8789-dd5450dbe970
1995-01-13Removed all references to DECLARG and OLDDECLARG.Chris Provenzano1-3/+4
Added krb5_context to all krb5_routines. Moved init_ctx.c to init_os_ctx.c because a library cannot have more than on file with the same name. See krb5/krb/init_ctx.c git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@4811 dc483132-0cff-0310-8789-dd5450dbe970
1994-08-18stamp out rcs keywordsMark Eichin1-6/+1
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@4191 dc483132-0cff-0310-8789-dd5450dbe970
1993-10-15Change use of xfree to krb5_xfree to prevent namespace pollutionTheodore Tso1-2/+2
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@2670 dc483132-0cff-0310-8789-dd5450dbe970
1993-09-01Change export warning notice from "is assumed to require an export license"Theodore Tso1-2/+2
to "may require..." git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@2638 dc483132-0cff-0310-8789-dd5450dbe970
1991-12-20Fixes from pato@apollo.com:John Carr1-10/+26
1. allow extra whitespace in file 2. fix comparison of realm names to avoid prefix matches 3. reduce calls to realloc() git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@2197 dc483132-0cff-0310-8789-dd5450dbe970
1991-06-06Update copyright noticeJohn Kohl1-2/+16
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@2156 dc483132-0cff-0310-8789-dd5450dbe970
1991-04-30use a common strdup()John Kohl1-12/+1
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@2064 dc483132-0cff-0310-8789-dd5450dbe970
1991-02-19update copyright noticesJohn Kohl1-5/+4
use xfree(x) rather than free((char *)x) git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@1726 dc483132-0cff-0310-8789-dd5450dbe970
1990-10-29change index/rindex to strchr/strrchrJohn Kohl1-3/+3
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@1361 dc483132-0cff-0310-8789-dd5450dbe970
1990-09-12add rcsid_ to rcs stringJohn Kohl1-1/+1
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@1129 dc483132-0cff-0310-8789-dd5450dbe970
1990-05-25fix reference to copyright/distribution provisionsJohn Kohl1-1/+1
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@945 dc483132-0cff-0310-8789-dd5450dbe970
1990-05-23fix up include filesJohn Kohl1-4/+1
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@915 dc483132-0cff-0310-8789-dd5450dbe970
1990-04-27need an error if unknownJohn Kohl1-0/+1
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@625 dc483132-0cff-0310-8789-dd5450dbe970
1990-03-07*** empty log message ***John Kohl1-0/+142
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@368 dc483132-0cff-0310-8789-dd5450dbe970