Theodore Tso [Mon, 21 Nov 1994 22:21:06 +0000 (22:21 +0000)]
mk_req_ext.c (krb5_mk_req_extended): Sanitize how memory is freed in
both error and normal cases, to remove memory leaks.
mk_req_ext.c (krb5_mk_req_extended): Use the encryption type specified
by the ticket to generate the authenticator.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@4711
dc483132-0cff-0310-8789-
dd5450dbe970
Theodore Tso [Mon, 21 Nov 1994 20:33:53 +0000 (20:33 +0000)]
encode_kdc.c (krb5_encode_kdc_rep): Now requires that the
caller pass in the encryption block to be used for
encrpyting the ticket. That way, this routine doesn't
need to create its own encryption block.
encrypt_tk.c (krb5_encrypt_tkt_part): Now requires that the
caller pass in the encryption block to be used for
encrpyting the ticket. That way, this routine doesn't
need to create its own encryption block.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@4710
dc483132-0cff-0310-8789-
dd5450dbe970
Mark Eichin [Mon, 21 Nov 1994 19:55:48 +0000 (19:55 +0000)]
fixed bad prototype in changes
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@4709
dc483132-0cff-0310-8789-
dd5450dbe970
Theodore Tso [Mon, 21 Nov 1994 19:25:57 +0000 (19:25 +0000)]
library.tex (internalfunc): Define \internalfunc, which prints a
disclaimer in front of "internal functions". We should
move them somewhere else, but for now, let's start marking
those functions which we believe are internal.
krb5.tex: Documented changed interfaces to krb5_encode_kdc_rep
and krb5_encrypt_tkt_part. Document krb5_encode_kdc_rep,
krb5_decode_kdc_rep, krb5_encrypt_tkt_part,
krb5_decrypt_tkt_part, and krb5_send_tgs as all internal
functions.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@4708
dc483132-0cff-0310-8789-
dd5450dbe970
Theodore Tso [Mon, 21 Nov 1994 19:01:56 +0000 (19:01 +0000)]
We don't need autoreconf.local anymore. That functionality has been
folded into autoconf 2.1!
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@4707
dc483132-0cff-0310-8789-
dd5450dbe970
Tom Yu [Mon, 21 Nov 1994 05:48:44 +0000 (05:48 +0000)]
complete command suite now in with most functionality
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@4706
dc483132-0cff-0310-8789-
dd5450dbe970
Theodore Tso [Sat, 19 Nov 1994 07:12:22 +0000 (07:12 +0000)]
Fix obvious typo
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@4705
dc483132-0cff-0310-8789-
dd5450dbe970
Theodore Tso [Sat, 19 Nov 1994 07:09:29 +0000 (07:09 +0000)]
Fix stupid typo..
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@4704
dc483132-0cff-0310-8789-
dd5450dbe970
Theodore Tso [Sat, 19 Nov 1994 05:00:01 +0000 (05:00 +0000)]
Add magic numbers for keyblock structure
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@4703
dc483132-0cff-0310-8789-
dd5450dbe970
Theodore Tso [Sat, 19 Nov 1994 04:59:24 +0000 (04:59 +0000)]
Add magic number to keyblock structure
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@4702
dc483132-0cff-0310-8789-
dd5450dbe970
Theodore Tso [Sat, 19 Nov 1994 04:58:55 +0000 (04:58 +0000)]
Add magic numbers to keyblock structure
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@4701
dc483132-0cff-0310-8789-
dd5450dbe970
Theodore Tso [Sat, 19 Nov 1994 04:58:09 +0000 (04:58 +0000)]
Initialize magic variable and encryption type
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@4700
dc483132-0cff-0310-8789-
dd5450dbe970
Theodore Tso [Fri, 18 Nov 1994 22:54:51 +0000 (22:54 +0000)]
Add new attribute which defines whether or not a server supports DES/MD5
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@4699
dc483132-0cff-0310-8789-
dd5450dbe970
Theodore Tso [Fri, 18 Nov 1994 22:26:22 +0000 (22:26 +0000)]
Add magic numbers for keytab, principal, and keyblock
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@4698
dc483132-0cff-0310-8789-
dd5450dbe970
Theodore Tso [Fri, 18 Nov 1994 22:24:44 +0000 (22:24 +0000)]
Fix to return correct error code, instead of always returning
KRB5_CC_NOMEM.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@4697
dc483132-0cff-0310-8789-
dd5450dbe970
Mark Eichin [Fri, 18 Nov 1994 21:03:38 +0000 (21:03 +0000)]
update to autoconf 2.1
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@4696
dc483132-0cff-0310-8789-
dd5450dbe970
Mark Eichin [Fri, 18 Nov 1994 20:44:12 +0000 (20:44 +0000)]
* aclocal.m4 (CHECK_WAIT_TYPE, CHECK_SIGNALS, CHECK_SETJMP,
KRB5_UTPID, KRB5_UTTYPE, KRB5_UTHOST, KRB5_UTEXIT): use
AC_TRY_COMPILE instead of AC_TRY_LINK.
(CHECK_FCNTL): check for 1+O_RDONLY so we aren't fooled into
declaring it as a local variable.
(DECLARE_SYS_ERRLIST): same thing for 1+sys_nerr.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@4695
dc483132-0cff-0310-8789-
dd5450dbe970
Theodore Tso [Fri, 18 Nov 1994 20:31:16 +0000 (20:31 +0000)]
Add new error code -- KV5M_KEYTAB_ENTRY
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@4694
dc483132-0cff-0310-8789-
dd5450dbe970
Theodore Tso [Fri, 18 Nov 1994 19:56:41 +0000 (19:56 +0000)]
All files:
Changes to implement SCC format version #3, which is architecture
independent, and includes the key encryption type information.
scc_gennew.c (krb5_scc_generate_new): Generate new ccaches using
whatever version is marked as the default.
scc_read.c (krb5_scc_read_keyblock): Insert keyblock magic
number and initialize etype value. Also add magic numbers
for the krb5_principal, krb5_data, krb5_address, and
krb5_authdata structures.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@4693
dc483132-0cff-0310-8789-
dd5450dbe970
Theodore Tso [Fri, 18 Nov 1994 19:48:54 +0000 (19:48 +0000)]
Remove unnecessary variable
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@4692
dc483132-0cff-0310-8789-
dd5450dbe970
Mark Eichin [Fri, 18 Nov 1994 19:44:09 +0000 (19:44 +0000)]
* Makefile.in (clean): remove $(BOGUS)
(HDRS): use ASN1_HDRS, not ASN1_SRCS. (from epeisach)
[from 0928]
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@4691
dc483132-0cff-0310-8789-
dd5450dbe970
Mark Eichin [Fri, 18 Nov 1994 19:43:22 +0000 (19:43 +0000)]
* configure.in: move WITH_CCOPTS, WITH_KRB5ROOT
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@4690
dc483132-0cff-0310-8789-
dd5450dbe970
Mark Eichin [Fri, 18 Nov 1994 19:42:38 +0000 (19:42 +0000)]
* configure.in: move WITH_CCOPTS
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@4689
dc483132-0cff-0310-8789-
dd5450dbe970
Mark Eichin [Fri, 18 Nov 1994 19:41:30 +0000 (19:41 +0000)]
* configure.in: moved WITH_CCOPTS
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@4688
dc483132-0cff-0310-8789-
dd5450dbe970
Mark Eichin [Fri, 18 Nov 1994 19:40:54 +0000 (19:40 +0000)]
* configure.in: use WITH_CCOPTS
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@4687
dc483132-0cff-0310-8789-
dd5450dbe970
Mark Eichin [Fri, 18 Nov 1994 19:22:25 +0000 (19:22 +0000)]
* configure.in: add caching to perror check (from epeisach).
[from 0954]
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@4686
dc483132-0cff-0310-8789-
dd5450dbe970
Mark Eichin [Fri, 18 Nov 1994 19:21:44 +0000 (19:21 +0000)]
* configure.in: use KRB5_POSIX_LOCKS, AC_EGREP_HEADER. (from
epeisach).
[from 0961]
(ET_HEADERS): new variable for the names of the headers that
lib/krb5/error_tables builds and installs here (so that they get
pushed out to the installed include directory.)
(BUILT_HEADERS): locally built headers, for all, install, and
clean.
(clean): delete built and et headers.
[inspired by 0937, but done more thoroughly.]
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@4685
dc483132-0cff-0310-8789-
dd5450dbe970
Mark Eichin [Fri, 18 Nov 1994 19:21:08 +0000 (19:21 +0000)]
* Makefile.in (install): use $(INSTALL_DATA) instead of cp. Elide
dependency in install rule so $(srcdir) works.
* configure.in: use AC_PROG_INSTALL.
[part from 0937, part by inspection]
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@4684
dc483132-0cff-0310-8789-
dd5450dbe970
Mark Eichin [Fri, 18 Nov 1994 19:19:55 +0000 (19:19 +0000)]
* configure.in: use new macros KRB5_UTPID, KRB5_UTTYPE, and
KRB5_UTHOST (from epeisach).
[from 0959]
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@4683
dc483132-0cff-0310-8789-
dd5450dbe970
Mark Eichin [Fri, 18 Nov 1994 19:19:04 +0000 (19:19 +0000)]
* configure.in: use WITH_KRB4. (from epeisach)
[from 0955]
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@4682
dc483132-0cff-0310-8789-
dd5450dbe970
Mark Eichin [Fri, 18 Nov 1994 19:18:07 +0000 (19:18 +0000)]
* configure.in: use WITH_KRB4, cache cc_t in termio check, cache
SETPGRP_TWOARG check.
* Makefile.in (K4LIB): use @K4LIB@.
(telnetd): use $(K4LIB). (from epeisach)
[from 0955]
* Makefile.in (install): install telnetd manpage
(from Ted Lemon <mellon@ipd.wellsfargo.com>).
[from 0937]
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@4681
dc483132-0cff-0310-8789-
dd5450dbe970
Mark Eichin [Fri, 18 Nov 1994 19:17:18 +0000 (19:17 +0000)]
* configure.in (LIBS): use WITH_KRB4, CHECK_SIGNALS, and cache
cc_t in termio.h check. (from epeisach)
* Makefile.in (K4LIB): set to @K4LIB@ instead of explicit setting.
(telnet): link with $(K4LIB). (from epeisach).
[from 0955]
* Makefile.in (install): install telnet man page.
(from Ted Lemon <mellon@ipd.wellsfargo.com>).
[from 0937]
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@4680
dc483132-0cff-0310-8789-
dd5450dbe970
Mark Eichin [Fri, 18 Nov 1994 19:16:49 +0000 (19:16 +0000)]
* configure.in: add WITH_CCOPTS so that subdirs work
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@4679
dc483132-0cff-0310-8789-
dd5450dbe970
Mark Eichin [Fri, 18 Nov 1994 19:12:09 +0000 (19:12 +0000)]
* pop_send.c (pop_send): Only update last_msg if executing a RETR.
From John Brezak <brezak@apollo.hp.com>.
[from 0927]
* configure.in: use KRB5_POSIX_LOCKS (from epeisach).
[from 0961]
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@4678
dc483132-0cff-0310-8789-
dd5450dbe970
Mark Eichin [Fri, 18 Nov 1994 19:11:13 +0000 (19:11 +0000)]
* configure.in: use new macros KRB5_UTPID, KRB5_UTTYPE, and
KRB5_UTHOST (from epeisach).
[from 0959]
* Makefile.in (install): add install rules for krlogind.M,
krshd.M, rlogin.M, rcp.M, rsh.M. (Section numbers are explicit,
and this should probably be changed.)
(from Ted Lemon <mellon@ipd.wellsfargo.com>
[from 0937]
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@4677
dc483132-0cff-0310-8789-
dd5450dbe970
Mark Eichin [Fri, 18 Nov 1994 19:10:11 +0000 (19:10 +0000)]
* aclocal.m4 (CopySrcHeader): add clean rule (from epeisach)
[from 0928]
* aclocal.m4 (CONFIG_RULES): handle pre.in, post.in, and pass the
rest of the arguments that autoconf needs. (from epeisach.)
[from 0952]
* aclocal.m4 (ET_RULES): don't define SRCTOP, pre.in already takes
care of it. (from epeisach.)
[from 0953]
(DECLARE_SYS_ERRLIST, CHECK_SIGPROCMASK, CHECK_FCNTL,
CHECK_WAIT_TYPE, CHECK_SIGNALS, CHECK_SETJMP, HAVE_YYLINENO): add
caching.
[from 0956]
(WITH_KRB5ROOT, WITH_KRB4, WITH_CC, WITH_CCOPTS, WITH_CPPOPTS):
use AC_MSG_RESULT instead of echo.
[from 0958]
(KRB5_UTPID, KRB5_UTTYPE, KRB5_UTHOST, KRB5_UTEXT): new functions
for appl/bsd and kpasswd common utmp code.
[from 0959]
(KRB5_POSIX_LOCKS): new functions for include/krb5 and appl/popper
common code.
[from 0961]
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@4676
dc483132-0cff-0310-8789-
dd5450dbe970
Mark Eichin [Fri, 18 Nov 1994 00:31:21 +0000 (00:31 +0000)]
fix typo
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@4675
dc483132-0cff-0310-8789-
dd5450dbe970
Mark Eichin [Fri, 18 Nov 1994 00:27:10 +0000 (00:27 +0000)]
* kdb_dbm.c (krb5_dbm_db_unlock): Use krb5_lock_file.
(krb5_dbm_db_lock): Same. (Changes from jtkohl@mit.edu.)
the rest of [txn 497].
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@4674
dc483132-0cff-0310-8789-
dd5450dbe970
Mark Eichin [Fri, 18 Nov 1994 00:13:39 +0000 (00:13 +0000)]
* kprop.c: Use NPROTOTYPE for declarations.
(close_database): New function. Cleans up locks properly.
(main): call it.
(open_database): Use krb5_lock_file instead of POSIX_FILE_LOCKS.
* kpropd.c (doit): Use krb5_lock_file.
(changes from jtkohl@mit.edu.)
from [txn 0497]
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@4673
dc483132-0cff-0310-8789-
dd5450dbe970
Theodore Tso [Thu, 17 Nov 1994 07:11:58 +0000 (07:11 +0000)]
asn1_decode_k.c (asn1_decode_principal_name,
asn1_decode_checksum, asn1_decode_encrypted_data,
asn1_decode_transited_encoding,
asn1_decode_enc_kdc_rep_part, asn1_decode_ticket,
asn1_decode_kdc_req, asn1_decode_kdc_req_body,
asn1_decode_safe_body, asn1_decode_host_address,
asn1_decode_kdc_rep, asn1_decode_authdata_elt,
asn1_decode_krb_cred_info, asn1_decode_pa_data,
asn1_decode_last_req_entry): Initialize magic number field
in the relevant structures.
asn1_decode_k.c (asn1_decode_encryption_key): Add appropriate
magic number and encryption type.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@4672
dc483132-0cff-0310-8789-
dd5450dbe970
Theodore Tso [Thu, 17 Nov 1994 07:10:36 +0000 (07:10 +0000)]
Set the keyblock's magic number and ecryption type information appropriately
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@4671
dc483132-0cff-0310-8789-
dd5450dbe970
Theodore Tso [Thu, 17 Nov 1994 07:07:26 +0000 (07:07 +0000)]
Set the keyblock magic number and encryption type
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@4670
dc483132-0cff-0310-8789-
dd5450dbe970
Theodore Tso [Thu, 17 Nov 1994 07:06:22 +0000 (07:06 +0000)]
Add magic number field
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@4669
dc483132-0cff-0310-8789-
dd5450dbe970
Theodore Tso [Thu, 17 Nov 1994 07:05:42 +0000 (07:05 +0000)]
Changes to implement FCC format version #3, which is architecture
independent, and includes the key encryption type information.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@4668
dc483132-0cff-0310-8789-
dd5450dbe970
Theodore Tso [Thu, 17 Nov 1994 07:01:14 +0000 (07:01 +0000)]
Set the encryption type of the session keyblock to be the type used to
encrypt the ticket.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@4667
dc483132-0cff-0310-8789-
dd5450dbe970
Theodore Tso [Thu, 17 Nov 1994 07:00:18 +0000 (07:00 +0000)]
Check to make sure the subkey exists before setting its encryption type
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@4666
dc483132-0cff-0310-8789-
dd5450dbe970
Theodore Tso [Thu, 17 Nov 1994 06:34:53 +0000 (06:34 +0000)]
Add new error code --- KRB5_CC_WRITE_ERR
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@4665
dc483132-0cff-0310-8789-
dd5450dbe970
Richard Basch [Wed, 16 Nov 1994 16:49:01 +0000 (16:49 +0000)]
* krlogin.c:
If the system includes a SA_RESTART signal flag, use it.
We want to resume the read() system call after a SIGURG comes.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@4664
dc483132-0cff-0310-8789-
dd5450dbe970
Mark Eichin [Wed, 16 Nov 1994 06:16:40 +0000 (06:16 +0000)]
* dumpv4.c: new file. New command dump_v4db which creates a v4
slave dump out of a v5 database, leaving out any keys which aren't
using v4 salt, and any keys that aren't for the current
realm. Reencrypts using v4 master key, synthesizes arbitrary
master key version number.
* configure.in: use WITH_KRB4 for dump support.
* kdb5_ed_ct.ct: add new dump_v4 command.
* Makefile.in: link in dumpv4.
I've successfully used this to convert a full database and compared it with
the original by hand -- the only differences were
1) leading zeros on the new database
2) k.m date didn't match
3) mkvno's didn't match (but were consistent)
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@4663
dc483132-0cff-0310-8789-
dd5450dbe970
Mark Eichin [Wed, 16 Nov 1994 05:00:06 +0000 (05:00 +0000)]
* kdb5_convert.c (enter_in_v5_db): use the correct instance for
the mod_name field.
This makes the modifier field actually have a valid name in it, which
makes it (1) useful (2) easier to turn back into a v4 field...
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@4662
dc483132-0cff-0310-8789-
dd5450dbe970
Theodore Tso [Mon, 14 Nov 1994 21:36:09 +0000 (21:36 +0000)]
Move mk_cred and rd_cred to libkrb.a
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@4660
dc483132-0cff-0310-8789-
dd5450dbe970
Theodore Tso [Mon, 14 Nov 1994 21:35:28 +0000 (21:35 +0000)]
get_in_tkt (krb5_get_in_tkt): Set the encryption type of the session
keyblock to be the type used to encrypt the ticket.
mk_cred.c, rd_cred.c: New routines for forwarding credentials --- note that
the API is still subject to change! (Moved from telnet and bsd
directories)
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@4659
dc483132-0cff-0310-8789-
dd5450dbe970
Theodore Tso [Mon, 14 Nov 1994 21:33:58 +0000 (21:33 +0000)]
kerberos.c: Initialize random number generator on the server side so
that the encryption routines later on can use it.
Fix bug in how we pick the challenge for the challenge/response
mutual authentication.
forward.c: Move rd_cred and mk_cred to libkrb.a. (Although we still
need to fix the API!)
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@4658
dc483132-0cff-0310-8789-
dd5450dbe970
Mark Eichin [Mon, 14 Nov 1994 05:52:37 +0000 (05:52 +0000)]
another zero length manpage
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@4657
dc483132-0cff-0310-8789-
dd5450dbe970
Mark Eichin [Mon, 14 Nov 1994 05:22:39 +0000 (05:22 +0000)]
remote cvs loses on zero length files
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@4656
dc483132-0cff-0310-8789-
dd5450dbe970
Theodore Tso [Sat, 12 Nov 1994 02:04:36 +0000 (02:04 +0000)]
Add support for krb5_address table; rename KV5M_AUTH_DATA to follow
the convention properly.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@4655
dc483132-0cff-0310-8789-
dd5450dbe970
Tom Yu [Fri, 11 Nov 1994 12:11:41 +0000 (12:11 +0000)]
* Makefile.in: fix some typos for kv5m_err.et
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@4654
dc483132-0cff-0310-8789-
dd5450dbe970
Theodore Tso [Fri, 11 Nov 1994 05:53:38 +0000 (05:53 +0000)]
Defining setpgrp(a,b) to setpgrp() if SETPGRP_TWOARG is not set can
cause infinite macro recursion on some C preprocessors. Fix by
putting the #ifdef for SETPGRP_TWOARG where setpgrp is actually
called, instead of trying to redefine setpgrp().
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@4653
dc483132-0cff-0310-8789-
dd5450dbe970
Theodore Tso [Fri, 11 Nov 1994 05:33:17 +0000 (05:33 +0000)]
Set the encryption type in the keyblock information in the decrypted
ticket/authenticator/rd_rep message to be the encryption type used to
encrypt said message.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@4652
dc483132-0cff-0310-8789-
dd5450dbe970
Theodore Tso [Wed, 9 Nov 1994 05:12:23 +0000 (05:12 +0000)]
Fix bug in logic of incrementing the received challenge. A ++/--
mixup means there's a 1 in 256 chance the server will get it wrong.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@4651
dc483132-0cff-0310-8789-
dd5450dbe970
Theodore Tso [Wed, 9 Nov 1994 05:11:38 +0000 (05:11 +0000)]
Set the keyblock's magic number and encryption type information appropriately
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@4650
dc483132-0cff-0310-8789-
dd5450dbe970
Theodore Tso [Tue, 8 Nov 1994 23:00:00 +0000 (23:00 +0000)]
Change internal calling signature to pass in the encryption block, so
that the encryption type in the keyblock structure can be properly
initialized.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@4649
dc483132-0cff-0310-8789-
dd5450dbe970
Theodore Tso [Tue, 8 Nov 1994 22:54:25 +0000 (22:54 +0000)]
Use the published interface to call krb5_string_to_key()
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@4648
dc483132-0cff-0310-8789-
dd5450dbe970
Theodore Tso [Tue, 8 Nov 1994 22:53:21 +0000 (22:53 +0000)]
Use the documented interface for calling krb5_string_to_key()
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@4647
dc483132-0cff-0310-8789-
dd5450dbe970
Theodore Tso [Tue, 8 Nov 1994 22:52:39 +0000 (22:52 +0000)]
Use published interface to call krb5_random_key
Fix typo in do_as_req.c (added missing '&')
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@4646
dc483132-0cff-0310-8789-
dd5450dbe970
Theodore Tso [Tue, 8 Nov 1994 06:45:40 +0000 (06:45 +0000)]
Don't use $< in a non suffix rule context
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@4645
dc483132-0cff-0310-8789-
dd5450dbe970
Theodore Tso [Tue, 8 Nov 1994 06:42:49 +0000 (06:42 +0000)]
Fix spelling typo
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@4644
dc483132-0cff-0310-8789-
dd5450dbe970
Theodore Tso [Tue, 8 Nov 1994 06:41:00 +0000 (06:41 +0000)]
Use des_init_random_number_genator(), since that will result in
different subsession keys on successive runs of telnet.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@4643
dc483132-0cff-0310-8789-
dd5450dbe970
Theodore Tso [Tue, 8 Nov 1994 04:39:02 +0000 (04:39 +0000)]
Only print each possible authentication type once in the auth status
report.
Remove excess call to getauthmask() in auth_onoff() which stomped the
mask field. Only print each possible authentication type once in the
help message.
Fix reversed sense of strcasecmp comparison in getauthmask().
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@4642
dc483132-0cff-0310-8789-
dd5450dbe970
Theodore Tso [Tue, 8 Nov 1994 04:21:11 +0000 (04:21 +0000)]
Add check for stdlib.h
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@4641
dc483132-0cff-0310-8789-
dd5450dbe970
Theodore Tso [Tue, 8 Nov 1994 04:19:42 +0000 (04:19 +0000)]
Don't define functions manually, but pull in the appropriate include
files (com_err.h, krb5/ext-proto.h, krb5/los-proto.h, etc.)
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@4640
dc483132-0cff-0310-8789-
dd5450dbe970
Theodore Tso [Tue, 8 Nov 1994 03:52:25 +0000 (03:52 +0000)]
Only include <sys/tty.h> if HAVE_SYS_TTY_H is defined by configure
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@4639
dc483132-0cff-0310-8789-
dd5450dbe970
Theodore Tso [Tue, 8 Nov 1994 03:43:16 +0000 (03:43 +0000)]
Change prototypes of auth_enable() and auth_disable() to be a char *
Print an error message if there are no arguments to "auth" or
"encrypt", instead of core dumping.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@4638
dc483132-0cff-0310-8789-
dd5450dbe970
Theodore Tso [Tue, 8 Nov 1994 03:42:10 +0000 (03:42 +0000)]
Change the input type to be a char *, which is what auth_onoff wants anyway
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@4637
dc483132-0cff-0310-8789-
dd5450dbe970
Theodore Tso [Tue, 8 Nov 1994 03:31:30 +0000 (03:31 +0000)]
Don't define time() manually; pull it in from <time.h>
Add checking for whether we should be pulling in <time.h> and <sys/time.h>
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@4636
dc483132-0cff-0310-8789-
dd5450dbe970
Theodore Tso [Tue, 8 Nov 1994 03:17:51 +0000 (03:17 +0000)]
Add check for util library (needed for the Alpha)
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@4635
dc483132-0cff-0310-8789-
dd5450dbe970
Theodore Tso [Tue, 8 Nov 1994 03:14:31 +0000 (03:14 +0000)]
Fix lineage check so that we don't fail if we're cross-authenticating
with a realm with the same length as our own. ('||' should have been '&&')
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@4634
dc483132-0cff-0310-8789-
dd5450dbe970
Theodore Tso [Tue, 8 Nov 1994 03:13:58 +0000 (03:13 +0000)]
Use published interface to call krb5_random_key()
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@4633
dc483132-0cff-0310-8789-
dd5450dbe970
Theodore Tso [Tue, 8 Nov 1994 02:37:55 +0000 (02:37 +0000)]
Checked in Richard's changes of November 2nd. (See changelog). Lots of
portability fixes: POSIX_SIGNALS, POSIX_SETJMP, use of POSIX waitpid, etc.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@4632
dc483132-0cff-0310-8789-
dd5450dbe970
Theodore Tso [Tue, 8 Nov 1994 02:29:39 +0000 (02:29 +0000)]
Added checks POSIX setjmp handling and POSIX signal handling
(CHECK_SETJMP, CHECK_SIGNALS)
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@4631
dc483132-0cff-0310-8789-
dd5450dbe970
Theodore Tso [Tue, 8 Nov 1994 02:23:44 +0000 (02:23 +0000)]
Use POSIX method of obtaining fd table size, if available
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@4630
dc483132-0cff-0310-8789-
dd5450dbe970
Theodore Tso [Sat, 5 Nov 1994 00:45:29 +0000 (00:45 +0000)]
Missing comma on all of the error_code lines. (Oops!)
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@4629
dc483132-0cff-0310-8789-
dd5450dbe970
Mark Eichin [Fri, 4 Nov 1994 04:59:05 +0000 (04:59 +0000)]
make this not zero length
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@4628
dc483132-0cff-0310-8789-
dd5450dbe970
Mark Eichin [Thu, 3 Nov 1994 23:33:21 +0000 (23:33 +0000)]
* Makefile.in: stop building f_pcbc.c, since it belongs in
libdes425, but leave it here for reference.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@4627
dc483132-0cff-0310-8789-
dd5450dbe970
Mark Eichin [Thu, 3 Nov 1994 23:31:51 +0000 (23:31 +0000)]
* pcbc_encrypt.c: moved from f_pcbc.c in lib/crypto/des, and
inlined proper des.h to avoid confusion in names.
* Makefile.in: add -I to CFLAGS to get f_tables.h from
lib/crypto/des as well.
this shouldn't have been in lib/crypto/des in the first place, and the old
version here was nonportable.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@4626
dc483132-0cff-0310-8789-
dd5450dbe970
Theodore Tso [Thu, 3 Nov 1994 21:47:47 +0000 (21:47 +0000)]
Added a field to hold an encryption type in the keyblock field --- so
routines have a hint of which encryption type they should use.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@4625
dc483132-0cff-0310-8789-
dd5450dbe970
Theodore Tso [Thu, 3 Nov 1994 21:44:42 +0000 (21:44 +0000)]
Add support for the kv5m error table. (For magic numbers.)
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@4624
dc483132-0cff-0310-8789-
dd5450dbe970
Theodore Tso [Thu, 3 Nov 1994 21:43:58 +0000 (21:43 +0000)]
Add the kv5m error table
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@4623
dc483132-0cff-0310-8789-
dd5450dbe970
Theodore Tso [Thu, 3 Nov 1994 04:14:24 +0000 (04:14 +0000)]
Add WITH_CPPOPTS since we're not using CONFIG_RULES (yet)
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@4622
dc483132-0cff-0310-8789-
dd5450dbe970
Theodore Tso [Thu, 3 Nov 1994 04:13:58 +0000 (04:13 +0000)]
We're probably not going to be building in the top-level directory,
but even so, the CFLAGS should include $(DEFS).
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@4621
dc483132-0cff-0310-8789-
dd5450dbe970
Theodore Tso [Thu, 3 Nov 1994 03:56:08 +0000 (03:56 +0000)]
Don't actually add the $(CPPOPTS) flags to CPPFLAGS; CPPFLAGS has them
defined already. In fact, don't define the CPPOPTS makefile variable
at all; we don't need it.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@4620
dc483132-0cff-0310-8789-
dd5450dbe970
Theodore Tso [Thu, 3 Nov 1994 03:53:31 +0000 (03:53 +0000)]
Don't recursively pass the CPPOPTS makefile variable down to subdirectories
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@4619
dc483132-0cff-0310-8789-
dd5450dbe970
Theodore Tso [Thu, 3 Nov 1994 02:12:40 +0000 (02:12 +0000)]
NULL should not be used as a character assignment value. Use '\0' instead
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@4618
dc483132-0cff-0310-8789-
dd5450dbe970
Theodore Tso [Thu, 3 Nov 1994 02:09:05 +0000 (02:09 +0000)]
NULL should not be used as a character assignment value. Use '\0'
instead.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@4617
dc483132-0cff-0310-8789-
dd5450dbe970
Theodore Tso [Thu, 3 Nov 1994 02:05:05 +0000 (02:05 +0000)]
Add support for a new --with-cppopts" value where you can put -DXXXXX
such that they are found by autoconf tests that use run the
preprocessor over header files.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@4616
dc483132-0cff-0310-8789-
dd5450dbe970
Theodore Tso [Thu, 3 Nov 1994 02:03:10 +0000 (02:03 +0000)]
Add support for a new "--with-cppopts" value where you can put -DXXXXX
such that they are found by autoconf tests that use run the
preprocessor over header files.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@4615
dc483132-0cff-0310-8789-
dd5450dbe970
Mark Eichin [Wed, 2 Nov 1994 18:56:46 +0000 (18:56 +0000)]
revert misguided kstash changes
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@4614
dc483132-0cff-0310-8789-
dd5450dbe970
Mark Eichin [Wed, 2 Nov 1994 07:40:16 +0000 (07:40 +0000)]
* Makefile.in (libkrb5.a): done needs a trailing semicolon if it
isn't followed by a newline, as does fi, with certain shells.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@4613
dc483132-0cff-0310-8789-
dd5450dbe970
Theodore Tso [Wed, 2 Nov 1994 02:07:33 +0000 (02:07 +0000)]
Include the tag numbers for the krb5 application tags, since that's
something we're going to want to check to make sure they're actually
correct.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@4612
dc483132-0cff-0310-8789-
dd5450dbe970
Theodore Tso [Wed, 2 Nov 1994 02:01:14 +0000 (02:01 +0000)]
Add the "-t option to krb5_encode_test, which causes it to use the
ASN.1 unparser found in trval.c. This routine will attempt to decode
the ASN.1 data stream and display it in a logical format for a human
being to decipher.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@4611
dc483132-0cff-0310-8789-
dd5450dbe970