krb5.git
22 years agoGet rid of some unused functions and files. Hide
Ken Raeburn [Sat, 13 Jul 2002 00:35:44 +0000 (00:35 +0000)]
Get rid of some unused functions and files.  Hide
krb5_gss_internal_release_oid, which is referenced only in its own source file.

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

22 years ago * gssapi_generic.h: allow inclusion by C++
Tom Yu [Sat, 13 Jul 2002 00:18:10 +0000 (00:18 +0000)]
* gssapi_generic.h: allow inclusion by C++

* gssapi.hin: Conditionalized pragmas for Metrowerks

* gssapi.hin: Added check for CFM compiles.  Removed dependency on
PRAGMA_* macros.  Moved check struct alignment check before struct
declarations.

* disp_com_err_status.c, gssapi.hin, gssapi_generic.h:
Updated Mac OS X headers to new framework layout

* gssapi_generic.h: Fixed check for Mac OS X includes.

[pullups from 1-2-2-branch]

* gssapiP_generic.h: use "" include for krb5.h
[pullup from 1-2-2-branch]

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

22 years ago* configure.in: Invoke AC_CANONICAL_HOST
Ken Raeburn [Fri, 12 Jul 2002 23:15:28 +0000 (23:15 +0000)]
* configure.in: Invoke AC_CANONICAL_HOST

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

22 years ago Makefile.in (HAVE_RUNTEST): Include $(DEJAFLAGS)
Ken Raeburn [Fri, 12 Jul 2002 23:15:15 +0000 (23:15 +0000)]
 Makefile.in (HAVE_RUNTEST): Include $(DEJAFLAGS)

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

22 years ago* rlogin.exp: Fix previous change
Ken Raeburn [Fri, 12 Jul 2002 23:10:54 +0000 (23:10 +0000)]
* rlogin.exp: Fix previous change

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

22 years ago* init_sec_context.c (make_ap_req_v2): Delete unused function
Ken Raeburn [Fri, 12 Jul 2002 21:51:40 +0000 (21:51 +0000)]
* init_sec_context.c (make_ap_req_v2): Delete unused function

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

22 years ago* accept_sec_context.c (rd_and_store_for_creds): Don't declare krb5_mcc_ops
Ken Raeburn [Fri, 12 Jul 2002 21:48:13 +0000 (21:48 +0000)]
* accept_sec_context.c (rd_and_store_for_creds): Don't declare krb5_mcc_ops

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

22 years ago* init_sec_context.c (krb5_gss_init_sec_context): Instead of asking for the
Ken Raeburn [Fri, 12 Jul 2002 21:46:11 +0000 (21:46 +0000)]
* init_sec_context.c (krb5_gss_init_sec_context): Instead of asking for the
enctypes supported by the GSS code, use that set as a filter on the default
enctypes and use the resulting list.

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

22 years ago* accept_sec_context.c (rd_and_store_for_creds): Remove registration of memory ccache...
Ken Raeburn [Fri, 12 Jul 2002 21:45:23 +0000 (21:45 +0000)]
* accept_sec_context.c (rd_and_store_for_creds): Remove registration of memory ccache type

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

22 years agoDon't install port-sockets.h, and don't include it from <kerberosIV/krb.h>.
Ken Raeburn [Fri, 12 Jul 2002 20:21:33 +0000 (20:21 +0000)]
Don't install port-sockets.h, and don't include it from <kerberosIV/krb.h>.
Instead, include it in the source files that need it.

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

22 years agoDocument SDK requirement
Sam Hartman [Fri, 12 Jul 2002 19:31:08 +0000 (19:31 +0000)]
Document SDK requirement

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

22 years ago * login.M: added information about different command line options;
Jen Selby [Tue, 9 Jul 2002 23:11:33 +0000 (23:11 +0000)]
    * login.M: added information about different command line options;
        changed defaults given for tags that did not match code
        * login.c: changed inaccurate comments

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

22 years agoPut # for cpp directives in first column
Ken Raeburn [Tue, 9 Jul 2002 19:39:04 +0000 (19:39 +0000)]
Put # for cpp directives in first column

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

22 years ago* krlogind.c (protocol): Initialize pbp, fbp. Change left to type size_t
Ken Raeburn [Tue, 9 Jul 2002 18:40:52 +0000 (18:40 +0000)]
* krlogind.c (protocol): Initialize pbp, fbp.  Change left to type size_t

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

22 years agoupdate copyright dates
Ken Raeburn [Tue, 9 Jul 2002 18:39:29 +0000 (18:39 +0000)]
update copyright dates

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

22 years agoupdate dependencies
Ken Raeburn [Tue, 9 Jul 2002 18:28:56 +0000 (18:28 +0000)]
update dependencies

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

22 years ago* sn2princ.c: Include fake-addrinfo.h.
Ken Raeburn [Tue, 9 Jul 2002 18:25:56 +0000 (18:25 +0000)]
* sn2princ.c: Include fake-addrinfo.h.
(krb5_sname_to_principal): Use getaddrinfo and getnameinfo instead of
gethostbyname and gethostbyaddr.

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

22 years ago* hst_realm.c (krb5_get_host_realm): Return KRB5_ERR_NUMERIC_REALM if the
Ken Raeburn [Tue, 9 Jul 2002 18:16:00 +0000 (18:16 +0000)]
* hst_realm.c (krb5_get_host_realm): Return KRB5_ERR_NUMERIC_REALM if the
hostname is a numeric-address form.

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

22 years ago* krb5_err.et (KRB5_ERR_NUMERIC_REALM): New error code
Ken Raeburn [Tue, 9 Jul 2002 18:13:05 +0000 (18:13 +0000)]
* krb5_err.et (KRB5_ERR_NUMERIC_REALM): New error code

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

22 years agoback out changes accidentally checked in
Ken Raeburn [Mon, 8 Jul 2002 19:50:23 +0000 (19:50 +0000)]
back out changes accidentally checked in

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

22 years ago* localaddr.c (get_localaddrs): Split out main body of krb5_os_localaddr, add
Ken Raeburn [Mon, 8 Jul 2002 19:49:39 +0000 (19:49 +0000)]
* localaddr.c (get_localaddrs): Split out main body of krb5_os_localaddr, add
an argument to indicate whether addresses listed in the profile should be
included.
(krb5_os_localaddr): Call it.
(krb5int_local_addresses): Call get_localaddrs but skip profile-listed
addresses.

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

22 years agoAdd hooks to optionally report local address used when contacting a KDC-like
Ken Raeburn [Mon, 8 Jul 2002 19:48:36 +0000 (19:48 +0000)]
Add hooks to optionally report local address used when contacting a KDC-like
service via UDP.  Currently unused, this will eventually be used for MacOS
support for krb524.

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

22 years ago * et_c.awk: Fix up <com_err.h> inclusion for windows and mac
Tom Yu [Mon, 8 Jul 2002 17:22:24 +0000 (17:22 +0000)]
* et_c.awk: Fix up <com_err.h> inclusion for windows and mac

* et_c.pl: Regenerate.

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

22 years ago * aclocal.m4 (KRB5_AC_INET6): Use the three argument form of
Ezra Peisach [Sat, 6 Jul 2002 03:41:42 +0000 (03:41 +0000)]
    * aclocal.m4 (KRB5_AC_INET6): Use the three argument form of
        AC_DEFINE so that comment will be added to autoconf.h.in without
        requiring acconfig.h change.

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

22 years ago* Makefile.in (SLIBSH): Use vertical-bar instead of comma for substituting CC
Ken Raeburn [Sat, 6 Jul 2002 01:56:35 +0000 (01:56 +0000)]
* Makefile.in (SLIBSH): Use vertical-bar instead of comma for substituting CC
in case the CC specified uses commas.

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

22 years agonetwork.c (setup_port): Enable ipv6
Ken Raeburn [Sat, 6 Jul 2002 01:06:44 +0000 (01:06 +0000)]
network.c (setup_port): Enable ipv6

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

22 years ago* aclocal.m4 (KRB5_AC_INET6): Include netdb.h when checking for getaddrinfo, in
Ken Raeburn [Sat, 6 Jul 2002 01:03:56 +0000 (01:03 +0000)]
* aclocal.m4 (KRB5_AC_INET6): Include netdb.h when checking for getaddrinfo, in
case it's a macro.

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

22 years ago* sendto_kdc.c (service_tcp_fd): sockerrlen should have type socklen_t
Ken Raeburn [Fri, 5 Jul 2002 22:28:24 +0000 (22:28 +0000)]
* sendto_kdc.c (service_tcp_fd): sockerrlen should have type socklen_t

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

22 years agoupdate deps
Ken Raeburn [Fri, 5 Jul 2002 22:23:18 +0000 (22:23 +0000)]
update deps

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

22 years agolog msgs for configure.in and fake-addrinfo.h changes accidentally checked in with...
Ken Raeburn [Fri, 5 Jul 2002 21:40:37 +0000 (21:40 +0000)]
log msgs for configure.in and fake-addrinfo.h changes accidentally checked in with port-sockets.h

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

22 years ago* port-sockets.h (SOCKET_WRITEV) [!_WIN32]: Use TMP after setting it, to silence...
Ken Raeburn [Fri, 5 Jul 2002 21:39:33 +0000 (21:39 +0000)]
* port-sockets.h (SOCKET_WRITEV) [!_WIN32]: Use TMP after setting it, to silence compiler warnings

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

22 years ago * krb5_libinit.c: Conditionalized error table loading for
Tom Yu [Fri, 5 Jul 2002 21:07:45 +0000 (21:07 +0000)]
* krb5_libinit.c: Conditionalized error table loading for
Mac OS X.  Error tables should always be loaded on other
platforms.

* krb5_libinit.c: Added an include for com_err.h since
it is not included by error table headers on Mac OS X.  Also
fixed busted check for Mac OS

[pullups form 1-2-2-branch]

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

22 years ago* network.c: Include fake-addrinfo.h
Ken Raeburn [Fri, 5 Jul 2002 21:02:58 +0000 (21:02 +0000)]
* network.c: Include fake-addrinfo.h

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

22 years ago* dispatch.c, do_as_req.c, do_tgs_req.c: Define NEED_SOCKETS before including k5...
Ken Raeburn [Fri, 5 Jul 2002 20:49:46 +0000 (20:49 +0000)]
* dispatch.c, do_as_req.c, do_tgs_req.c: Define NEED_SOCKETS before including k5-int.h

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

22 years agoReduce or localize dependencies on address families.
Ken Raeburn [Fri, 5 Jul 2002 19:56:15 +0000 (19:56 +0000)]
Reduce or localize dependencies on address families.
* kdc_util.h (ADDRTYPE2FAMILY): New macro.
* do_as_req.c (process_as_req): Use inet_ntop instead of inet_ntoa.
* do_tgs_req.c (process_tgs_req): Ditto.
* dispatch.c (dispatch): Fix inet_ntop code, and use it always.
* kerberos_v4.c (process_v4): Check address family before copying out an IPv4
address.  Log if not IPv4, but continue.
* network.c (set_sa_port): New function.
(setup_port): Use it.  Combine IPv4 and IPv6 paths; IPv6 still disabled for
now.  Modify supplied sockaddr instead of making a copy.
(process_packet): SADDR is now sockaddr_storage.  Use socket-utils macros
instead of casting.  Enable the IPv6 code.

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

22 years ago * init_os_ctx.c: krb4 needs to get the os config files so it can use
Tom Yu [Wed, 3 Jul 2002 23:49:20 +0000 (23:49 +0000)]
* init_os_ctx.c: krb4 needs to get the os config files so it can use
the profile too.  Define these functions on Mac OS X now.

* init_os_ctx.c: Removed use of FSSpecs because these cause serious
performance problems on Mac OS X.  We now search paths the same way
the rest of the Unix platforms do.

[pullups from 1-2-2-branch]

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

22 years ago * osconf.h (DEFAULT_PROFILE_PATH): Conditionalized for Mac OS X
Tom Yu [Wed, 3 Jul 2002 23:39:55 +0000 (23:39 +0000)]
* osconf.h (DEFAULT_PROFILE_PATH): Conditionalized for Mac OS X
to look in Mac OS X Preferences file locations.
[pullup from 1-2-2-branch]

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

22 years ago2002-07-03 Tom Yu <tlyu@mit.edu>
Tom Yu [Wed, 3 Jul 2002 22:40:42 +0000 (22:40 +0000)]
2002-07-03  Tom Yu  <tlyu@mit.edu>

* Makefile.in: Fix rebuild rules et_?.perl -> et_?.pl.  Also,
strip the "#!" line.

* error_table.h: Fix mac conditional, due to _et_list declaration
moving from et_c.awk

* et_c.perl, et_h.perl: Remove.

* et_c.pl, et_h.pl: Generate.

[porting some 1-2-2-branch changes]

* com_err.h: Windows should include <win-mac.h> as opposed
to <Kerberos5/win-mac.h>

* et_c.perl, et_h.perl:
        Renamed to et_c.pl and et_h.pl because the extension is used
        as a newline separator heuristic in MacPerl parser

* et_c.perl, et_h.perl:
        Removed #! from the first line to avoid confusing MacPerl

* com_err.h, error_message.c, et.pbexp, et_c.awk, et_h.awk:
        conditionalized com_err so it doesn't need to export et_list
        on Mac OS X

[pullups from 1-2-2-branch]

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

22 years ago * user-guide.texinfo: Change `@end rawhtml' to `@end html' Texinfo
Ezra Peisach [Wed, 3 Jul 2002 15:05:45 +0000 (15:05 +0000)]
* user-guide.texinfo: Change `@end rawhtml' to `@end html' Texinfo
4 is more particular about matching @ifhtml (texinfo 3 did not
check). klist, ftp, and rcp postscript man pages have an
additional page now.

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

22 years ago* network.c (process_packet): Now static. Drop unused "portnum" argument.
Ken Raeburn [Tue, 2 Jul 2002 04:29:44 +0000 (04:29 +0000)]
* network.c (process_packet): Now static.  Drop unused "portnum" argument.
Change caller.
* kdc_util.h (process_packet): Delete declaration.

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

22 years ago* kdc_util.h (inet_ntop): Delete declaration
Ken Raeburn [Tue, 2 Jul 2002 04:25:35 +0000 (04:25 +0000)]
* kdc_util.h (inet_ntop): Delete declaration

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

22 years agodisable inet_ntop definition
Ken Raeburn [Tue, 2 Jul 2002 04:21:39 +0000 (04:21 +0000)]
disable inet_ntop definition

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

22 years ago* init_sec_context.c (get_credentials): Delete unused variable
Ken Raeburn [Mon, 1 Jul 2002 21:03:59 +0000 (21:03 +0000)]
* init_sec_context.c (get_credentials): Delete unused variable

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

22 years ago* rlogin.exp: Update expected "encrypting" message for encrypted rlogin
Ken Raeburn [Mon, 1 Jul 2002 20:49:59 +0000 (20:49 +0000)]
* rlogin.exp: Update expected "encrypting" message for encrypted rlogin

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

22 years agoremove gss krb5 mech2 oid and oidset variables
Ken Raeburn [Mon, 1 Jul 2002 20:48:34 +0000 (20:48 +0000)]
remove gss krb5 mech2 oid and oidset variables

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

22 years agofix some compiler warnings
Ken Raeburn [Mon, 1 Jul 2002 20:45:39 +0000 (20:45 +0000)]
fix some compiler warnings

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

22 years agoupdated deps
Ken Raeburn [Fri, 28 Jun 2002 19:32:41 +0000 (19:32 +0000)]
updated deps

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

22 years ago * rsh.M: added warning that encryption does not encrypt the
Jen Selby [Thu, 27 Jun 2002 17:51:52 +0000 (17:51 +0000)]
    * rsh.M: added warning that encryption does not encrypt the
        command line
        *rlogin.M: added warning that username is sent unencrypted

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

22 years ago * configure.in: Modify test for in6addr_any definition in C
Ezra Peisach [Wed, 26 Jun 2002 22:39:02 +0000 (22:39 +0000)]
* configure.in: Modify test for in6addr_any definition in C
library. Original test was stripped out by optimizing gcc
compiler.

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

22 years ago * Makefile: changed the way html output is generated, made "make all"
Jen Selby [Wed, 26 Jun 2002 21:15:11 +0000 (21:15 +0000)]
    * Makefile: changed the way html output is generated, made "make all"
        remove generated tex files
        * admin.texinfo: added sections about encryption types and salts,
        updated the configuration file sections, revised the example
        configuration files, updated dates on output strings, added an
        explanation of destroying a Kerberos database
        * build.texinfo: changed the description of the tarball
        * definitions.texinfo: added variables for all the default values
        so that they can all be updated in one place, changed the release
        from 1.2 to 1.3
        * dnstxt.texinfo updated the information
        * install.texinfo added more description of the configuration files
        and the minimum needed in the files to set up a kerberos realm,
        revised the examples of the configuration file sections, took out
        old encryption type and salt information
        * kdcconf.texinfo: new file, taken from the admin guide and included
        in both the admin and install guides, provides descriptions of the
        sections in kdc.conf
        * krb425.texinfo: moved a texinfo tag so that makeinfo --html would
        work
        * krb5conf.texinfo: new file, take from the admin guide and included
        in both the admin and install guides, provides descriptions of the
        sections in krb5.conf
        * man2html, man2html.M: new files, a perl program to create html pages
        from the output of the man command
        * salts.texinfo: new file, a description of the different salt types
        that are currently supported
        * support-enc.texinfo: new file, a description of the currently
        supported encryptions types
        * user-guide.texinfo: added a section describing different ticket
        flags, added a way to have the man pages in the reference section
        accessible in the html version of the documentation

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

22 years ago * appdefault.c (conf_boolean): Change variable from char ** to
Ezra Peisach [Wed, 26 Jun 2002 17:31:21 +0000 (17:31 +0000)]
* appdefault.c (conf_boolean): Change variable from char ** to
const char ** to prevent warning of const to non-const.

* get_in_tkt.c (_krb5_conf_boolean): Same

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

22 years ago* dispatch.c (dispatch): Remove arg "portnum"; update callers.
Ken Raeburn [Wed, 26 Jun 2002 06:26:22 +0000 (06:26 +0000)]
* dispatch.c (dispatch): Remove arg "portnum"; update callers.
* do_as_req.c (process_as_req): Ditto.
* do_tgs_req.c (process_tgs_req): Ditto.
* kerberos_v4.c (process_v4): Remove arg "is_secondary"; update callers.
* kdc_util.h (dispatch, process_as_req, process_tgs_req, process_v4): Update
prototypes.
* main.c (init_realm): Remove unused variable.

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

22 years ago * krb5_libinit.c: Added an include for com_err.h since
Tom Yu [Wed, 26 Jun 2002 00:23:33 +0000 (00:23 +0000)]
* krb5_libinit.c: Added an include for com_err.h since
it is not included by error table headers on Mac OS X.  Also
fixed busted check for Mac OS

* krb5_libinit.c: added #define for Mac OS X so
that krb5int_cleanup_library calls krb5_stdcc_shutdown.

[pullups from 1-2-2-branch]

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

22 years ago * appdefault.c, get_in_tkt.c: made conf_yes and conf_no const to
Tom Yu [Wed, 26 Jun 2002 00:12:13 +0000 (00:12 +0000)]
* appdefault.c, get_in_tkt.c: made conf_yes and conf_no const to
improve load time on Mach-O

* init_ctx: fixed Mac OS macros

[pullups from 1-2-2-branch]

* rd_safe.c, rd_priv.c, rd_cred.c, preauth.c, mk_safe.c,
mk_cred.c, appdefault.c: use "" includes for krb5.h, k5-int.h and
syslog.h
[pullup from 1-2-2-branch]

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

22 years ago* fake-addrinfo.h (GET_SERV_BY_PORT) [HAVE_GETSERVBYNAME_R &&
Ken Raeburn [Tue, 25 Jun 2002 23:33:36 +0000 (23:33 +0000)]
* fake-addrinfo.h (GET_SERV_BY_PORT) [HAVE_GETSERVBYNAME_R &&
!GETSERVBYNAME_R_RETURNS_INT]: Fix getservbyport_r calling sequence, based on
IRIX man pages.
(getaddrinfo) [WRAP_GETADDRINFO]: Handle case where gethostbyname fails because
host has no IPv4 addresses.  Don't return a success indication without
replacing the old ai_canonname value if it wasn't null.

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

22 years ago* socket-utils.h (ss2sin6): Enable compilation of inline function version
Ken Raeburn [Tue, 25 Jun 2002 23:26:35 +0000 (23:26 +0000)]
* socket-utils.h (ss2sin6): Enable compilation of inline function version

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

22 years agoenable ipv6 rsh connections
Ken Raeburn [Tue, 25 Jun 2002 23:19:52 +0000 (23:19 +0000)]
enable ipv6 rsh connections

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

22 years ago* defines.h (default_realm): Declare
Ken Raeburn [Tue, 25 Jun 2002 23:15:11 +0000 (23:15 +0000)]
* defines.h (default_realm): Declare

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

22 years ago* kcmd.c (setup_secondary_channel): Use select to time out after 10 minutes, or
Ken Raeburn [Tue, 25 Jun 2002 22:33:12 +0000 (22:33 +0000)]
* kcmd.c (setup_secondary_channel): Use select to time out after 10 minutes, or
notice the primary channel being closed or receiving data while we wait for the
secondary one to be set up.

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

22 years agoupdate dependencies
Ken Raeburn [Tue, 25 Jun 2002 21:52:30 +0000 (21:52 +0000)]
update dependencies

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

22 years agoback out some changes that weren't ready
Ken Raeburn [Tue, 25 Jun 2002 21:50:00 +0000 (21:50 +0000)]
back out some changes that weren't ready

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

22 years agosome changes missed in last checking
Ken Raeburn [Tue, 25 Jun 2002 21:48:05 +0000 (21:48 +0000)]
some changes missed in last checking

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

22 years agoget rid of lib/krb5util
Ken Raeburn [Tue, 25 Jun 2002 21:44:35 +0000 (21:44 +0000)]
get rid of lib/krb5util

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

22 years ago* k5-util.h (krb5_compat_recvauth, krb5_compat_recvauth_version): Declarations deleted
Ken Raeburn [Tue, 25 Jun 2002 21:40:57 +0000 (21:40 +0000)]
* k5-util.h (krb5_compat_recvauth, krb5_compat_recvauth_version): Declarations deleted

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

22 years agoMove compat_recv.c from krb5util library. Move some duplicated code into
Ken Raeburn [Tue, 25 Jun 2002 21:38:38 +0000 (21:38 +0000)]
Move compat_recv.c from krb5util library.  Move some duplicated code into
kcmd.c.  Use getnameinfo and sockaddr_storage more.

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

22 years ago* Makefile.in (ftpd): Don't use krb5util library
Ken Raeburn [Tue, 25 Jun 2002 21:04:16 +0000 (21:04 +0000)]
* Makefile.in (ftpd): Don't use krb5util library

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

22 years ago* Makefile.in (ksu): Don't use krb5util library
Ken Raeburn [Tue, 25 Jun 2002 21:03:36 +0000 (21:03 +0000)]
* Makefile.in (ksu): Don't use krb5util library

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

22 years agomove krb5_sete[ug]id from libkrb5util (fn) to k5-util.h (macro)
Ken Raeburn [Tue, 25 Jun 2002 20:56:17 +0000 (20:56 +0000)]
move krb5_sete[ug]id from libkrb5util (fn) to k5-util.h (macro)

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

22 years ago* krsh.c (SECURE_MESSAGE): Only indicate that input/output data are being
Ken Raeburn [Tue, 25 Jun 2002 17:22:25 +0000 (17:22 +0000)]
* krsh.c (SECURE_MESSAGE): Only indicate that input/output data are being
encrypted, and don't automatically say it's with DES.

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

22 years agoipv6 support in krlogind.c
Ken Raeburn [Tue, 25 Jun 2002 17:21:10 +0000 (17:21 +0000)]
ipv6 support in krlogind.c

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

22 years agomore misc notes on getaddrinfo
Ken Raeburn [Tue, 25 Jun 2002 03:04:10 +0000 (03:04 +0000)]
more misc notes on getaddrinfo

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

22 years agoFix etype info; wrong termination condition used in get_etype_info
Sam Hartman [Mon, 24 Jun 2002 22:31:16 +0000 (22:31 +0000)]
Fix etype info; wrong termination condition used in get_etype_info

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

22 years agoupdated output lines from kinit
Jen Selby [Mon, 24 Jun 2002 21:36:00 +0000 (21:36 +0000)]
updated output lines from kinit

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

22 years ago* port-sockets.h (win_socket_initialize): Delete declaration
Ken Raeburn [Mon, 24 Jun 2002 20:54:26 +0000 (20:54 +0000)]
* port-sockets.h (win_socket_initialize): Delete declaration

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

22 years ago * asn1_encode.c (asn1_encode_generaltime): Remove call to
Tom Yu [Mon, 24 Jun 2002 20:27:58 +0000 (20:27 +0000)]
* asn1_encode.c (asn1_encode_generaltime): Remove call to
unix_time_to_msl_time(), as it's Mac OS 9 specific and was missed
in the previous change.

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

22 years ago * asn1_encode.c: Removed unused Mac OS 9 code
Tom Yu [Mon, 24 Jun 2002 19:48:40 +0000 (19:48 +0000)]
* asn1_encode.c: Removed unused Mac OS 9 code

* asn1_encode.c (asn1_encode_generaltime): Fixed the Mac code to
use the correct epoch.

* asn1_encode.c: Updated Utilities.h #include

[pullups from 1-2-2-branch]

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

22 years ago * asn1_get.c (asn1_get_length): Check for negative length.
Tom Yu [Mon, 24 Jun 2002 19:20:51 +0000 (19:20 +0000)]
* asn1_get.c (asn1_get_length): Check for negative length.
[pullup from 1-2-2-branch]

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

22 years ago * c_ustime.c: Remove various things missed in 1-2-2-branch MacOS
Tom Yu [Sat, 22 Jun 2002 07:10:20 +0000 (07:10 +0000)]
* c_ustime.c: Remove various things missed in 1-2-2-branch MacOS
microseconds timer removal.

* c_ustime.c: punted the accurate microseconds timing code because it
wasn't so accurate after all.
[pullup from 1-2-2-branch]

* init_os_ctx.c: Add CoreServices.h before k5-int.h so we don't get
multiple definitions for FSSpec.  Also removed an unused variable in
Mac OS X code and added casts for Mac OS X code so FSSpecs are cast
to profile file types (code deals properly on the other side)

* timeofday.c: Added casts to remove warnings

* ccdefname.c, init_os_ctx.c, timeofday.c: Updated Mac OS X
headers to new framework layout and updated Mac OS macros

* read_pwd.c: Removed #defines for Mac OS X (__MACH__) because we
now export krb5_read_password on Mac OS X

[pullups from 1-2-2-branch]

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

22 years agoOops, missed one
Tom Yu [Sat, 22 Jun 2002 00:36:07 +0000 (00:36 +0000)]
Oops, missed one

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

22 years ago * krb5.hin: Fix up yet more CALLCONV botches from last merge
Tom Yu [Fri, 21 Jun 2002 23:18:40 +0000 (23:18 +0000)]
* krb5.hin: Fix up yet more CALLCONV botches from last merge

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

22 years ago * ccache.c (printtime): Do not assume that krb5_timestamp and
Ezra Peisach [Fri, 21 Jun 2002 19:31:55 +0000 (19:31 +0000)]
* ccache.c (printtime): Do not assume that krb5_timestamp and
time_t are the same size as an argument to localtime.

* heuristic.c (get_authorized_princ_names): If .k5login file
exists but is not owned by the user, do not attempt to fclose an
uninitialized FILE *.

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

22 years ago * fake-addrinfo.h: If IPv6 support is compiled in, but the OS does
Ezra Peisach [Fri, 21 Jun 2002 19:21:44 +0000 (19:21 +0000)]
* fake-addrinfo.h: If IPv6 support is compiled in, but the OS does
not provide in6addr_any in libc, provide a static copy.

* configure.in: If IPv6 support is compiled in, test for existence
of in6addr_any in libc.

Irix 6.5.16 declares it, and some libraries appear to depend on it, but
it is not defined in any libraries that I could find.

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

22 years ago * implementor.texinfo (IPv6 Support): Update fact that IRIX 6.5.16
Ezra Peisach [Fri, 21 Jun 2002 19:17:40 +0000 (19:17 +0000)]
* implementor.texinfo (IPv6 Support): Update fact that IRIX 6.5.16
has enough support for configure to believe IPv6 support works,
but the libraries fail to provide a definition of in6addr_any
(although netinet/in.h implies it foes).

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

22 years agoupdate dependencies
Ken Raeburn [Fri, 21 Jun 2002 18:15:13 +0000 (18:15 +0000)]
update dependencies

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

22 years ago* port-sockets.h [!_WIN32 && !HAVE_MACSOCK_H]: Include krb5/autoconf.h, to get HAVE_S...
Ken Raeburn [Fri, 21 Jun 2002 18:13:34 +0000 (18:13 +0000)]
* port-sockets.h [!_WIN32 && !HAVE_MACSOCK_H]: Include krb5/autoconf.h, to get HAVE_SYS_UIO_H

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

22 years ago* mk_priv.c (krb4int_address_less): Put braces around v4mapped address
Ken Raeburn [Fri, 21 Jun 2002 17:52:51 +0000 (17:52 +0000)]
* mk_priv.c (krb4int_address_less): Put braces around v4mapped address
processing to permit local variable declaration.  Pass correct value to
IN6_IS_ADDR_V4MAPPED.

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

22 years ago * winccld.c: Include k5-int.h to get hidden ops struct.
Tom Yu [Thu, 20 Jun 2002 23:03:25 +0000 (23:03 +0000)]
* winccld.c: Include k5-int.h to get hidden ops struct.
[pullup from 1-2-2-branch]

2002-06-20  Alexandra Ellwood <lxs@mit.edu>

* stdcc.h: Added prototype for krb5_stdcc_shutdown.

* stdcc.h, stdcc_util.h, stdcc_util.c: Updated Mac OS X headers to new
framework layout

* stdcc.c: Removed unused variables and fixed macros to reduce warnings

[pullups from 1-2-2-branch]

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

22 years ago * Makefile.in: Build cc accessor functions on Windows
Tom Yu [Thu, 20 Jun 2002 23:02:31 +0000 (23:02 +0000)]
* Makefile.in: Build cc accessor functions on Windows

* ccdefault.c: updated to new KLL function name

* ccdefault.c: swapped include of KerberosLoginPrivate with
k5-int.h to avoid problems with including CoreServices.h after
profile.h and krb.h

* ccdefault.c: Updated Mac OS X headers to new framework layout

* ccdefops.c: created #define for USE_CCAPI now that both Mac OS 9
and Mac OS 10 use ccapi.

[pullups from 1-2-2-branch]

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

22 years ago* configure.in: Check for sys/uio.h.
Ken Raeburn [Thu, 20 Jun 2002 19:43:41 +0000 (19:43 +0000)]
* configure.in: Check for sys/uio.h.
* port-sockets.h [!_WIN32 && !HAVE_MACSOCK_H]: Include sys/uio.h if available,
to get struct iovec.

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

22 years agoTouch up comments on shared libraries
Sam Hartman [Thu, 20 Jun 2002 16:40:02 +0000 (16:40 +0000)]
Touch up comments on shared libraries

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

22 years ago * srv_net.c: Conditionalize debugging variables inside DEBUG
Ezra Peisach [Wed, 19 Jun 2002 21:38:13 +0000 (21:38 +0000)]
    * srv_net.c: Conditionalize debugging variables inside DEBUG
        conditional.

        * kpasswd.c (main): Conditionalize local variables inside
        definition of LANGUAGES_SUPPORTED to avoid a variable being set
        with out use warning.

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

22 years ago * Makefile.in (clean): Add t_prng and t_prng.o
Ezra Peisach [Wed, 19 Jun 2002 21:25:09 +0000 (21:25 +0000)]
   * Makefile.in (clean): Add t_prng and t_prng.o

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

22 years ago * Makefile.in (clean-unix): Remove t_crc.o and t_crc
Ezra Peisach [Wed, 19 Jun 2002 21:24:52 +0000 (21:24 +0000)]
   * Makefile.in (clean-unix): Remove t_crc.o and t_crc

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

22 years ago* init_os_ctx.c: Don't include sys/ioctl.h or sys/filio.h.
Ken Raeburn [Wed, 19 Jun 2002 21:05:24 +0000 (21:05 +0000)]
* init_os_ctx.c: Don't include sys/ioctl.h or sys/filio.h.
(krb5_os_init_context): Drop /dev/[u]random support, the Yarrow code will deal
with that now.

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

22 years ago* prof_parse.c (strip_line): Simplify loop by preserving "p" rather than
Ken Raeburn [Wed, 19 Jun 2002 21:03:00 +0000 (21:03 +0000)]
* prof_parse.c (strip_line): Simplify loop by preserving "p" rather than
recomputing it.

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

22 years agouse strdup
Ken Raeburn [Wed, 19 Jun 2002 21:02:37 +0000 (21:02 +0000)]
use strdup

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

22 years ago * toffset.c (krb5_get_time_offsets), an_to_ln.c
Tom Yu [Tue, 18 Jun 2002 23:51:08 +0000 (23:51 +0000)]
* toffset.c (krb5_get_time_offsets), an_to_ln.c
(krb5_aname_to_localname): Make KRB5_CALLCONV.
[pullup from 1-2-2-branch]

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

22 years agoavoid redundant definitions of socket-related error codes for Windows
Ken Raeburn [Tue, 18 Jun 2002 23:50:11 +0000 (23:50 +0000)]
avoid redundant definitions of socket-related error codes for Windows

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

22 years agoClient-side TCP support update for Windows.
Ken Raeburn [Tue, 18 Jun 2002 23:46:32 +0000 (23:46 +0000)]
Client-side TCP support update for Windows.
Some support for scatter/gather socket i/o added via macros in port-sockets.h.

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

22 years ago * princ_comp.c (krb5_realm_compare), auth_con.c
Tom Yu [Tue, 18 Jun 2002 23:40:40 +0000 (23:40 +0000)]
* princ_comp.c (krb5_realm_compare), auth_con.c
(krb5_auth_con_setports, krb5_auth_con_getaddrs,
krb5_auth_con_initivector), addr_order.c (krb5_address_order),
addr_comp.c (krb5_address_compare): Make KRB5_CALLCONV.
[pullup from 1-2-2-branch]

* bld_princ.c (krb5_build_principal_va): Make
krb5_build_principal_va() KRB5_CALLCONV.
[pullup from 1-2-2-branch]

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