Tom Yu [Fri, 30 Jan 1998 21:09:51 +0000 (21:09 +0000)]
* configure.in: Add new directory for kpasswd
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@10395
dc483132-0cff-0310-8789-
dd5450dbe970
Tom Yu [Fri, 30 Jan 1998 21:08:00 +0000 (21:08 +0000)]
* kpasswd.c:
* kpasswd.M:
* Makefile.in:
* configure.in: New: Cygnus kpasswd client.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@10394
dc483132-0cff-0310-8789-
dd5450dbe970
Tom Yu [Fri, 30 Jan 1998 21:05:00 +0000 (21:05 +0000)]
* Makefile.in: Remove install rules
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@10393
dc483132-0cff-0310-8789-
dd5450dbe970
Tom Yu [Fri, 30 Jan 1998 20:56:47 +0000 (20:56 +0000)]
* changepw.c (krb5_change_password): KRB5_USE_INET ->
HAVE_NETINET_IN_H.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@10392
dc483132-0cff-0310-8789-
dd5450dbe970
Ezra Peisach [Fri, 30 Jan 1998 16:31:44 +0000 (16:31 +0000)]
Makefile.in (clean-unix): Remove EXPORTED_BUILT_HEADERS as well
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@10391
dc483132-0cff-0310-8789-
dd5450dbe970
Dan Winship [Fri, 30 Jan 1998 01:24:59 +0000 (01:24 +0000)]
* ftpd.c (auth_data): Accept forwarded credentials and dispose of
them properly. (And fix some indentation bugs.)
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@10390
dc483132-0cff-0310-8789-
dd5450dbe970
Dan Winship [Fri, 30 Jan 1998 01:20:11 +0000 (01:20 +0000)]
* accept_sec_context.c (rd_and_store_for_creds): Don't mess with
krb5_cc_default--use a new mem-based ccache.
* Makefile.in:
* gssapi_krb5.h:
* copy_ccache.c (gss_krb5_copy_ccache): Routine to copy a
gss_cred_id_t (such as a forwarded creds) into an existing
krb5_ccache.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@10389
dc483132-0cff-0310-8789-
dd5450dbe970
Dan Winship [Fri, 30 Jan 1998 01:17:17 +0000 (01:17 +0000)]
* krb5.hin: fix #define of krb5_cc_gen_new (takes a krb5_ccache *,
not a krb5_ccache)
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@10388
dc483132-0cff-0310-8789-
dd5450dbe970
Dan Winship [Fri, 30 Jan 1998 00:57:03 +0000 (00:57 +0000)]
Add -x (automatically encrypt) and -f (forward credentials) options
Don't complain about missing ftp/hostname principal if there's a
usable host/hostname.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@10387
dc483132-0cff-0310-8789-
dd5450dbe970
Dan Winship [Wed, 28 Jan 1998 22:22:50 +0000 (22:22 +0000)]
* telnetd.c (doit): additional fix for previous terminaltype change
(fixes a bug that caused TERM to be set to "")
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@10384
dc483132-0cff-0310-8789-
dd5450dbe970
Ezra Peisach [Wed, 28 Jan 1998 14:03:49 +0000 (14:03 +0000)]
* kdc.conf.M: Document the v4_mode option. [krb5-kdc/464]
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@10383
dc483132-0cff-0310-8789-
dd5450dbe970
Ezra Peisach [Wed, 28 Jan 1998 13:57:52 +0000 (13:57 +0000)]
* krb5kdc.M: Document V4 mode handling [krb5-kdc/464].
Also removed references to kdb5_create and kdb5_stash
replacing with kdb5_util.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@10382
dc483132-0cff-0310-8789-
dd5450dbe970
Dan Winship [Tue, 27 Jan 1998 23:41:59 +0000 (23:41 +0000)]
* telnetd.c (getterminaltype): Null-terminate strings and avoid a
buffer overrun.
* ext.h: make terminaltype a char[] instead of a char * for
telnetd.c change
* state.c (suboption): redo handling of terminaltype
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@10380
dc483132-0cff-0310-8789-
dd5450dbe970
Theodore Tso [Tue, 27 Jan 1998 16:41:24 +0000 (16:41 +0000)]
Add definition of GSS_C_NO_NAME (per draft-ietf-cbind-04.txt)
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@10379
dc483132-0cff-0310-8789-
dd5450dbe970
Theodore Tso [Sat, 24 Jan 1998 03:21:37 +0000 (03:21 +0000)]
Add AC_PROG_INSTALL since it's need by the install rules
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@10377
dc483132-0cff-0310-8789-
dd5450dbe970
Theodore Tso [Sat, 24 Jan 1998 03:14:55 +0000 (03:14 +0000)]
telnetd.c (telnet, get_default_IM): Instead of using a hardcoded IM
variable, use one which is dynamically generated from the uname()
system call.
ext.h: Remove definition of DEFAULT_IM, since it's no longer used.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@10376
dc483132-0cff-0310-8789-
dd5450dbe970
Theodore Tso [Sat, 24 Jan 1998 03:12:04 +0000 (03:12 +0000)]
accept_sec_context.c (krb5_gss_accept_sec_context): Will now obtain
default credentials if no credentials are given.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@10375
dc483132-0cff-0310-8789-
dd5450dbe970
Theodore Tso [Sat, 24 Jan 1998 03:09:56 +0000 (03:09 +0000)]
init_sec_context.c (make_ap_req): Enforce a stricter requirement on
the ticket expiration time of the credentials, since
accept_sec_context doesn't use the timeskew fudge for checking ticket
expirations.
(krb5_gss_init_sec_context): Return GSS_S_NO_CRED when appropriate.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@10374
dc483132-0cff-0310-8789-
dd5450dbe970
Theodore Tso [Sat, 24 Jan 1998 02:02:30 +0000 (02:02 +0000)]
prof_parse.c (parse_std_line, parse_quoted_string, need_double_quotes,
output_quoted_string, dump_profile, dump_profile_to_file): Vastly
improved the profile parsing; whitespace at the end of lines are now
ignored. Added quoted string parsing, complete with backquote
processing. Strings which need to be quoted are properly quoted on
output.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@10373
dc483132-0cff-0310-8789-
dd5450dbe970
Tom Yu [Thu, 22 Jan 1998 00:26:56 +0000 (00:26 +0000)]
* Makefile.in (LIBMINOR): Bump minor version due to internal
structure change.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@10372
dc483132-0cff-0310-8789-
dd5450dbe970
Tom Yu [Thu, 22 Jan 1998 00:26:26 +0000 (00:26 +0000)]
* gssapiP_krb5.h: Add rcache member to the creds
structure. [krb5-libs/370]
* accept_sec_context.c (krb5_gss_accept_sec_context): Actually set
an rcache in auth context from the one saved in the creds
structure. [krb5-libs/370]
* acquire_cred.c (acquire_accept_cred): Set up an rcache for use
later. [krb5-libs/370]
* delete_sec_context.c (krb5_gss_delete_sec_context): Don't delete
the rcache when freeing the auth_context. [krb5-libs/370]
* rel_cred.c (krb5_gss_release_cred): Properly close the
rcache. [krb5-libs/370]
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@10371
dc483132-0cff-0310-8789-
dd5450dbe970
Ezra Peisach [Wed, 21 Jan 1998 20:20:14 +0000 (20:20 +0000)]
main returns int, not void. ANSI X3.159-1989
2.1.2.2.1 says so, and gcc now warns about it.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@10370
dc483132-0cff-0310-8789-
dd5450dbe970
Ezra Peisach [Wed, 21 Jan 1998 20:17:50 +0000 (20:17 +0000)]
main returns int, not void. ANSI X3.159-1989 2.1.2.2.1 says so, and
gcc now warns about it.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@10369
dc483132-0cff-0310-8789-
dd5450dbe970
Ezra Peisach [Wed, 21 Jan 1998 20:14:55 +0000 (20:14 +0000)]
main returns int, not void. ANSI X3.159-1989
2.1.2.2.1 says so, and gcc now warns about it. (eichin@cygnus.com)
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@10368
dc483132-0cff-0310-8789-
dd5450dbe970
Ezra Peisach [Wed, 21 Jan 1998 20:07:36 +0000 (20:07 +0000)]
* bindresvport.c: Include string.h for memset prototype
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@10367
dc483132-0cff-0310-8789-
dd5450dbe970
Ezra Peisach [Wed, 21 Jan 1998 18:17:02 +0000 (18:17 +0000)]
* kdc.conf.proto: Add kpasswd_port line so kadmind can start as
non-root for testing.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@10366
dc483132-0cff-0310-8789-
dd5450dbe970
Ezra Peisach [Wed, 21 Jan 1998 17:34:28 +0000 (17:34 +0000)]
* default.exp: Added kpasswd_port variable to kdc.conf creation.
(proven@cygnus.com)
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@10365
dc483132-0cff-0310-8789-
dd5450dbe970
Ezra Peisach [Wed, 21 Jan 1998 16:33:31 +0000 (16:33 +0000)]
* btree/bt_open.c: Added O_BINARY for __CYGWIN32__.
* clib/mkstemp.c: Added O_BINARY for __CYGWIN32__.
* db/db.c: Added O_BINARY for __CYGWIN32__.
* hash/dbm.c: Added O_BINARY for __CYGWIN32__.
* hash/hash.c: Added O_BINARY for __CYGWIN32__.
* hash/hsearch.c: Added O_BINARY for __CYGWIN32__.
* include/db-int.h: Added O_BINARY for __CYGWIN32__.
* recno/rec_open.c: Added O_BINARY for __CYGWIN32__.
* test/dbtest.c: Added O_BINARY for __CYGWIN32__.
* test/SEQ_TEST/t.c: Added O_BINARY for __CYGWIN32__.
* test/btree.tests/main.c: Added O_BINARY for __CYGWIN32__.
* test/hash1.tests/driver2.c: Added O_BINARY for __CYGWIN32__.
* test/hash1.tests/tcreat3.c: Added O_BINARY for __CYGWIN32__.
* test/hash1.tests/tdel.c: Added O_BINARY for __CYGWIN32__.
* test/hash1.tests/thash4.c: Added O_BINARY for __CYGWIN32__.
* test/hash1.tests/tread2.c: Added O_BINARY for __CYGWIN32__.
* test/hash1.tests/tseq.c: Added O_BINARY for __CYGWIN32__.
* test/hash1.tests/tverify.c: Added O_BINARY for __CYGWIN32__.
* test/hash2.tests/bigtest.c: Added O_BINARY for __CYGWIN32__.
* test/hash2.tests/passtest.c: Added O_BINARY for __CYGWIN32__.
Changes originally by Jeremy Allison (jra@cygnus.com)
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@10364
dc483132-0cff-0310-8789-
dd5450dbe970
Tom Yu [Wed, 21 Jan 1998 05:20:41 +0000 (05:20 +0000)]
* schpw.c: New file. Support for Cygnus chpw.
[oops forgot this earlier]
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@10359
dc483132-0cff-0310-8789-
dd5450dbe970
Tom Yu [Wed, 21 Jan 1998 05:17:25 +0000 (05:17 +0000)]
* schpw.c: New file. Support for Cygnus chpw
* ovsec_kadmd.c: Add support for Cygnus chpw.
* Makefile.in (OBJS): Add schpw.o.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@10358
dc483132-0cff-0310-8789-
dd5450dbe970
Tom Yu [Wed, 21 Jan 1998 05:17:03 +0000 (05:17 +0000)]
* alt_prof.c (kadm5_get_config_params): Add support for Cygnus chpw
* admin.h: Add support for Cygnus chpw.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@10357
dc483132-0cff-0310-8789-
dd5450dbe970
Tom Yu [Wed, 21 Jan 1998 05:16:27 +0000 (05:16 +0000)]
* osconf.h: Add DEFAULT_KPASSWD_PORT to support Cygnus chpw
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@10356
dc483132-0cff-0310-8789-
dd5450dbe970
Tom Yu [Wed, 21 Jan 1998 02:47:18 +0000 (02:47 +0000)]
* krlogind.c (protocol): Declare pibuf and fibuf as being BUFSIZ
bytes long, rather than 1024. Fixes an Irix bug. [krb5-appl/527]
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@10354
dc483132-0cff-0310-8789-
dd5450dbe970
Tom Yu [Fri, 16 Jan 1998 13:21:56 +0000 (13:21 +0000)]
* do_tgs_req.c: Add some explicit settings of errcode so that the
cleanup code doesn't try to construct a bogus error reply, which
was causing coredumps in the lookaside code.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@10352
dc483132-0cff-0310-8789-
dd5450dbe970
Ezra Peisach [Thu, 15 Jan 1998 16:51:53 +0000 (16:51 +0000)]
* hash/hash_bigkey.c (collect_key, collect_data): Cast malloc
return value to correct types. (raeburn@cygnus.com)
* obj/Makefile.in (check): Set srcdir in environment.
(raeburn@cygnus.com)
* configure.in (AC_COMPILE_TYPE): replacment for AC_CHECK_TYPE
that uses AC_TRY_COMPILE instead of AC_EGREP_CPP. For now, only
use it for the int32 types (where AC_CHECK_TYPE gets the wrong
result on __CYGWIN32__) and plan that AC_CHECK_TYPE itself gets
repaired. (Fix by eichin@cygnus.com)
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@10351
dc483132-0cff-0310-8789-
dd5450dbe970
Marshall Vale [Tue, 13 Jan 1998 18:51:22 +0000 (18:51 +0000)]
Changed all PBGetCatInfo to PBGetCatInfoSync for new UH's
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@10350
dc483132-0cff-0310-8789-
dd5450dbe970
Tom Yu [Tue, 6 Jan 1998 22:38:00 +0000 (22:38 +0000)]
* in_tkt.c: Conditionalize use of macro do_seteuid, rather than
redefining setreuid.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@10349
dc483132-0cff-0310-8789-
dd5450dbe970
Tom Yu [Tue, 6 Jan 1998 22:28:25 +0000 (22:28 +0000)]
* seteuid.c (krb5_seteuid): Don't check for _POSIX_SAVED_IDS, as
4.4BSD derivatives don't define it but do have a reasonable
seteuid anyway. [krb5-libs/503]
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@10348
dc483132-0cff-0310-8789-
dd5450dbe970
Tom Yu [Sat, 3 Jan 1998 03:36:53 +0000 (03:36 +0000)]
* locate_kdc.c (krb5_locate_kdc): Check return of
malloc. [krb5-libs/518]
* changepw.c (krb5_change_password): Check return of
malloc. [krb5-libs/518]
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@10347
dc483132-0cff-0310-8789-
dd5450dbe970
Tom Yu [Sat, 3 Jan 1998 03:36:38 +0000 (03:36 +0000)]
* preauth.c (handle_sam_labels):
(obtain_sam_padata): Check return of malloc. [krb5-libs/518]
* chpw.c (krb5_mk_chpw_req): Check return of malloc.
(krb5_rd_chpw_rep): Check return of malloc. [krb5-libs/518]
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@10346
dc483132-0cff-0310-8789-
dd5450dbe970
Tom Yu [Sat, 3 Jan 1998 03:36:18 +0000 (03:36 +0000)]
* asn1buf.c (asn12krb5_buf): Check return value of
malloc. [krb5-libs/518]
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@10345
dc483132-0cff-0310-8789-
dd5450dbe970
Tom Yu [Mon, 29 Dec 1997 21:54:31 +0000 (21:54 +0000)]
* init_rkey.c (mit_des_init_random_key): Punt the struct; use
explicit variables instead because we're no longer doing a
memcpy. In addition, fill p_state->sequence.data a byte at a
time. [krb5-libs/492]
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@10344
dc483132-0cff-0310-8789-
dd5450dbe970
Ezra Peisach [Mon, 29 Dec 1997 16:30:29 +0000 (16:30 +0000)]
* Makefile.in (OBJS): Changed val_cred.$(OBJECT) to
val_cred.$(OBJEXT) for windows building.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@10343
dc483132-0cff-0310-8789-
dd5450dbe970
Tom Yu [Sun, 21 Dec 1997 23:36:14 +0000 (23:36 +0000)]
* hash/dbm.c: Rename the errno member of HTAB
* hash/hash.h: Rename the errno member of HTAB to local_errno to
avoid a collision with a glibc macro.
* hash/hash.c: Rename the errno member of HTAB to local_errno to
avoid a collision with a glibc macro.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@10342
dc483132-0cff-0310-8789-
dd5450dbe970
Tom Yu [Sun, 21 Dec 1997 23:30:56 +0000 (23:30 +0000)]
* logwtmp.c (ftp_logwtmp): Rename logwtmp to ftp_logwtmp to avoid
collision with native logwtmp. Also, return void rather than
int.
* ftpd.c: Rename logwtmp to ftp_logwtmp to avoid collision with
native logwtmp.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@10341
dc483132-0cff-0310-8789-
dd5450dbe970
Dan Winship [Fri, 19 Dec 1997 23:26:02 +0000 (23:26 +0000)]
* login.c (try_afscall): try_afscall doesn't work / isn't needed
on systems without SIGSYS
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@10340
dc483132-0cff-0310-8789-
dd5450dbe970
Ezra Peisach [Tue, 16 Dec 1997 16:23:38 +0000 (16:23 +0000)]
* svc_auth_gssapi.c (_svcauth_gssapi): When looping over services,
free previous output_tokens.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@10339
dc483132-0cff-0310-8789-
dd5450dbe970
Ezra Peisach [Tue, 16 Dec 1997 16:01:04 +0000 (16:01 +0000)]
* locate_kdc.c (krb5_locate_kdc): Free hostlist array elements
when finished with them.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@10338
dc483132-0cff-0310-8789-
dd5450dbe970
Ezra Peisach [Tue, 16 Dec 1997 15:49:40 +0000 (15:49 +0000)]
* sclient.c (main): Free client principal and krb5_ap_rep_enc_part
returned from krb5_sendauth when done using. Close the
credential cache, and free the context.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@10337
dc483132-0cff-0310-8789-
dd5450dbe970
Tom Yu [Tue, 16 Dec 1997 05:10:24 +0000 (05:10 +0000)]
* mk_req_ext.c (krb5_mk_req_extended): Check enctype of session
key, not that of the ticket, which we really shouldn't care about.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@10336
dc483132-0cff-0310-8789-
dd5450dbe970
Tom Yu [Fri, 12 Dec 1997 04:32:13 +0000 (04:32 +0000)]
* cnv_tkt_skey.c:
* conv_creds.c:
* conv_princ.c:
* encode.c:
* k524init.c:
* krb524d.c:
* misc.c:
* test.c: Don't include netdb.h or sys/socket.h if krb.h is
included; this works around an Ultrix bug where those headers
aren't protected against multiple inclusion.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@10335
dc483132-0cff-0310-8789-
dd5450dbe970
Tom Yu [Fri, 12 Dec 1997 04:30:20 +0000 (04:30 +0000)]
* kerberos_v4.c: Don't include sys/socket.h or netdb.h, as krb.h
already gets those and Ultrix doesn't protect them against
multiple inclusion.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@10334
dc483132-0cff-0310-8789-
dd5450dbe970
Tom Yu [Fri, 12 Dec 1997 04:28:29 +0000 (04:28 +0000)]
* ftpd.c: Don't include netdb.h or sys/socket.h if krb.h is
included; this works around an Ultrix bug where those headers
aren't protected against multiple inclusion.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@10333
dc483132-0cff-0310-8789-
dd5450dbe970
Tom Yu [Fri, 12 Dec 1997 04:27:57 +0000 (04:27 +0000)]
* ftp.c:
* main.c: Don't include netdb.h or sys/socket.h if krb.h is
included; this works around an Ultrix bug where those headers
aren't protected against multiple inclusion.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@10332
dc483132-0cff-0310-8789-
dd5450dbe970
Tom Yu [Fri, 12 Dec 1997 04:26:09 +0000 (04:26 +0000)]
* krlogind.c:
* krshd.c:
* login.c:
* v4rcp.c: Don't include netdb.h or sys/socket.h if krb.h is
included; this works around an Ultrix bug where those headers
aren't protected against multiple inclusion.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@10331
dc483132-0cff-0310-8789-
dd5450dbe970
Ezra Peisach [Sun, 7 Dec 1997 15:44:56 +0000 (15:44 +0000)]
* val_cred.c (krb5_gss_validate_cred): Free principal extracted
from credential cache when finished.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@10330
dc483132-0cff-0310-8789-
dd5450dbe970
Ezra Peisach [Sun, 7 Dec 1997 12:57:20 +0000 (12:57 +0000)]
* gic_pwd.c (krb5_get_init_creds_password): Change fourth argument
in call to prompter (which is an int) from NULL to 0.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@10329
dc483132-0cff-0310-8789-
dd5450dbe970
Tom Yu [Sun, 7 Dec 1997 05:06:13 +0000 (05:06 +0000)]
* getpty.c (pty_getpty): Fix goof in previous, which introduced
another fencepost error.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@10327
dc483132-0cff-0310-8789-
dd5450dbe970
Ezra Peisach [Sun, 7 Dec 1997 04:20:41 +0000 (04:20 +0000)]
* locate_kdc.c (krb5_locate_kdc): Get rid of extra krb5_xfree
which caused freeing of memory twice.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@10326
dc483132-0cff-0310-8789-
dd5450dbe970
Ezra Peisach [Sun, 7 Dec 1997 03:54:45 +0000 (03:54 +0000)]
Include <string.h>
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@10325
dc483132-0cff-0310-8789-
dd5450dbe970
Ezra Peisach [Sun, 7 Dec 1997 03:54:17 +0000 (03:54 +0000)]
Include <string.h> for memset prototype
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@10324
dc483132-0cff-0310-8789-
dd5450dbe970
Tom Yu [Sat, 6 Dec 1997 08:01:27 +0000 (08:01 +0000)]
* Makefile.in: Add changepw.c, prompter.c
* changepw.c: New file; Cygnus password changing protocol.
* locate_kdc.c: Add parameter to indicate master KDC.
* os-proto.h: Reflect changes to locate_kdc.
* prompter.c: New file; Cygnus initial creds.
* sendto_kdc.c: Add parameter to indicate master KDC.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@10322
dc483132-0cff-0310-8789-
dd5450dbe970
Tom Yu [Sat, 6 Dec 1997 08:00:17 +0000 (08:00 +0000)]
* Makefile.in: Add files chpw.c, gic_*, preauth2.c, vfy_increds.c,
vic_opt.c.
* chpw.c: New file; implement Cygnus chpw.
* get_in_tkt.c: Implement support for Cygnus initial credentials
API.
* gic_keytab.c: New file; Cygnus initial creds.
* gic_opt.c: New file; Cygnus initial creds.
* gic_pwd.c: New file; Cygnus initial creds.
* preauth.c: Add more SAM support (from Cygnus).
* preauth2.c: New file; additional SAM support from Cygnus.
* send_tgs.c: Account for additional parameter to sendto_kdc.
* vfy_increds.c: New file; Cygnus initial creds.
* vic_opt.c: New file; Cygnus initial creds.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@10321
dc483132-0cff-0310-8789-
dd5450dbe970
Tom Yu [Sat, 6 Dec 1997 07:59:43 +0000 (07:59 +0000)]
* krb5_err.et: Add codes for Cygnus chpw
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@10320
dc483132-0cff-0310-8789-
dd5450dbe970
Tom Yu [Sat, 6 Dec 1997 07:59:20 +0000 (07:59 +0000)]
* Makefile.in: Add cccopy.c
* cccopy.c: New file; krb5_cc_copy_creds from Cygnus.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@10319
dc483132-0cff-0310-8789-
dd5450dbe970
Tom Yu [Sat, 6 Dec 1997 07:58:22 +0000 (07:58 +0000)]
* krb5.hin: Add constants and prototypes for the Cygnus password
changing API. Add krb5_cc_copy_creds. Add support for Cygnus
initial credentials API.
* k5-int.h: Add additional preauth types. Add additional
parameter to krb5_sendto_kdc for designating whether to use the
master. Add functions to support Cygnus initial credentials API.
Add prototypes for sam functions.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@10318
dc483132-0cff-0310-8789-
dd5450dbe970
Tom Yu [Fri, 5 Dec 1997 02:48:58 +0000 (02:48 +0000)]
* getpty.c (pty_getpty): Fix checks on string lengths to account
for terminating nul character. Some whitespace fixups.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@10313
dc483132-0cff-0310-8789-
dd5450dbe970
Tom Yu [Fri, 5 Dec 1997 02:39:44 +0000 (02:39 +0000)]
* telnetd.c (doit): Fix up slave buffer length
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@10312
dc483132-0cff-0310-8789-
dd5450dbe970
Tom Yu [Wed, 3 Dec 1997 22:17:34 +0000 (22:17 +0000)]
* pty_err.et: Add PTY_OPEN_SLAVE_TOOSHORT error code
* open_slave.c (pty_open_slave): Check to ensure that the slave
name is not NULL or zero-length.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@10310
dc483132-0cff-0310-8789-
dd5450dbe970
Tom Yu [Sat, 29 Nov 1997 02:29:40 +0000 (02:29 +0000)]
* configure.in: Add AC_PROG_LN_S to deal with symlinking in
memmove.c. This is a kludge, as we really should have a more sane
way to deal with missing posix functions.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@10309
dc483132-0cff-0310-8789-
dd5450dbe970
Theodore Tso [Tue, 25 Nov 1997 01:03:03 +0000 (01:03 +0000)]
do_tgs_req.c (process_tgs_req): Add check to make sure cname and sname
are non-NULL when syslogging an error because the principals don't
match.
kdc_util.c (limit_string): Check to make sure the input string
is non-NULL before operating on it.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@10307
dc483132-0cff-0310-8789-
dd5450dbe970
Ezra Peisach [Fri, 21 Nov 1997 05:37:58 +0000 (05:37 +0000)]
* Makefile.in (types.h): Add rules to generate file by running
config.status. Remove on make clean.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@10306
dc483132-0cff-0310-8789-
dd5450dbe970
Ezra Peisach [Fri, 21 Nov 1997 05:36:23 +0000 (05:36 +0000)]
* Makefile.in (clean-unix): krb_err.h resides in the kerberosIV
subdir for make clean.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@10305
dc483132-0cff-0310-8789-
dd5450dbe970
Tom Yu [Thu, 20 Nov 1997 22:15:37 +0000 (22:15 +0000)]
* forward.c (rd_and_store_for_creds): Fix up to no longer do the
chown [krb5-appl/502]
* kerberos5.c (kerberos5_is): Fix up call to
rd_and_store_for_creds. [krb5-appl/502]
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@10302
dc483132-0cff-0310-8789-
dd5450dbe970
Tom Yu [Thu, 20 Nov 1997 21:43:48 +0000 (21:43 +0000)]
* krlogind.c (recvauth): Fix args in call to
rd_and_store_for_creds. [krb5-appl/502]
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@10301
dc483132-0cff-0310-8789-
dd5450dbe970
Ezra Peisach [Wed, 19 Nov 1997 15:55:53 +0000 (15:55 +0000)]
* Makefile.in (clean): Remove server-setkey-test
client-setkey-test setkey-test.o
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@10300
dc483132-0cff-0310-8789-
dd5450dbe970
Ezra Peisach [Wed, 19 Nov 1997 15:54:24 +0000 (15:54 +0000)]
* Makefile.in (kdb_check): Remove temporary file generated during test
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@10299
dc483132-0cff-0310-8789-
dd5450dbe970
Ezra Peisach [Wed, 19 Nov 1997 15:53:38 +0000 (15:53 +0000)]
* Makefile.in (clean-unix): Remove db lib symlinks
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@10298
dc483132-0cff-0310-8789-
dd5450dbe970
Ezra Peisach [Wed, 19 Nov 1997 15:35:29 +0000 (15:35 +0000)]
* Makefile.in (clean-unix): Do not remove libraries here as the
Makefile that created the symlink now removes it.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@10297
dc483132-0cff-0310-8789-
dd5450dbe970
Tom Yu [Wed, 19 Nov 1997 05:23:11 +0000 (05:23 +0000)]
* des.h: Clean up prototypes so they're sane and look a little
nicer. The ivec parameter to pcbc_encrypt is now a C_Block FAR *,
while the paremeters to quad_cksum have been re-ordered to match
reality.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@10296
dc483132-0cff-0310-8789-
dd5450dbe970
Tom Yu [Wed, 19 Nov 1997 05:22:31 +0000 (05:22 +0000)]
* rd_safe.c (krb_rd_safe): Fix up call to quad_cksum
* mk_priv.c (krb_mk_priv): Fix up call to pcbc_encrypt.
* mk_safe.c (krb_mk_safe): Fix up call to quad_cksum.
* mk_req.c (krb_mk_req): Fix up call to pcbc_encrypt.
* rd_req.c (krb_rd_req): Fix up call to pcbc_encrypt.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@10295
dc483132-0cff-0310-8789-
dd5450dbe970
Tom Yu [Wed, 19 Nov 1997 04:37:49 +0000 (04:37 +0000)]
* quad_cksum.c (des_quad_cksum): Reorder parameters to match the
prototype in include/kerberosIV/des.h.
* pcbc_encrypt.c: Fix up parameters to use a des_cblock* as the
ivec to match the prototype in include/kerberosIV/des.h.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@10294
dc483132-0cff-0310-8789-
dd5450dbe970
Tom Yu [Wed, 19 Nov 1997 00:55:59 +0000 (00:55 +0000)]
* configure.in: Use new library build rules
* Makefile.in: Use new library build rules.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@10293
dc483132-0cff-0310-8789-
dd5450dbe970
Tom Yu [Wed, 19 Nov 1997 00:36:58 +0000 (00:36 +0000)]
* pre.in: Clean up up .ct.c rule
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@10292
dc483132-0cff-0310-8789-
dd5450dbe970
Tom Yu [Wed, 19 Nov 1997 00:23:37 +0000 (00:23 +0000)]
* configure.in: Update to new library build system
* Makefile.in: Update to new library build system.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@10291
dc483132-0cff-0310-8789-
dd5450dbe970
Tom Yu [Wed, 19 Nov 1997 00:22:25 +0000 (00:22 +0000)]
* lib.in (clean-libs): Remove lib$(LIB)$(SHLIBSEXT) as well
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@10290
dc483132-0cff-0310-8789-
dd5450dbe970
Tom Yu [Tue, 18 Nov 1997 23:57:28 +0000 (23:57 +0000)]
* Makefile.in: Garbage collect some old library build system
stuff.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@10289
dc483132-0cff-0310-8789-
dd5450dbe970
Tom Yu [Tue, 18 Nov 1997 02:13:34 +0000 (02:13 +0000)]
* krshd.c: Don't set checksum_ignored to 1 if checksum_required is
0; also, if a krb5 client passes in a checksum, check it
regardless of whether checksum_required is true. [krb5-appl/500]
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@10286
dc483132-0cff-0310-8789-
dd5450dbe970
Theodore Tso [Sun, 16 Nov 1997 01:51:14 +0000 (01:51 +0000)]
* accept_sec_context.c (krb5_gss_accept_sec_context),
init_sec_context.c (krb5_gss_init_sec_context),
inq_cred.c (krb5_gss_inquire_cred): Call krb5_gss_validate_cred
to make sure the credential handle is still valid.
* val_cred.c (krb5_gss_validate_cred): New file which validates
the credential to make sure it is valid, including
checking to make sure the credentials cache still points
at the same krb5 principal as it did before.
* accept_sec_context.c (krb5_gss_accept_sec_context): Return
GSS_S_FAILURE if a non-NULL context handle is passed to it.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@10285
dc483132-0cff-0310-8789-
dd5450dbe970
Theodore Tso [Sun, 16 Nov 1997 01:16:56 +0000 (01:16 +0000)]
(Wrong version of Changelog committed previously)
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@10284
dc483132-0cff-0310-8789-
dd5450dbe970
Theodore Tso [Sun, 16 Nov 1997 01:16:37 +0000 (01:16 +0000)]
Return GSS_S_FAILURE if a non-NULL context handle is passed to it
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@10283
dc483132-0cff-0310-8789-
dd5450dbe970
Theodore Tso [Fri, 14 Nov 1997 01:43:03 +0000 (01:43 +0000)]
do_tgs_req.c (process_tgs_req): Only try to return a TGT for a
"closer" realm if the request was for a TGT in the first place.
[krb5-kdc/459]
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@10280
dc483132-0cff-0310-8789-
dd5450dbe970
Theodore Tso [Fri, 14 Nov 1997 01:30:21 +0000 (01:30 +0000)]
libupdate.sh: Add semicolons to prevent Bash 2.0 from complaining.
[krb5-build/486]
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@10279
dc483132-0cff-0310-8789-
dd5450dbe970
Tom Yu [Thu, 13 Nov 1997 00:07:05 +0000 (00:07 +0000)]
* forward.c (rd_and_store_for_creds): Don't do the chown. Avoids
a security hole. [krb5-appl/494]
* krshd.c (recvauth): chown the ccache explicitly, as
rd_and_store_for_creds no longer does so. [krb5-appl/494]
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@10277
dc483132-0cff-0310-8789-
dd5450dbe970
Ezra Peisach [Wed, 12 Nov 1997 20:09:19 +0000 (20:09 +0000)]
* do_as_req.c (process_as_req): Reset master key after closing and
reopening DB when KDC_UPDATES_KDB compiled
in. [krb5-kdc/495 by Tony Mione]
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@10276
dc483132-0cff-0310-8789-
dd5450dbe970
Theodore Tso [Tue, 11 Nov 1997 01:45:42 +0000 (01:45 +0000)]
scc_maybe.c: Added kludge for the Macintosh, since fopen() doesn't set
errno, although open() does.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@10272
dc483132-0cff-0310-8789-
dd5450dbe970
Theodore Tso [Tue, 11 Nov 1997 01:12:36 +0000 (01:12 +0000)]
send_tgs.c (krb5_send_tgs): Don't send a zero endtime; if the
requested endtime is zero, set it equal to the TGT endtime.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@10271
dc483132-0cff-0310-8789-
dd5450dbe970
Theodore Tso [Tue, 11 Nov 1997 01:08:13 +0000 (01:08 +0000)]
kdc_util.c (kdc_process_tgs_req): If not using the reply cache,
properly handle a failure return from krb5_rd_req_decode_anyflag().
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@10270
dc483132-0cff-0310-8789-
dd5450dbe970
Ezra Peisach [Sun, 9 Nov 1997 15:12:53 +0000 (15:12 +0000)]
* gssftp.exp: Replace "else if" with "elseif" as expect 5.25
requires it. [krb5-misc/487]
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@10269
dc483132-0cff-0310-8789-
dd5450dbe970
Theodore Tso [Fri, 7 Nov 1997 03:25:40 +0000 (03:25 +0000)]
Use error_message(errno) instead of using sys_errlist[errno]. This
avoids the hair of deciding whether or not we need to declare
sys_errlist or use strerror(), etc., since com_err has all of that
complexity anyway. Also fixed lots of -Wall nits.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@10268
dc483132-0cff-0310-8789-
dd5450dbe970