summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
* * sim_server.c: Cast to int strings width arguments in printfEzra Peisach2000-10-172-2/+7
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12770 dc483132-0cff-0310-8789-dd5450dbe970
* * kprop.c, kpropd.c: Use krb5_set_principal_realm() instead ofEzra Peisach2000-10-173-9/+23
| | | | | | freeing library generated memory using the internal krb5_xfree(). git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12769 dc483132-0cff-0310-8789-dd5450dbe970
* * kadmin.c (strdur): Print negative durations somewhat (!)Tom Yu2000-10-172-3/+23
| | | | | | | | 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
* * kdb5_util.M: Update manpageTom Yu2000-10-176-16/+68
| | | | | | | | | | | | | | | | * 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
* * krb5.tex (krb5_init_context): Parameter is output onlyEzra Peisach2000-10-172-25/+29
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12762 dc483132-0cff-0310-8789-dd5450dbe970
* * kpropd.c, kprop.c: Ensure size of database sent OTW as 4 bytesEzra Peisach2000-10-143-9/+20
| | | | | | | | | 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
* * lock-test.c (main): Cleanup assignments in conditionals. IfEzra Peisach2000-10-128-21/+44
| | | | | | | | | | | | | | 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
* * default.exp: Add dict_file entry (and create one) for kdc.confEzra Peisach2000-10-122-0/+12
| | | | | | | | | 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
* * kadm_funcs.c: Call life_to_time() and time_to_life() asTom Yu2000-10-102-3/+8
| | | | | | appropriate. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12753 dc483132-0cff-0310-8789-dd5450dbe970
* getifaddrs() supportKen Raeburn2000-10-101-0/+4
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12752 dc483132-0cff-0310-8789-dd5450dbe970
* getifaddrs() supportKen Raeburn2000-10-104-11/+217
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12751 dc483132-0cff-0310-8789-dd5450dbe970
* * 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