krb5.git
24 years ago * krb5_decode_test.c (main): Add new test cases for indefinite
Tom Yu [Thu, 26 Oct 2000 23:01:49 +0000 (23:01 +0000)]
* krb5_decode_test.c (main): Add new test cases for indefinite
length ticket and as_rep.  Fix up calls to decode_run() to have
the modifier be in the description parameter.

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

24 years ago * asn1buf.c (asn1buf_sync): Add new arguments to include the full
Tom Yu [Thu, 26 Oct 2000 22:58:13 +0000 (22:58 +0000)]
* asn1buf.c (asn1buf_sync): Add new arguments to include the full
complement of data about a prefetched tag, as well as to indicate
whether the prefetched tag or the surrounding sequence is of an
indefinite length.
(asn1buf_skiptail): Add new arguments to indicate whether the
prefetched tag is indefinite, as well as its length.  This
facilitates proper skipping of trailing garbage.
(asn1buf_remains): Add new argument to indicate whether the
surrounding encoding is indefinite.  Don't advance buf->next if an
EOC encoding is detected; the caller will do that.

* asn1buf.h: Update prototypes.

* asn1_get.c (asn1_get_tag_indef): Don't treat EOC encoding as
special anymore, since previous behavior was overloading the
tag number in a bad way.  Also, report a MISMATCH_INDEF error if
the tag encoding is for the forbidden primitive constructed
encoding.

* asn1_k_decode.c (next_tag): Call get_tag_indef() in order to get
information about whether the length is indefinite.  Don't check
the tag class and construction explicitly.
(get_eoc): New macro to get a tag and check if it is an EOC
encoding.
(get_field, opt_field): Move the check for the tag class and
construction to here.
(get_field_body, get_lenfield_body): Call get_eoc() instead of
next_tag() if we are decoding a constructed indefinite encoding.
(begin_structure): Use a different variable to indicate whether
the sequence is indefinite as opposed to whether an individual
field is indefinite.
(end_structure): Update to new calling convention of
asn1buf_sync().
(sequence_of): Rewrite significantly.
(sequence_of_common): Move the bulk of previous sequence_of()
macro to here.  Does not declare some variables that sequence_of()
declares.
(sequence_of_no_tagvars): Similar to sequence_of() macro but
declares different variables for the purpose of prefetching the
final tag.
(end_sequence_of_no_tagvars): Similar to end_sequence_of() macro
but uses variables declared by the sequence_of_no_tagvars() macro
to prefetch the final tag.
(asn1_decode_principal_name): Update for new asn1buf_remains()
calling convention.  Call sequence_of_no_tagvars(), etc. instead
of sequence_of(), etc. in order to not declare shadowing
block-local variables.
(decode_array_body): Update for new asn1buf_remains() calling
convention.
(asn1_decode_sequence_of_enctype): Update for new
asn1buf_remains() calling convention.

* krb5_decode.c (next_tag): Call get_tag_indef() in order to get
information about whether the length is indefinite.  Don't check
the tag class and construction explicitly.
(get_eoc): New macro to get a tag and check if it is an EOC
encoding.
(get_field, opt_field): Move the check for the tag class and
construction to here.
(get_field_body, get_lenfield_body): Call get_eoc() instead of
next_tag() if we are decoding a constructed indefinite encoding.
(begin_structure): Use a different variable to indicate whether
the sequence is indefinite as opposed to whether an individual
field is indefinite.
(end_structure): Update to new calling convention of
asn1buf_sync().

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

24 years ago * asn1_err.et: Add error codes MISMATCH_INDEF and MISSING_EOC
Tom Yu [Thu, 26 Oct 2000 22:34:04 +0000 (22:34 +0000)]
* asn1_err.et: Add error codes MISMATCH_INDEF and MISSING_EOC

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

24 years ago * t_ser.c: Cast getpid() calls to int as arguments to sprintf
Ezra Peisach [Thu, 26 Oct 2000 17:21:40 +0000 (17:21 +0000)]
* t_ser.c: Cast getpid() calls to int as arguments to sprintf

* ser_actx.c: Move prototypes (listed below) to int-proto.h

* int-proto.h: Add prototypes for krb5_ser_authdata_init,
krb5_ser_address_init, krb5_ser_authenticator_init,
krb5_ser_checksum_init, krb5_ser_keyblock_init,
krb5_ser_principal_init.

* ser_adata.c, ser_addr.c, ser_auth.c, ser_cksum.c, ser_key.c,
ser_princ.c: Include int-proto.h for prototypes.

By moving the prototypes to int-proto.h, it ndles the gcc warning
on missing prototypes. These functions are intenal and all used by
krb5_ser_auth_context_init()

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

24 years ago#include autoconf.h instead of duplicating defines
Miro Jurisic [Tue, 24 Oct 2000 23:22:05 +0000 (23:22 +0000)]
#include autoconf.h instead of duplicating defines

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

24 years ago * kadm_ser_wrap.c (kadm_ser_in): Update call to mk_priv()
Tom Yu [Tue, 24 Oct 2000 00:18:54 +0000 (00:18 +0000)]
* kadm_ser_wrap.c (kadm_ser_in): Update call to mk_priv()

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

24 years ago * secure.h: Change SESSION to refer to &cred.session instead, so
Tom Yu [Tue, 24 Oct 2000 00:15:17 +0000 (00:15 +0000)]
* secure.h: Change SESSION to refer to &cred.session instead, so
as to have the correct pointer type when passed to
{mk,rd}_{safe,priv}() functions.

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

24 years ago * compat_recv.c (krb_v4_recvauth): Update call to mk_priv()
Tom Yu [Tue, 24 Oct 2000 00:14:42 +0000 (00:14 +0000)]
* compat_recv.c (krb_v4_recvauth): Update call to mk_priv()

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

24 years ago * mk_auth.c (krb_check_auth): Modify call to rd_priv() by kludging
Tom Yu [Tue, 24 Oct 2000 00:14:18 +0000 (00:14 +0000)]
* mk_auth.c (krb_check_auth): Modify call to rd_priv() by kludging
a cast of session key to C_Block *, since CNS is inconsistent in
this area as well.

* mk_priv.c (krb_mk_priv): Align with CNS by taking C_Block *.

* mk_safe.c (krb_mk_safe): Align with CNS by taking C_Block *.

* rd_priv.c (krb_rd_priv): Align with CNS by taking C_Block *.

* rd_safe.c (krb_rd_safe): Align with CNS by taking C_Block *.

* recvauth.c (krb_recvauth): Update call to mk_priv() to have the
correct type.

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

24 years ago * krb.h: Modify krb_{mk,rd}_{priv,safe} prototypes to align with
Tom Yu [Tue, 24 Oct 2000 00:13:45 +0000 (00:13 +0000)]
* krb.h: Modify krb_{mk,rd}_{priv,safe} prototypes to align with
CNS, mostly by making them take C_Block * arguments.

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

24 years ago * library.tex: Update to latex2e. Include krb5idx.sty
Ezra Peisach [Wed, 18 Oct 2000 13:58:17 +0000 (13:58 +0000)]
    * library.tex: Update to latex2e. Include krb5idx.sty

        * Makefile (lib1.stamp): Use makeindex to generate index instead
        of an antiquated texindex program - which is not the same texindex
        as in the texinfo package.

        * krb5idx.sty: Style for generating indexes. Provides definitions
        for use with krb5.ist.

        * krb5.ist: makeindex macros. Based on gind.ist.

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

24 years ago * krb5.tex: krb5_unparse_name_ext(), krb5_build_principal(),
Ezra Peisach [Tue, 17 Oct 2000 23:13:25 +0000 (23:13 +0000)]
    * krb5.tex: krb5_unparse_name_ext(), krb5_build_principal(),
        krb5_build_principal_va, krb5_build_printicpal_ext() use unsigned
        ints.

        * libos.tex: krb5_read_password() takes an unsigned int * as the
        final argument.

        * keytab.tex: krb5_kt_get_name() takes an unsigned int.

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

24 years ago * kpasswd.c (main): Argument to krb5_read_password takes an
Ezra Peisach [Tue, 17 Oct 2000 23:12:57 +0000 (23:12 +0000)]
    * kpasswd.c (main): Argument to krb5_read_password takes an
        unsigned int as argument.

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

24 years ago * krb_auth_su.c (krb5_get_tkt_via_passwd): Argument to
Ezra Peisach [Tue, 17 Oct 2000 23:12:40 +0000 (23:12 +0000)]
    * krb_auth_su.c (krb5_get_tkt_via_passwd): Argument to
        krb5_read_password now takes an unsigned int.

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

24 years ago * klist.c (one_addr): gethostbyaddr takes an int as second argument
Ezra Peisach [Tue, 17 Oct 2000 23:12:04 +0000 (23:12 +0000)]
    * klist.c (one_addr): gethostbyaddr takes an int as second argument

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

24 years ago * kinit.c (k4_kinit): Argument to krb5_read_password takes as
Ezra Peisach [Tue, 17 Oct 2000 23:11:52 +0000 (23:11 +0000)]
    * kinit.c (k4_kinit): Argument to krb5_read_password takes as
        unsigned int as argument.

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

24 years ago * ftpd.c (reply): For gssapi connection, do not include NULL in
Ezra Peisach [Tue, 17 Oct 2000 23:07:41 +0000 (23:07 +0000)]
    * ftpd.c (reply): For gssapi connection, do not include NULL in
        sealed reply string.

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

24 years ago * login.c (k5_get_password): Declare second argument as unsigned
Ezra Peisach [Tue, 17 Oct 2000 23:07:23 +0000 (23:07 +0000)]
    * login.c (k5_get_password): Declare second argument as unsigned
        int length.

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

24 years ago * adm_conn.c, kpasswd.c: Argument to krb5_read_password
Ezra Peisach [Tue, 17 Oct 2000 23:07:03 +0000 (23:07 +0000)]
   * adm_conn.c, kpasswd.c: Argument to krb5_read_password
        takes an unsigned int.

        * kadm5_defs.h, main.c (pwd_change): Argument err_str_len changed
        to unsigned int. (Argument to kadm5_chpass_principal_util()).

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

24 years ago * ovsec_kadmd.c (do_schpw): Cast arguments to sendto() which take int
Ezra Peisach [Tue, 17 Oct 2000 23:06:48 +0000 (23:06 +0000)]
   * ovsec_kadmd.c (do_schpw): Cast arguments to sendto() which take int

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

24 years ago * tty_kpasswd.c (read_old_password): Argument pwsize changed to
Ezra Peisach [Tue, 17 Oct 2000 23:06:22 +0000 (23:06 +0000)]
    * tty_kpasswd.c (read_old_password): Argument pwsize changed to
        unsigned int.

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

24 years ago * kdb5_create.c (kdb5_create): Argument to krb5_read_password
Ezra Peisach [Tue, 17 Oct 2000 23:06:08 +0000 (23:06 +0000)]
    * kdb5_create.c (kdb5_create): Argument to krb5_read_password
        changed to unsigned int.

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

24 years ago * kadmin.c (kadmin_cpw): Argument to krb5_read_password changed to
Ezra Peisach [Tue, 17 Oct 2000 23:05:56 +0000 (23:05 +0000)]
    * kadmin.c (kadmin_cpw): Argument to krb5_read_password changed to
        unsigned int.

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

24 years ago * ktest.c (ktest_make_sample_etype_info): Use KRB5_ETYPE_NO_SALT
Ezra Peisach [Tue, 17 Oct 2000 23:05:24 +0000 (23:05 +0000)]
    * ktest.c (ktest_make_sample_etype_info): Use KRB5_ETYPE_NO_SALT
        instead of -1.

        * ktest_equal.c (ktest_equal_krb5_etype_info_entry): Test for
        KRB5_ETYPE_NO_SALT. ktest_equal_array_of_octet() and
        ktest_equal_array_of_char take unsigned int lengths.

        * ktest_equal.h: Add len_unsigned_array macro for a prototype of a
        function taking an unsigned int
        count. ktest_equal_array_of_octet() is one of
        these. ktest_equal_array_of_char() takes an unsigned int as
        length.

        * trval.c (trval): Unsigned/signed int fix.

        * utility.c (asn1_krb5_data_unparse): Better test for krb5_data
        length being less than zero.

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

24 years ago * encode.c, krb524.h: encode_v4tkt() and decode_v4tkt() now take
Ezra Peisach [Tue, 17 Oct 2000 23:04:32 +0000 (23:04 +0000)]
* encode.c, krb524.h: encode_v4tkt() and decode_v4tkt() now take
unsigned int * lengths.

* krb524d.c (do_connection): Cast length fields in recvfrom() and
sendto() calls to int.

* sendmsg.c (krb524_sendto_kdc): Cast length fields in recv() and
send() calls to int.

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

24 years ago * kdc_preauth.c (get_etype_info): Initialize length of
Ezra Peisach [Tue, 17 Oct 2000 23:03:59 +0000 (23:03 +0000)]
* kdc_preauth.c (get_etype_info): Initialize length of
etype_info_entry to KRB5_ETYPE_NO_SALT. Before copying salt into
etype_info_entry, test that salt length (from get_salt_from_key())
is not SALT_TYPE_NO_LENGTH.

* kdc_util.c (get_salt_from_key): Initialize salt type to
SALT_TYPE_NO_LENGTH (instead of -1).

* network.c (process_packet): Cast length in sendto() call to int.

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

24 years ago * clnt_chpass_util.c (kadm5_chpass_principal_util): Change msg_len
Ezra Peisach [Tue, 17 Oct 2000 23:02:42 +0000 (23:02 +0000)]
* clnt_chpass_util.c (kadm5_chpass_principal_util): Change msg_len
to unsigned int.

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

24 years ago * svr_chpass_util.c (kadm5_chpass_principal_util): Change msg_len
Ezra Peisach [Tue, 17 Oct 2000 23:02:30 +0000 (23:02 +0000)]
* svr_chpass_util.c (kadm5_chpass_principal_util): Change msg_len
to unsigned int.

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

24 years ago * admin.h (KADM5_PW_FIRST_PROMPT): Get rid of casts from
Ezra Peisach [Tue, 17 Oct 2000 23:02:10 +0000 (23:02 +0000)]
* admin.h (KADM5_PW_FIRST_PROMPT): Get rid of casts from
error_message to char * - leave them as const char *.
(kadm5_chpass_principal_util): Argument msg_len is unsigned int.

* admin_internal.h (_kadm5_chpass_principal_util): msg_len is
unsigned int.

* chpass_util.c (_kadm5_chpass_principal_util): Change msg_len to
unsigned int. Arhument to krb5_read_password is unsigned int.

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

24 years ago * changepw.c: Cast length argument to recvfrom/sendto to int
Ezra Peisach [Tue, 17 Oct 2000 23:01:33 +0000 (23:01 +0000)]
* changepw.c: Cast length argument to recvfrom/sendto to int

* os-proto.h: Moved extern definition of krb5_max_dgram_size,
krb5_max_skdc_timeout, krb5_skdc_timeout_shift,
krb5_skdc_timeout_1 here.

* accessor.c: Definition for krb5_max_dgram_size,
krb5_max_skdc_timeout, krb5_skdc_timeout_shift,
krb5_skdc_timeout_1 moved to os-proto.h

* osconfig.c: Changed definition for krb5_max_dgram_size,
krb5_max_skdc_timeout, krb5_skdc_timeout_shift,
krb5_skdc_timeout_1 to unsigned int.

* get_krbhst.c, init_os_context.c, locate_kdc.c, prompter.c:
Unsigned/signed int cleanup.

* read_pwd.c (krb5_read_password): Change size_return to unsigned
int *.

* sendto_kdc.c: Remove definition for krb5_max_dgram_size,
krb5_max_skdc_timeout, krb5_skdc_timeout_shift,
krb5_skdc_timeout_1. (moved to os-proto.h). Cast arguments to int
for send() and recv().

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

24 years ago * bld_pr_ext.c, bld_princ.c (krb5_build_principal_ext,
Ezra Peisach [Tue, 17 Oct 2000 23:00:56 +0000 (23:00 +0000)]
* bld_pr_ext.c, bld_princ.c (krb5_build_principal_ext,
krb5_build_principal_va, krb5_build_principal): Take an unsigned
int realm length.

* get_in_tkt.c (krb5_get_init_creds): Use SALT_TYPE_AFS_LENGTH
instead of -1.

* gic_pwd.c (krb5_get_as_key_password): Use SALT_TYPE_AFS_LENGTH
instead of -1.

* in_tkt_pwd.c (pwd_keyproc): Argument to krb5_read_password is
unsigned int.

* pr_to_salt.c (krb5_principal2salt_internal): Declare as
static. Unsigned int fix.

* preauth.c (krb5_obtain_padata): Use SALT_TYPE_AFS_LENGTH instead
of -1.

* preauth2.c (pa_salt): Use SALT_TYPE_AFS_LENGTH instead of -1.

* conv_princ.c, copy_auth.c, copy_princ.c, gc_frm_kdc.c, parse.c,
send_tgs.c, srv_rcache.c: Unsigned/signed int cleanup.

* unparse.c (krb5_unparse_name_ext): size parameter changed to
unsigned int *.

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

24 years ago * ktbase.c (krb5_kt_resolve): Signed/unsigned int
Ezra Peisach [Tue, 17 Oct 2000 23:00:27 +0000 (23:00 +0000)]
* ktbase.c (krb5_kt_resolve): Signed/unsigned int
cleanups. Maintain const char * attribute of incomming name.

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

24 years ago* cc_stdio.c, cc_file.c: Unsigned/signed int cleanup
Ezra Peisach [Tue, 17 Oct 2000 23:00:06 +0000 (23:00 +0000)]
* cc_stdio.c, cc_file.c: Unsigned/signed int  cleanup

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

24 years ago * asn1buf.h: Lengths are now unsigned int for
Ezra Peisach [Tue, 17 Oct 2000 22:59:50 +0000 (22:59 +0000)]
* asn1buf.h: Lengths are now unsigned int for
asn1buf_ensure_space(), asn1buf_expand(), asn1buf_imbed(),
asn1buf_sync(), asn1buf_insert_octetstring(),
asn1buf_insert_charstring(), asn1_remove_octetstring(),
asn1buf_remove_charstring(),

* krb5_decode.c, krb5_encode.c: Length fields are unsigned ints.

* asn1_make.c, asn1_make.h: Prototypes changed to use an unsigned
int * in_len and retlen for: asn1_make_etag(), asn1_make_tag(),
asn1_make_sequence(), asn1_make_set(), asn1_make_string(),
asn1_make_length(), asn1_make_id().

* asn1_k_encode.h, asn1_k_encode.c: Change length fields to
unsigned ints for all functions.
(asn1_encode_etype_info_entry): Test for KRB5_ETYPE_NO_SALT
instead of -1.

* asn1_k_decode.c (asn1_decode_etype_info_entry): Use a length of
KRB5_ETYPE_NO_SALT to indicate the optional salt not being
present. (instead of -1).
(setup): Length is now unsigned int.

* asn1_get.c, asn1_get.h: Change retlent to unsigned int * for
asn1_get_tag(), asn1_get_tag_indef(), asn1_get_sequence,
asn1_get_length().

* asn1_encode.c, asn1_encode.h: Change retlen to unsigned int *
for asn1_encode_integer(), asn1_encode_unsigned_integer(),
asn1_encode_octetstring(), asn1_encode_charstring(),
asn1_encode_printable_string(), asn1_encode_ia5string(),
asn1_encode_generaltime(), asn1_encode_generalstring()

* asn1_decode.c, asn1_decode.h: Change retlen to unsigned int *
for asn1_decode_octetstring(), asn1_decode_generalstring(),
asn1_decode_charstring(),

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

24 years ago * fetch_mkey.c: Signed/unsigned int cleanup
Ezra Peisach [Tue, 17 Oct 2000 22:59:05 +0000 (22:59 +0000)]
    * fetch_mkey.c: Signed/unsigned int cleanup

        * kdb_cpw.c (add_key_pwd): Change salt data length of -1 to
        SALT_TYPE_AFS_LENGTH.

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

24 years ago * cksum.c (des_cbc_cksum): Length is unsigned long
Ezra Peisach [Tue, 17 Oct 2000 22:58:46 +0000 (22:58 +0000)]
    * cksum.c (des_cbc_cksum): Length is unsigned long

        * enc_dec.c (des_cbc_encrypt): Length is unsigned long.

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

24 years ago * nfold.c (krb5_nfold): inbots and outbits are now unsigned int
Ezra Peisach [Tue, 17 Oct 2000 22:58:08 +0000 (22:58 +0000)]
    * nfold.c (krb5_nfold): inbots and outbits are now unsigned int

        * prng.c: Local variable random_count is now unsigned int.

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

24 years ago * hash_sha1.c (k5_sha1_hash): Cast length field in shsUpdate call
Ezra Peisach [Tue, 17 Oct 2000 22:57:58 +0000 (22:57 +0000)]
    * hash_sha1.c (k5_sha1_hash): Cast length field in shsUpdate call
        to int.

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

24 years ago * des_int.h: Change prototypes for mit_des_cbc_encrypt(),
Ezra Peisach [Tue, 17 Oct 2000 22:57:34 +0000 (22:57 +0000)]
* des_int.h: Change prototypes for mit_des_cbc_encrypt(),
mit_des_cbc_cksum(), and mit_des3_cbc_encrypt() to take unsigned
long lengths.

* d3_cbc.c (mit_des3_cbc_encrypt): Length argument now takes an
unsigned long.

* f_cbc.c (mit_des_cbc_encrypt): Length argument now takes an
unsigned long.

* f_cksum.c (mit_des_cbc_cksum): Length argument now takes an
unsigned long.

* string2key.c: Unsigned/signed int cleanup. Test for a
salt-length of SALT_TYPE_AFS_LENGTH or -1 (for backwards
compatibilty) for use of mit_afs_string_to_key().

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

24 years ago * k5-int.h: krb5_alt_method, krb5_etype_info_entry length fields
Ezra Peisach [Tue, 17 Oct 2000 22:57:05 +0000 (22:57 +0000)]
* k5-int.h: krb5_alt_method, krb5_etype_info_entry length fields
changed to unsigned int. KRB5_ETYPE_NO_LENGTH defined.  Change
prototype decode_krb5_sam_key to decode_krb5_enc_sam_key which is
what the code says.
krb5int_access - change timeouts, shifts, etc to unsigned ints.

* krb5.hin: krb5_data, krb5_address, krb5_keyblock, krb5_checksum,
krb5_authdata, and krb5_pa_data length fields changed to unsigned
int. krb5_kt_get_name(), krb5_unparse_name_ext(),
krb5_build_principal(), krb5_build_principal_ext(),
krb5_build_principal_va() and krb5_read_password() all take or
return unsigned int lengths.

* port-sockets.h (SOCKET): Under unix, a socket is of type int.

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

24 years ago * krb5_libinit.c: Include krb5_libinit.h for prototypes
Ezra Peisach [Tue, 17 Oct 2000 16:51:24 +0000 (16:51 +0000)]
* krb5_libinit.c: Include krb5_libinit.h for prototypes

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

24 years ago * kparse.h: Add prototypes for fGetChar(), fGetParameterSet(),
Ezra Peisach [Tue, 17 Oct 2000 15:00:06 +0000 (15:00 +0000)]
* kparse.h: Add prototypes for fGetChar(), fGetParameterSet(),
ParmCompare(), FreeParameterSet(), fGetKeywordValue(),
fGetToken(), fGetLiteral(), fUngetChar().

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

24 years ago * sim_server.c: Cast to int strings width arguments in printf
Ezra Peisach [Tue, 17 Oct 2000 14:07:53 +0000 (14:07 +0000)]
 * sim_server.c: Cast to int strings width arguments in printf

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

24 years ago * kprop.c, kpropd.c: Use krb5_set_principal_realm() instead of
Ezra Peisach [Tue, 17 Oct 2000 14:05:08 +0000 (14:05 +0000)]
* kprop.c, kpropd.c: Use krb5_set_principal_realm() instead of
freeing library generated memory using the internal krb5_xfree().

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

24 years ago * kadmin.c (strdur): Print negative durations somewhat (!)
Tom Yu [Tue, 17 Oct 2000 03:17:55 +0000 (03:17 +0000)]
* kadmin.c (strdur): Print negative durations somewhat (!)
sanely.
(kadmin_startup): Call krb5_klog_init() to avoid coredumping if
kadm5_init() logs something via krb5_klog_syslog().

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

24 years ago * kdb5_util.M: Update manpage
Tom Yu [Tue, 17 Oct 2000 03:14:56 +0000 (03:14 +0000)]
* kdb5_util.M: Update manpage

* kdb5_util.c (usage): Update usage message.

* dumpv4.c (dump_v4_iterator): Add logic to deal with long
lifetimes, as well as optionally using short lifetimes.

* loadv4.c (load_v4db): Add logic to deal with long lifetimes, as
well as optionally using short lifetimes.

* kadm5_create.c (kadm5_create_magic_princs): Add calls to
krb5_klog_init() and krb5_klog_close() to avoid coredumping if
kadm5_init() calls krb5_klog_syslog().

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

24 years ago* krb5.tex (krb5_init_context): Parameter is output only
Ezra Peisach [Tue, 17 Oct 2000 01:27:32 +0000 (01:27 +0000)]
* krb5.tex (krb5_init_context): Parameter is output only

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

24 years ago * kpropd.c, kprop.c: Ensure size of database sent OTW as 4 bytes
Ezra Peisach [Sat, 14 Oct 2000 18:24:17 +0000 (18:24 +0000)]
    * kpropd.c, kprop.c:  Ensure size of database sent OTW as 4 bytes
        instead of sizeof(int).

In the past we assumed that the client and server had the same concept on
int size.

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

24 years ago * lock-test.c (main): Cleanup assignments in conditionals. If
Ezra Peisach [Thu, 12 Oct 2000 18:58:26 +0000 (18:58 +0000)]
* lock-test.c (main): Cleanup assignments in conditionals. If
USE_KADM5_API_VERSION is 1, set to 2. This program uses the V2 api
(kadm5_get_config_params).

* setkey-test.c: Declare main() as int. Enclose initialization of
elements of arrays in '{', '}'. Use krb5_enctype type instead of
unsigned int. Break out assignments in conditionals.

* destroy-test.c, handle-test.c, init-test.c, iter-test.c,
randkey-test.c: Declare main() as int.

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

24 years ago * default.exp: Add dict_file entry (and create one) for kdc.conf
Ezra Peisach [Thu, 12 Oct 2000 16:07:46 +0000 (16:07 +0000)]
* default.exp: Add dict_file entry (and create one) for kdc.conf

Since the warning message about missing dictionary is now going to the
proper place (instead of simply syslogging), the logic to detect kadmind
startup is getting confused by the warning message of a dictionary not being in
place.

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

24 years ago * kadm_funcs.c: Call life_to_time() and time_to_life() as
Tom Yu [Tue, 10 Oct 2000 19:23:16 +0000 (19:23 +0000)]
* kadm_funcs.c: Call life_to_time() and time_to_life() as
appropriate.

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

24 years agogetifaddrs() support
Ken Raeburn [Tue, 10 Oct 2000 15:32:50 +0000 (15:32 +0000)]
getifaddrs() support

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

24 years agogetifaddrs() support
Ken Raeburn [Tue, 10 Oct 2000 15:24:22 +0000 (15:24 +0000)]
getifaddrs() support

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

24 years ago * kparse.c: Provide prototype for static struol(). Do not define
Ezra Peisach [Tue, 10 Oct 2000 09:13:09 +0000 (09:13 +0000)]
    * kparse.c: Provide prototype for static struol(). Do not define
        void as int (autoconf can handle that).

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

24 years ago * ftp.c (do_auth): Remove debugging printf which I inadvertantly
Ezra Peisach [Tue, 10 Oct 2000 09:02:05 +0000 (09:02 +0000)]
    * ftp.c (do_auth): Remove debugging printf which I inadvertantly
        introduced.

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

24 years ago * kcmd.c (kcmd): Use krb5_set_principal_realm() instead of freeing the
Ezra Peisach [Tue, 10 Oct 2000 09:00:59 +0000 (09:00 +0000)]
    * kcmd.c (kcmd): Use krb5_set_principal_realm() instead of freeing the
        principals realm data and mucking with it ourselves.

This way, we do not free memory allocated by the krb5 library with
a possibly incorrect free, and we do not allocate memory
for a krb5 structure which might be released by the krb5 library.

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

24 years ago * server_dict.c (init_dict): Change syslog() to krb5_klog_syslog()
Ezra Peisach [Tue, 10 Oct 2000 07:11:45 +0000 (07:11 +0000)]
    * server_dict.c (init_dict): Change syslog() to krb5_klog_syslog()
        so that errors go to the intended place as indicated by krb5.conf.

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

24 years ago * klist.c (do_v4_ccache): Call life_to_time()
Tom Yu [Mon, 9 Oct 2000 23:24:18 +0000 (23:24 +0000)]
* klist.c (do_v4_ccache): Call life_to_time()

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

24 years ago * kinit.c (k4_kinit): Call time_to_life()
Tom Yu [Mon, 9 Oct 2000 23:23:37 +0000 (23:23 +0000)]
* kinit.c (k4_kinit): Call time_to_life()

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

24 years ago * g_tkt_svc.c (CredIsExpired): Fix logic bug
Tom Yu [Sun, 8 Oct 2000 01:31:49 +0000 (01:31 +0000)]
* g_tkt_svc.c (CredIsExpired): Fix logic bug

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

24 years ago * kerberos_v4.c (kerb_get_principal): Modify to take a pointer to
Tom Yu [Sat, 7 Oct 2000 02:31:21 +0000 (02:31 +0000)]
* kerberos_v4.c (kerb_get_principal): Modify to take a pointer to
a krb5_deltat in order to return the life in seconds.  Also, use
time_to_life() to compute krb4 life.
(check_princ): Modify to pass a pointer to a krb5_deltat to
kerb_get_principal().
(set_tgtkey): Update for new kerb_get_principal() call signature.
(kerberos_v4): Update for new check_princ() call signature.
Modify lifetime computations to use lifetimes in seconds.
Back-date issue time if necessary.

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

24 years ago * conv_creds.c (krb524_convert_creds_plain): Use time_to_life()
Tom Yu [Sat, 7 Oct 2000 02:25:24 +0000 (02:25 +0000)]
* conv_creds.c (krb524_convert_creds_plain): Use time_to_life()
and life_to_time() to do lifetime calculations, including the
adjustment of start time, to match server-side calculations.

* cnv_tkt_skey.c (krb524_convert_tkt_skey): Use time_to_life() and
life_to_time() to do lifetime calculations.  Adjust start time
backwards to deal with roundup so ticket expires at correct time.

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

24 years ago * rd_req.c (krb_rd_req): Call life_to_fime()
Tom Yu [Sat, 7 Oct 2000 02:23:06 +0000 (02:23 +0000)]
* rd_req.c (krb_rd_req): Call life_to_fime()

* g_tkt_svc.c (CredIsExpired): Call life_to_time().

* lifetime.c: Add comments for lifetimes[].  Add provisions for
compile-time switching of short lifetimes.  Fix sign bug in
time_to_life().

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

24 years ago * krb524d.c (do_connection): Do not assume that sizeof(int) == 4
Ezra Peisach [Fri, 6 Oct 2000 16:24:32 +0000 (16:24 +0000)]
* krb524d.c (do_connection): Do not assume that sizeof(int) == 4

* encode.c (encode_int32, decode_int32): Do not assume
sizeof(int) == 4.

* conv_creds.c (krb524_convert_creds_kdc): Do not assume
sizeof(int) == 4 in network packet.

* cnv_tkt_skey.c (krb524int_krb_cr_tkt_int): Ensure that OTW flags
is one byte long. An error was introduced when prototypes were
widened.

* Makefile.in (includes): When testing to see if krb524_err.h
exists in the include directory, compare against the build trees
version.

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

24 years agoMy error - add test for mode_t (AC_TYPE_MODE_T) and use that as argument
Ezra Peisach [Thu, 5 Oct 2000 19:25:45 +0000 (19:25 +0000)]
My error - add test for mode_t (AC_TYPE_MODE_T) and use that as argument
to umask.

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

24 years ago * netread.c, netwrite.c: Include unistd.h if present on machine
Ezra Peisach [Thu, 5 Oct 2000 17:14:11 +0000 (17:14 +0000)]
* netread.c, netwrite.c: Include unistd.h if present on machine
for read/write prototypes.

* in_tkt.c: Argument to umask should be of type uid_t.

* configure.in: Test for uid_t (AC_TYPE_UID_T).

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

24 years agoFix typo in last checkin
Ezra Peisach [Wed, 4 Oct 2000 20:18:46 +0000 (20:18 +0000)]
Fix typo in last checkin

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

24 years ago * accept_sec_context.c (krb5_gss_accept_sec_context): If an error
Ezra Peisach [Wed, 4 Oct 2000 20:12:47 +0000 (20:12 +0000)]
* accept_sec_context.c (krb5_gss_accept_sec_context): If an error
occurs after the auth_context is established, but before the
krb5_gss_ctx_id_rec is established, release our pointer to the
replay cache and invoke krb5_auth_con_free(). (krb5-libs/855)

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

24 years ago * rd_req_dec.c (krb5_rd_req_decrypt_tkt_part): Fix memory leak if
Ezra Peisach [Wed, 4 Oct 2000 18:09:59 +0000 (18:09 +0000)]
* rd_req_dec.c (krb5_rd_req_decrypt_tkt_part): Fix memory leak if
krb5_decrypt_tkt_part() fails. (krb5-libs/855)

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

24 years ago* reconf: Look for autoconf 2.12 or later. Don't use "grep -q", it's not
Ken Raeburn [Tue, 3 Oct 2000 21:28:20 +0000 (21:28 +0000)]
* reconf: Look for autoconf 2.12 or later.  Don't use "grep -q", it's not
portable enough.

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

24 years ago * copy_addrs.c (krb5_copy_addresses): Cleanup unsigned vs signed
Ezra Peisach [Tue, 3 Oct 2000 19:06:35 +0000 (19:06 +0000)]
* copy_addrs.c (krb5_copy_addresses): Cleanup unsigned vs signed
warnings as arguments to malloc().

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

24 years ago * gssapiP_generic.h (g_OID_equal): Instead of casting argument to
Ezra Peisach [Tue, 3 Oct 2000 19:05:26 +0000 (19:05 +0000)]
* gssapiP_generic.h (g_OID_equal): Instead of casting argument to
memcmp as int, cast to unsigned int to match prototype.

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

24 years ago * ftpd.c (login): Return of krb5_cc_get_name is now const char *
Ezra Peisach [Tue, 3 Oct 2000 17:06:15 +0000 (17:06 +0000)]
    * ftpd.c (login): Return of krb5_cc_get_name is now const char *

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

24 years agoCheckin log for change to add_cred.c - assignment in conditional cleanup
Ezra Peisach [Tue, 3 Oct 2000 16:58:13 +0000 (16:58 +0000)]
Checkin log for change to add_cred.c - assignment in conditional cleanup

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

24 years ago Clean up assignments in conditionals warnings by separating the
Ezra Peisach [Tue, 3 Oct 2000 16:57:44 +0000 (16:57 +0000)]
Clean up assignments in conditionals warnings by separating the
assignment from the test.

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

24 years ago * kinit.c: Include krb524.h if suport desired. Clean up
Ezra Peisach [Tue, 3 Oct 2000 16:12:05 +0000 (16:12 +0000)]
* kinit.c: Include krb524.h if suport desired. Clean up
addignements in conditionals and do not shadow global variables.

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

24 years ago * Makefile.in: Install krb524.h and krb524_err.h header file so
Ezra Peisach [Tue, 3 Oct 2000 16:09:10 +0000 (16:09 +0000)]
* Makefile.in: Install krb524.h and krb524_err.h header file so
applications can include for prototypes.

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

24 years ago * ccache.c, heuristic.c, main.c: Return of krb5_cc_get_name() is
Ezra Peisach [Tue, 3 Oct 2000 16:05:11 +0000 (16:05 +0000)]
   * ccache.c, heuristic.c, main.c: Return of krb5_cc_get_name() is
        const char *.

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

24 years ago * add_cred.c (krb5_gss_add_cred): krb5_cc_get_type() and
Ezra Peisach [Tue, 3 Oct 2000 16:04:36 +0000 (16:04 +0000)]
    * add_cred.c (krb5_gss_add_cred): krb5_cc_get_type() and
        krb5_cc_get_name() return const char *.

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

24 years ago * stdcc.c, stdcc.h (krb5_stdcc_get_name): Declare as returning
Ezra Peisach [Tue, 3 Oct 2000 16:03:52 +0000 (16:03 +0000)]
   * stdcc.c, stdcc.h (krb5_stdcc_get_name): Declare as returning
        const char *.

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

24 years ago * ser_cc.c (krb5_ccache_externalize): Use krb5_cc_get_name instead
Ezra Peisach [Tue, 3 Oct 2000 16:03:35 +0000 (16:03 +0000)]
    * ser_cc.c (krb5_ccache_externalize): Use krb5_cc_get_name instead
        of krb5_rc_get_name on credential cache.

        * cc_file.c (krb5_fcc_get_name):
        * cc_stdio.c (krb5_scc_get_name):
        * cc_memory.c (krb5_mcc_get_name):
        * ccfns.c (krb5_cc_get_name): Declare as returning const char *.

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

24 years ago * krb5.hin, k5-int.h: krb5_cc_get_name now returns const char *
Ezra Peisach [Tue, 3 Oct 2000 16:03:08 +0000 (16:03 +0000)]
* krb5.hin, k5-int.h: krb5_cc_get_name now returns const char *

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

24 years ago* krlogin.c (main): Declare main as int
Ezra Peisach [Tue, 3 Oct 2000 14:56:18 +0000 (14:56 +0000)]
* krlogin.c (main): Declare main as int

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

24 years ago * kadmin.c (kadmin_getpol): Change format strings from %d to %ld
Ezra Peisach [Tue, 3 Oct 2000 14:46:35 +0000 (14:46 +0000)]
* kadmin.c (kadmin_getpol): Change format strings from %d to %ld
to match the policy types which are longs.

* getdate.y: Include stdlib.h if present on system.

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

24 years ago * asn1_get.c (asn1_get_tag_indef): Fix to not deref random garbage
Tom Yu [Wed, 27 Sep 2000 03:54:33 +0000 (03:54 +0000)]
* asn1_get.c (asn1_get_tag_indef): Fix to not deref random garbage
while checking for EOC encoding.  At least the indefinite decoding
breaks consistently now.

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

24 years agoCleanup gcc warnings of signed vs unsigned arguments to functions
Ezra Peisach [Tue, 26 Sep 2000 22:17:10 +0000 (22:17 +0000)]
Cleanup gcc warnings of signed vs unsigned arguments to functions

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

24 years ago * gss-misc.c: Include <sys/socket.h> for prototype definitions
Ezra Peisach [Tue, 26 Sep 2000 22:15:08 +0000 (22:15 +0000)]
    * gss-misc.c: Include <sys/socket.h> for prototype definitions

        * gss-client.c gss-server.c: Warning cleanups.

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

24 years ago * krb5.hin: Move prototype for krb5_gen_replay_name()
Ezra Peisach [Tue, 26 Sep 2000 22:12:43 +0000 (22:12 +0000)]
    * krb5.hin: Move prototype for krb5_gen_replay_name()

        * k5-int.h: from here.

The user_user application uses it already and it is exported on the Mac
platform.

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

24 years ago * an_to_ln.c: Unsigned vs signed int fixes
Ezra Peisach [Tue, 26 Sep 2000 17:18:23 +0000 (17:18 +0000)]
* an_to_ln.c: Unsigned vs signed int fixes

* t_std_conf.c: Declare local functions static, do not shadow
sin() with local variable.

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

24 years ago* k5-util.h (krb5_setedid): Add prototype
Ezra Peisach [Tue, 26 Sep 2000 17:16:39 +0000 (17:16 +0000)]
* k5-util.h (krb5_setedid): Add prototype

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

24 years ago * conv_princ.c (krb5_425_conv_principal): Call profile_free_list
Ezra Peisach [Tue, 26 Sep 2000 17:01:58 +0000 (17:01 +0000)]
    * conv_princ.c (krb5_425_conv_principal): Call profile_free_list
        on v4realms during the iteration loop. Do not call
        profile_release_string with a NULL pointer.

Fixes a memory leak.

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

24 years ago * krb5_decode_test.c (decode_run): If the ASN1 decoder returns an
Ezra Peisach [Tue, 26 Sep 2000 16:39:45 +0000 (16:39 +0000)]
* krb5_decode_test.c (decode_run): If the ASN1 decoder returns an
error, add one to the error count so there will be a non-zero
exit. Sometimes, the decoded structure is complete enoght to pass
the test, even with an ASN.1 error - which can easilly get missed
in the output run.

The indefinite lengths encryption key test (w/ trailing [2] integer)
fails under linux and SGI - but works on other platforms - probably
due to luck stack problems.

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

24 years ago * ser_ktf.c (krb5_ktf_keytab_externalize): Do not violate const char *
Ezra Peisach [Mon, 25 Sep 2000 21:11:26 +0000 (21:11 +0000)]
    * ser_ktf.c (krb5_ktf_keytab_externalize): Do not violate const char *
        declaration of ktfile_def_name.

        * ktf_util.c (xfwrite): Cast length field to fwrite/fread as unsigned.

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

24 years ago * cc_file.c ccbase.c, cc_stdio.c, cc_retr.c, cc_memory.c: More
Ezra Peisach [Mon, 25 Sep 2000 21:08:11 +0000 (21:08 +0000)]
    * cc_file.c ccbase.c, cc_stdio.c, cc_retr.c, cc_memory.c: More
        signed/unsigned fixes.

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

24 years ago * descbc.c, k5_md4des.c, k5_md5des.c, t_cksum.c: Cleanup unsigned
Ezra Peisach [Mon, 25 Sep 2000 17:14:38 +0000 (17:14 +0000)]
* descbc.c, k5_md4des.c, k5_md5des.c, t_cksum.c: Cleanup unsigned
vs. signed warnings.

* Makefile.in (t_cksum5, t_cksum4): Executables do not need to
link with the krb5 library.

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

24 years ago * t_kerb.c: Add prototypes for test functions
Ezra Peisach [Mon, 25 Sep 2000 16:13:07 +0000 (16:13 +0000)]
* t_kerb.c: Add prototypes for test functions

Cleans up gcc warnings.

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

24 years ago * t_cc.c: Code cleanup. Test more failure modes of the cache library
Ezra Peisach [Sun, 24 Sep 2000 03:46:14 +0000 (03:46 +0000)]
* t_cc.c: Code cleanup. Test more failure modes of the cache library

* cccopy.c (krb5_cc_copy_creds): Memory leak. Call krb5_cc_end_seq_get.

* cc_file.c (krb5_fcc_generate_new): Set flags to
  KRB5_TC_OPENCLOSE, otherwise parts of the library assumes that the
  file is open, when it is not.

* cc_stdio.c (krb5_scc_generate_new): Same as cc_file.c change.

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

24 years ago * Makefile.in (check-unix): Build and exectute t_cc
Ezra Peisach [Fri, 22 Sep 2000 20:13:30 +0000 (20:13 +0000)]
* Makefile.in (check-unix): Build and exectute t_cc

* t_cc.c: Test harness for memory, stdio and file caches.

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

24 years ago * accept_sec_context.c (krb5_gss_accept_sec_context): When
Ezra Peisach [Fri, 22 Sep 2000 17:42:43 +0000 (17:42 +0000)]
    * accept_sec_context.c (krb5_gss_accept_sec_context): When
        GCC_S_NO_CHANNEL_BINDINGS is set by the server, skip over the
        bindings sent from the client. RFC-1964 indicates that the
        client's channel bindings are always sent in checksum field and
        need to be accounted for, evn if the server does not care.

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

24 years ago * rc_io.h (struct krb5_rc_iostuff): Internal structure - change
Ezra Peisach [Thu, 21 Sep 2000 16:22:41 +0000 (16:22 +0000)]
* rc_io.h (struct krb5_rc_iostuff): Internal structure - change
position in file from long to off_t (as argument for lseek).

* rc_io.c (krb5_rc_io_read, krb5_rc_io_write): Unsigned vs signed
warnings cleanup.

* rc_dfl.c (alive): Do not shadow time() with variable named for same.

* rc_base.c (krb5_rc_resolve_full): Cleanup unsigned vs. signed
warnings.

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