summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
* * ser_ktf.c (krb5_ktf_keytab_externalize): Do not violate const char *Ezra Peisach2000-09-253-4/+11
| | | | | | | | 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
* * cc_file.c ccbase.c, cc_stdio.c, cc_retr.c, cc_memory.c: MoreEzra Peisach2000-09-256-24/+37
| | | | | | signed/unsigned fixes. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12671 dc483132-0cff-0310-8789-dd5450dbe970
* * descbc.c, k5_md4des.c, k5_md5des.c, t_cksum.c: Cleanup unsignedEzra Peisach2000-09-256-20/+34
| | | | | | | | | 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
* * t_kerb.c: Add prototypes for test functionsEzra Peisach2000-09-252-3/+14
| | | | | | Cleans up gcc warnings. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12669 dc483132-0cff-0310-8789-dd5450dbe970
* * t_cc.c: Code cleanup. Test more failure modes of the cache libraryEzra Peisach2000-09-245-10/+142
| | | | | | | | | | | | * 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
* * Makefile.in (check-unix): Build and exectute t_ccEzra Peisach2000-09-223-3/+220
| | | | | | * 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
* * accept_sec_context.c (krb5_gss_accept_sec_context): WhenEzra Peisach2000-09-222-11/+21
| | | | | | | | | 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
* * rc_io.h (struct krb5_rc_iostuff): Internal structure - changeEzra Peisach2000-09-215-13/+29
| | | | | | | | | | | | | | 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
* * configure.in: Add AC_TYPE_OFF_T for off_t declaraionEzra Peisach2000-09-212-0/+5
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12662 dc483132-0cff-0310-8789-dd5450dbe970
* * kdb_xdr.c (krb5_dbe_free_contents): Clean up signedness warningEzra Peisach2000-09-206-15/+47
| | | | | | | | | | | | | | | | * fetch_mkey.c (krb5_db_fetch_mkey): Clean up signedness warnings. * kdb_db2.c (destroy_file_suffix): Declare function as static. Rewrite code to use off_t and unsigned ints to handle gcc warnings. (kdb5_context_internalize) Unmarshal boolean type properly. * store_mkey.c (krb5_db_store_mkey): Use mode_t instead of int in call to umask. * configure.in: Add AC_TYPE_MODE_T and AC_TYPE_OFF_T for mode_t and off_t declarations. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12661 dc483132-0cff-0310-8789-dd5450dbe970
* * dispatch.c (dispatch): inet_ntop() returns const char *Ezra Peisach2000-09-202-4/+7
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12660 dc483132-0cff-0310-8789-dd5450dbe970
* * Makefile.in (DEFINES): Define HEIMDAL_FRIENDLY.Ken Raeburn2000-09-094-3/+21
| | | | | | | | * krlogind.c (recvauth): Don't complain about a subkey sent for KCMDV0.1 if HEIMDAL_FRIENDLY is defined, just quietly ignore it. * krshd.c (recvauth): Likewise. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12646 dc483132-0cff-0310-8789-dd5450dbe970
* 2000-09-01 Jeffrey Altman <jaltman@columbia.edu>Jeffrey Altman2000-09-022-13/+58
| | | | | | | | | | | | | | | | * accept_sec_context.c: krb5_gss_accept_sec_context() It has been determined by Martin Rex that Windows 2000 is incapable of supporting channel bindings. This caused us to examine the various RFCs affecting FTP GSSAPI to determine whether or not channel bindings were a MUST for implementation of the FTP GSSAPI protocol. It was determined that the channel binding facility as described in RFC2743 is optional. Therefore, we cannot assume that all clients or servers will support it. The code was updated to allow GSS_C_NO_CHANNEL_BINDINGS when specified by either the client or server to indicate that channel bindings will not be used. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12645 dc483132-0cff-0310-8789-dd5450dbe970
* * Makefile.in(OBJS, SRCS): Add lifetime.{o,c}Tom Yu2000-09-013-0/+138
| | | | | | | | | | * lifetime.c: New file. For the purposes of CMU and AFS compatibility, this implements the exponential krb4 ticket lifetimes for lifetime values above 127, in the krb_life_to_time() and krb_time_to_life() functions. Values 127 and below are still treated normally. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12644 dc483132-0cff-0310-8789-dd5450dbe970
* * krb.h: Add prototypes for krb_life_to_time() andTom Yu2000-09-012-0/+14
| | | | | | krb_time_to_life(), as well as the KRB_NEVERDATE constant. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12643 dc483132-0cff-0310-8789-dd5450dbe970
* 2000-08-31 Jeffrey Altman <jaltman@columbia.edu>Jeffrey Altman2000-08-311-2/+2
| | | | | | | | | * locate_kdc.c: krb5_locate_srv_dns() Ensure that res_search() is called with a query string that is terminated by a '.' in order to disable the expansion of dns-search lists. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12642 dc483132-0cff-0310-8789-dd5450dbe970
* 2000-08-31 Jeffrey Altman <jaltman@columbia.edu>Jeffrey Altman2000-08-312-2/+23
| | | | | | | | | * locate_kdc.c: krb5_locate_srv_dns() Ensure that res_search() is called with a query string that is terminated by a '.' in order to disable the expansion of dns-search lists. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12641 dc483132-0cff-0310-8789-dd5450dbe970
* * pre.in: Fix some inconsistent spelling in the previous changesTom Yu2000-08-312-4/+10
| | | | | | | for MacOS X lib framework support, especially in the *_LIB and *_LIB_*opt variables. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12640 dc483132-0cff-0310-8789-dd5450dbe970
* * aclocal.m4 (LIBLINKS): Fix appending of $EXTRA_LIB_TARGETS toTom Yu2000-08-312-1/+7
| | | | | | | LIBLINKS; previously it was setting LIBLINKS to include $LIBLIST instead, which is Just Wrong. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12639 dc483132-0cff-0310-8789-dd5450dbe970
* * lib.in (EXTRA_CLEAN_TARGETS, EXTRA_CLEAN_LINKS): New variables.Ken Raeburn2000-08-304-5/+80
| | | | | | | | | | | | | | | | | | | (clean-libs, clean-liblinks): Depend on targets specified in those variables. (config.status): Depend on shlib.conf. (all-framework, link-framework, clean-framework, clean-framework-link, install-framework): New targets, details to be filled in later. * pre.in (KRB5_LIB_libopt): Renamed from KDB5_LIB. (KRB5_LIB_frameworkopt): Tentative framework version for Mac OS X, details to be tuned later. (KRB5_LIB): Select between them using @LIB_LINK_OPT@. (KRB5CRYPTO_LIB*, COM_ERR_LIB*, GSS_KRB5_LIB*): Similarly. (KRB5_BASE_LIBS, GSS_LIBS): Use them. (KRB4COMPAT_LIBS): Use KRB5_BASE_LIBS. * shlib.conf: Set LIB_LINK_OPT. Set new EXTRA_* variables for darwin target. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12638 dc483132-0cff-0310-8789-dd5450dbe970
* * aclocal.m4 (KRB5_LIB_AUX): Fold in values of EXTRA_LIB_TARGETS,Ken Raeburn2000-08-302-1/+17
| | | | | | | | EXTRA_LIBLINK_TARGETS, EXTRA_LIBINST_TARGETS set in shlib.conf. Substitute EXTRA_CLEAN_TARGETS and EXTRA_CLEAN_LINKS. (KRB5_LIB_PARAMS): Substitute LIB_LINK_OPT. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12637 dc483132-0cff-0310-8789-dd5450dbe970
* * get_creds.c (krb5_get_credentials_core): If the supplied enctype is notKen Raeburn2000-08-292-7/+25
| | | | | | | | supported, return an error; can't satisfy both TC_SUPPORTED_KTYPES and TC_MATCH_KTYPE that way. Delete unused arguments CCACHE and OUT_CREDS; fix callers. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12636 dc483132-0cff-0310-8789-dd5450dbe970
* * configure.in: Don't generate keytab/db/Makefile, since it isn'tTom Yu2000-08-293-18/+10
| | | | | | | | | | used. * Makefile.in: Garbage collect a little. Don't include keytab/* directories directly on $(LOCAL_SUBDIRS), as keytab/Makefile.in lists them itself. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12635 dc483132-0cff-0310-8789-dd5450dbe970
* * post.in: Test for existing Makefile in directory beforeTom Yu2000-08-292-1/+6
| | | | | | recursing into it. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12634 dc483132-0cff-0310-8789-dd5450dbe970
* renamed getmode() and setmode() to get_mode() and set_mode() to avoid a ↵Alexandra Ellwood2000-08-294-6/+13
| | | | | | collision with Mac OS X file permission bits manipulation functions of the same name which get included through unistd.h git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12633 dc483132-0cff-0310-8789-dd5450dbe970
* * ftpcmd.y: Fix up grammar so that single character token namesTom Yu2000-08-262-37/+45
| | | | | | | | | | | | are no longer used; this was breaking the build using bison on HP/UX because some system headers declare structures with members having all-uppercase field names and bison puts the token name #define statements in front of the C declarations section in the output, causing them to be in force while those headers get #included. There doesn't seem to be much purpose in not just using character constants, anyway. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12632 dc483132-0cff-0310-8789-dd5450dbe970
* * main.c (initialize_realms): For "cannot initialize realm" messages, tell theKen Raeburn2000-08-233-3/+18
| | | | | | | | | | user to check the log file. Print out an error message as well as logging it if retrieving the default realm name fails. * kerberos_v4.c (kerberos_v4): Mask requested-life byte value with 0xff to avoid sign-extension problems. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12631 dc483132-0cff-0310-8789-dd5450dbe970
* * aclocal.m4 (KRB5_AC_CHECK_INET6): Require "struct sockaddr_storage" for ↵Ken Raeburn2000-08-232-0/+6
| | | | | | IPv6 support git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12630 dc483132-0cff-0310-8789-dd5450dbe970
* * libobj.in (clean-libobjs): Combine "rm" commands into oneKen Raeburn2000-08-232-4/+5
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12629 dc483132-0cff-0310-8789-dd5450dbe970
* * secure.h (myaddr): For secure data stream, pass the port numberEzra Peisach2000-08-224-2/+10
| | | | | | | | | | | of the data stream and not the control stream to krb_mk_priv. This would result in the occasional time out of bounds error when ftping to the same machine. (mk_priv and rd_priv have some amusing negating of timestamps depending on address and port of sockets). git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12628 dc483132-0cff-0310-8789-dd5450dbe970
* * v4gssftp.exp: New tests for the krb4 compatible interface to gssftpEzra Peisach2000-08-222-0/+403
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12627 dc483132-0cff-0310-8789-dd5450dbe970
* * default.exp: Create a properly formatted krb.conf file. AlsoEzra Peisach2000-08-222-0/+8
| | | | | | | | provide a krb4_srvtab stanza (even though we are falling back on the keytab file) so the tests do not try to access an installed systems /etc/srvtab file. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12626 dc483132-0cff-0310-8789-dd5450dbe970
* * ftpd.c (auth_data): Iterate over all krb4 services instead ofEzra Peisach2000-08-222-17/+22
| | | | | | | trying to examine the srvtab file for a particular key (which failes when falling back on the v5 keytab for des3 services). git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12625 dc483132-0cff-0310-8789-dd5450dbe970
* * rd_svc_key.c (krb54_get_service_keyblock): If the keytabEzra Peisach2000-08-222-1/+19
| | | | | | | encryption type is a non-raw des3 key, bash its enctype. This matches kdc/kerberos_v4.c. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12624 dc483132-0cff-0310-8789-dd5450dbe970
* * default.exp: Create a properly formatted krb.conf fileEzra Peisach2000-08-221-2/+2
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12623 dc483132-0cff-0310-8789-dd5450dbe970
* * domacro.c: Compiler warning cleanups and fix the overflow fix toEzra Peisach2000-08-1714-352/+562
| | | | | | | | | | | | | | | | index the proper array. * cmds.c, cmdtab.c, ftp.c, ftp_var.h, getpass.c, glob.c, main.c, radix.c, ruserpass.c, secure.c, secure.h: Compiler warning cleanups including providing prototypes, cleanup of assignments in conditionals, including unistd.h and stdlib.h (if present), declaring local functions as static. * Makefile.in: Do not compile pclose.c - the code is not used. About 600 warnings down.... git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12622 dc483132-0cff-0310-8789-dd5450dbe970
* * cr_tkt.c (krb_cr_tkt_int): When prototypes were changed to notEzra Peisach2000-08-141-3/+4
| | | | | | | include a narrow prototype, the flags were being sent OTW as four bytes instead of one. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12621 dc483132-0cff-0310-8789-dd5450dbe970
* Add AC_PROG_INSTALL to allow the library to be installedEzra Peisach2000-08-112-0/+5
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12620 dc483132-0cff-0310-8789-dd5450dbe970
* * rlogin.exp: Change RLOGIN to KRLOGIN so we do not use theEzra Peisach2000-08-102-5/+10
| | | | | | incorrect binary as used for the root login in default.exp. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12619 dc483132-0cff-0310-8789-dd5450dbe970
* * default.exp: Add an eof clause to avoid breakage if rlogin exitsTom Yu2000-08-092-0/+11
| | | | | | too quickly. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12618 dc483132-0cff-0310-8789-dd5450dbe970
* * cnv_tkt_skey.c: Fix up static prototypes forTom Yu2000-08-092-22/+28
| | | | | | | | | krb524int_krb_create_ticket(), krb524int_krb_cr_tkt_krb5(), and krb524int_krb_cr_tkt_int(), as well as their definitions, so that there aren't bare identifiers in the prototypes and so that there aren't narrow types in the definitions. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12617 dc483132-0cff-0310-8789-dd5450dbe970
* Quoting of lists in mutipass variable assigments is unnecessaryEzra Peisach2000-08-082-6/+7
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12616 dc483132-0cff-0310-8789-dd5450dbe970
* * v4standalone.exp: New set of tests for basic V4 functionalityEzra Peisach2000-08-082-0/+139
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12615 dc483132-0cff-0310-8789-dd5450dbe970
* * default.exp: Create krb.conf and krb.realms files for v4Ezra Peisach2000-08-082-1/+91
| | | | | | | | | compatibility. Set KRBTKFILE environment variable. Add v4_compatible_enctype() proc to test if krb4 tests are being run and if the current encryption type being tested is compatible with V4. Added v4kinit() proc. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12614 dc483132-0cff-0310-8789-dd5450dbe970
* * Makefile.in (KRB4_RUNTESTFLAGS): Set from configure.in and passEzra Peisach2000-08-082-1/+7
| | | | | | to runtest if krb4 compatibility is enabled. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12613 dc483132-0cff-0310-8789-dd5450dbe970
* * configure.in: Define KRB4_DEJAGNU_TEST depending on if krb4Ezra Peisach2000-08-082-0/+12
| | | | | | support is enabled. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12612 dc483132-0cff-0310-8789-dd5450dbe970
* * krlogin.c (read_wrapper): Copy from the current point and notEzra Peisach2000-08-082-2/+7
| | | | | | | | the start of the cached buffer. This would only be observed when the client sent the cmdchar. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12611 dc483132-0cff-0310-8789-dd5450dbe970
* * default.exp: Protect Quote quotation marks in multipass variableEzra Peisach2000-08-072-12/+17
| | | | | | assignments. Dejagnu (June 1999 release) fails overwise. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12610 dc483132-0cff-0310-8789-dd5450dbe970
* * reference_encode.out, trval_reference.out: Test encoding ofEzra Peisach2000-08-074-8/+26
| | | | | | | | | | | negative lr_type field. * krb5_decode_test.c: Fix enc_kdc_rep_part tests to trully handle a negative lr_type in a krb5_last_req_entry structure. If KRB5_GENEROUS_LR_TYPE is defined, do a backwards compatibility test as well. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12609 dc483132-0cff-0310-8789-dd5450dbe970
* * asn1_k_decode.c (asn1_decode_last_req_entry): Decode the lr_typeEzra Peisach2000-08-073-1/+24
| | | | | | | | | | as an int32. Handle backwards compatibility if KRB5_GENEROUS_LR_TYPE is defined. * krbasn1.h: Define KRB5_GENEROUS_LR_TYPE for compatibility with one byte negative lr_types which are sent as a positive integer. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12608 dc483132-0cff-0310-8789-dd5450dbe970