summaryrefslogtreecommitdiffstats
path: root/src
Commit message (Collapse)AuthorAgeFilesLines
...
* * kparse.c: Provide prototype for static struol(). Do not defineEzra Peisach2000-10-102-3/+8
| | | | | | void as int (autoconf can handle that). git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12750 dc483132-0cff-0310-8789-dd5450dbe970
* * ftp.c (do_auth): Remove debugging printf which I inadvertantlyEzra Peisach2000-10-102-1/+5
| | | | | | introduced. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12749 dc483132-0cff-0310-8789-dd5450dbe970
* * kcmd.c (kcmd): Use krb5_set_principal_realm() instead of freeing theEzra Peisach2000-10-102-5/+12
| | | | | | | | | | 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
* * server_dict.c (init_dict): Change syslog() to krb5_klog_syslog()Ezra Peisach2000-10-102-3/+9
| | | | | | 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
* * klist.c (do_v4_ccache): Call life_to_time()Tom Yu2000-10-092-1/+5
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12746 dc483132-0cff-0310-8789-dd5450dbe970
* * kinit.c (k4_kinit): Call time_to_life()Tom Yu2000-10-092-5/+5
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12745 dc483132-0cff-0310-8789-dd5450dbe970
* * g_tkt_svc.c (CredIsExpired): Fix logic bugTom Yu2000-10-082-1/+6
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12734 dc483132-0cff-0310-8789-dd5450dbe970
* * kerberos_v4.c (kerb_get_principal): Modify to take a pointer toTom Yu2000-10-072-29/+79
| | | | | | | | | | | | | 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
* * conv_creds.c (krb524_convert_creds_plain): Use time_to_life()Tom Yu2000-10-073-41/+33
| | | | | | | | | | | 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
* * rd_req.c (krb_rd_req): Call life_to_fime()Tom Yu2000-10-074-25/+67
| | | | | | | | | | * 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
* * krb524d.c (do_connection): Do not assume that sizeof(int) == 4Ezra Peisach2000-10-066-17/+38
| | | | | | | | | | | | | | | | | | * 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
* My error - add test for mode_t (AC_TYPE_MODE_T) and use that as argumentEzra Peisach2000-10-053-3/+5
| | | | | | to umask. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12724 dc483132-0cff-0310-8789-dd5450dbe970
* * netread.c, netwrite.c: Include unistd.h if present on machineEzra Peisach2000-10-055-1/+19
| | | | | | | | | | 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
* Fix typo in last checkinEzra Peisach2000-10-041-1/+1
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12722 dc483132-0cff-0310-8789-dd5450dbe970
* * accept_sec_context.c (krb5_gss_accept_sec_context): If an errorEzra Peisach2000-10-042-0/+12
| | | | | | | | 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
* * rd_req_dec.c (krb5_rd_req_decrypt_tkt_part): Fix memory leak ifEzra Peisach2000-10-042-2/+7
| | | | | | krb5_decrypt_tkt_part() fails. (krb5-libs/855) git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12720 dc483132-0cff-0310-8789-dd5450dbe970
* * reconf: Look for autoconf 2.12 or later. Don't use "grep -q", it's notKen Raeburn2000-10-032-5/+11
| | | | | | portable enough. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12719 dc483132-0cff-0310-8789-dd5450dbe970
* * copy_addrs.c (krb5_copy_addresses): Cleanup unsigned vs signedEzra Peisach2000-10-032-2/+7
| | | | | | warnings as arguments to malloc(). git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12718 dc483132-0cff-0310-8789-dd5450dbe970
* * gssapiP_generic.h (g_OID_equal): Instead of casting argument toEzra Peisach2000-10-032-1/+6
| | | | | | 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
* * ftpd.c (login): Return of krb5_cc_get_name is now const char *Ezra Peisach2000-10-032-1/+5
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12716 dc483132-0cff-0310-8789-dd5450dbe970
* Checkin log for change to add_cred.c - assignment in conditional cleanupEzra Peisach2000-10-031-1/+2
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12715 dc483132-0cff-0310-8789-dd5450dbe970
* Clean up assignments in conditionals warnings by separating theEzra Peisach2000-10-031-7/+10
| | | | | | assignment from the test. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12714 dc483132-0cff-0310-8789-dd5450dbe970
* * kinit.c: Include krb524.h if suport desired. Clean upEzra Peisach2000-10-032-52/+82
| | | | | | addignements in conditionals and do not shadow global variables. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12713 dc483132-0cff-0310-8789-dd5450dbe970
* * Makefile.in: Install krb524.h and krb524_err.h header file soEzra Peisach2000-10-032-2/+30
| | | | | | applications can include for prototypes. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12712 dc483132-0cff-0310-8789-dd5450dbe970
* * ccache.c, heuristic.c, main.c: Return of krb5_cc_get_name() isEzra Peisach2000-10-034-13/+18
| | | | | | const char *. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12711 dc483132-0cff-0310-8789-dd5450dbe970
* * add_cred.c (krb5_gss_add_cred): krb5_cc_get_type() andEzra Peisach2000-10-032-1/+7
| | | | | | krb5_cc_get_name() return const char *. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12710 dc483132-0cff-0310-8789-dd5450dbe970
* * stdcc.c, stdcc.h (krb5_stdcc_get_name): Declare as returningEzra Peisach2000-10-033-2/+7
| | | | | | const char *. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12709 dc483132-0cff-0310-8789-dd5450dbe970
* * ser_cc.c (krb5_ccache_externalize): Use krb5_cc_get_name insteadEzra Peisach2000-10-036-10/+20
| | | | | | | | | | | 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
* * krb5.hin, k5-int.h: krb5_cc_get_name now returns const char *Ezra Peisach2000-10-033-2/+6
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12706 dc483132-0cff-0310-8789-dd5450dbe970
* * krlogin.c (main): Declare main as intEzra Peisach2000-10-032-2/+6
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12705 dc483132-0cff-0310-8789-dd5450dbe970
* * kadmin.c (kadmin_getpol): Change format strings from %d to %ldEzra Peisach2000-10-033-12/+19
| | | | | | | | 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
* * asn1_get.c (asn1_get_tag_indef): Fix to not deref random garbageTom Yu2000-09-272-1/+8
| | | | | | | 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
* Cleanup gcc warnings of signed vs unsigned arguments to functionsEzra Peisach2000-09-264-14/+32
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12683 dc483132-0cff-0310-8789-dd5450dbe970
* * gss-misc.c: Include <sys/socket.h> for prototype definitionsEzra Peisach2000-09-264-16/+25
| | | | | | * gss-client.c gss-server.c: Warning cleanups. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12682 dc483132-0cff-0310-8789-dd5450dbe970
* * krb5.hin: Move prototype for krb5_gen_replay_name()Ezra Peisach2000-09-263-5/+11
| | | | | | | | | * 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
* * an_to_ln.c: Unsigned vs signed int fixesEzra Peisach2000-09-263-20/+33
| | | | | | | * 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
* * k5-util.h (krb5_setedid): Add prototypeEzra Peisach2000-09-262-0/+5
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12679 dc483132-0cff-0310-8789-dd5450dbe970
* * conv_princ.c (krb5_425_conv_principal): Call profile_free_listEzra Peisach2000-09-262-5/+15
| | | | | | | | | 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
* * krb5_decode_test.c (decode_run): If the ASN1 decoder returns anEzra Peisach2000-09-262-0/+9
| | | | | | | | | | | | | 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
* * 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