summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
* Use MIT runtime instead of metrowerksMiro Jurisic2000-03-151-2/+5
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12114 dc483132-0cff-0310-8789-dd5450dbe970
* volatile fixesKen Raeburn2000-03-152-2/+7
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12113 dc483132-0cff-0310-8789-dd5450dbe970
* * init_os_ctx.c (os_get_default_config_files): Remove unused variableKen Raeburn2000-03-142-1/+3
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12112 dc483132-0cff-0310-8789-dd5450dbe970
* * def_realm.c: Include netinet/in.h if availableKen Raeburn2000-03-142-0/+7
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12111 dc483132-0cff-0310-8789-dd5450dbe970
* * configure.in: Check for gethostbyname2Ken Raeburn2000-03-142-1/+5
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12110 dc483132-0cff-0310-8789-dd5450dbe970
* * sock2p.c: New file.Ken Raeburn2000-03-145-34/+188
| | | | | | | | | | | | | | | | | (inet_ntop): Define if system doesn't provide it. (sockaddr2p): New function. * Makefile.in (SRCS, OBJS): Add sock2p. * kdc_util.h (inet_ntop, sockaddr2p): Declare them. * network.c (add_fd): New function. Reallocate udp_port_fds array as needed here. (setup_port): Use add_fd to record new sockets. Use inet_ntop unconditionally. Disable ipv6 support until process_packet and friends will support it. (process_packet): Ignore ECONNREFUSED when reading UDP packets. Fill in port field of faddr properly, dependent on address family. Use sockaddr2p when logging source address. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12109 dc483132-0cff-0310-8789-dd5450dbe970
* * kinit.c: Add support for using both -4 and -5. Default to krb5Danilo Almeida2000-03-143-71/+73
| | | | | | | | | only. Add KINIT_DEFAULT_BOTH support. Tweak usage info. * kinit.M: Fix a couple of typos. Document new default behavior. Document that -4 and -5 may be combined. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12108 dc483132-0cff-0310-8789-dd5450dbe970
* * klist.M: Get man page up-to-dateDanilo Almeida2000-03-143-51/+109
| | | | | | * klist.c: Add support for combining -4 and -5. Tweak usage info. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12107 dc483132-0cff-0310-8789-dd5450dbe970
* * kdestroy.M: Make up-to-dateDanilo Almeida2000-03-143-32/+96
| | | | | | | | * kdestroy.c: Add support for combining -5 and -4. Add ability to easily change defaults in terms of whether to use 5, 4 or both. Expand usage info. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12106 dc483132-0cff-0310-8789-dd5450dbe970
* * k5-int.h: Update prototype to sync with changes in preauth2.cTom Yu2000-03-132-1/+6
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12105 dc483132-0cff-0310-8789-dd5450dbe970
* Fix one of the bugs discovered at Connectathon: etype specified in preauthKen Raeburn2000-03-133-5/+68
| | | | | | data is ignored under get_in_tkt interface. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12104 dc483132-0cff-0310-8789-dd5450dbe970
* Also change kdc_insert_lookaside() to take a const krb5_fulladdr *Ezra Peisach2000-03-123-4/+4
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12103 dc483132-0cff-0310-8789-dd5450dbe970
* * replay.c, kdb_util.h (kdc_check_lookaside): Make second argumentEzra Peisach2000-03-123-2/+7
| | | | | | const to allow passing a const krb5_fulladdr * and keeping the compiler happy. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12102 dc483132-0cff-0310-8789-dd5450dbe970
* Change function prototypes to match the entries in krb5.hin - specificallyEzra Peisach2000-03-1211-14/+26
| | | | | | use krb5_const instead of const. Under ultrix they are not the same. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12101 dc483132-0cff-0310-8789-dd5450dbe970
* * kdb_xdr.c (krb5_dbe_lookup_mod_princ_data): In casting argumentEzra Peisach2000-03-122-1/+6
| | | | | | | | to krb5_parse_name, use krb5_const not const. Under ultrix, krb5_const is not the same as const git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12100 dc483132-0cff-0310-8789-dd5450dbe970
* Updated for 3.0d3Miro Jurisic2000-03-121-1/+6
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12098 dc483132-0cff-0310-8789-dd5450dbe970
* get_in_tkt.c (krb5_get_init_creds): Always initialize local_as_reply to ↵Miro Jurisic2000-03-102-0/+7
| | | | | | avoid returning garbage on error returns git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12097 dc483132-0cff-0310-8789-dd5450dbe970
* * aclocal.m4: Tweak the HPUX shared lib build some more. Don'tTom Yu2000-03-012-4/+8
| | | | | | | use $(INSTALL_PROGRAM) for shared libs, since it strips them! We should fix this at some point. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12096 dc483132-0cff-0310-8789-dd5450dbe970
* Tweak build system to deal somewhat better with HPUX shared libsTom Yu2000-03-015-3/+21
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12095 dc483132-0cff-0310-8789-dd5450dbe970
* * kadmin.c (kadmin_cpw): Initialize ks_tuple to NULLTom Yu2000-03-012-1/+5
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12094 dc483132-0cff-0310-8789-dd5450dbe970
* * main.c: Move kdc_initialize_rcache() to kdc_util.cTom Yu2000-03-014-56/+59
| | | | | | | | | | | | * kdc_util.c (kdc_initialize_rcache): Move kdc_initialize_rcache() back here since it's needed for rtest to work. process_tgs_req() which is called from rtest needs to call kdc_intiialize_rcache() and we can't very well link rtest with main.o * kdc_preauth.c (verify_sam_response): Ooops. Get rc_lifetime from kdc_util, since it's actually declared there. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12093 dc483132-0cff-0310-8789-dd5450dbe970
* * configure.in: Fix --enable-kdc-replay-cache to actually defaultTom Yu2000-03-012-2/+4
| | | | | | to "yes". git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12092 dc483132-0cff-0310-8789-dd5450dbe970
* * kdc_preauth.c (verify_sam_response): Declare and set rc_lifetimeTom Yu2000-03-013-1/+20
| | | | | | | | | for real. * dispatch.c: Include some more net-related headers. (dispatch): Fix ifndef HAVE_INET_NTOP branch. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12091 dc483132-0cff-0310-8789-dd5450dbe970
* new --enable/--disable-kdc-replay-cache configure hooksKen Raeburn2000-02-285-1/+44
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12090 dc483132-0cff-0310-8789-dd5450dbe970
* * Makefile.in (com_err.o): Depends on com_err.cKen Raeburn2000-02-282-0/+6
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12089 dc483132-0cff-0310-8789-dd5450dbe970
* * krlogin.c (main): Don't output debugging messages if debugging wasn't ↵Ken Raeburn2000-02-282-6/+13
| | | | | | turned on git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12088 dc483132-0cff-0310-8789-dd5450dbe970
* * proto_serv.c (proto_serv): For error return,strdup the returnedEzra Peisach2000-02-282-1/+7
| | | | | | value from error_message to maintain its const status. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12087 dc483132-0cff-0310-8789-dd5450dbe970
* * aclocal.m4: Define DES425_LIB and DES425_DEPLIB all the time. WeEzra Peisach2000-02-282-4/+9
| | | | | | | | | build the des425 library all the time and these need to be define for "make check." This is required when compiling --without-krb4 git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12086 dc483132-0cff-0310-8789-dd5450dbe970
* Updated for 3.0d2Miro Jurisic2000-02-281-1/+5
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12084 dc483132-0cff-0310-8789-dd5450dbe970
* Update client and server to reflect removal of keepold argument fromTom Yu2000-02-274-22/+22
| | | | | | create_principal_3. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12083 dc483132-0cff-0310-8789-dd5450dbe970
* Remove keepold argument from create_principal_3, since it is ratherTom Yu2000-02-2710-12/+32
| | | | | | | useless. Update library version numbers, xdr functions, etc. accordingly. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12082 dc483132-0cff-0310-8789-dd5450dbe970
* * server_acl.c (acl_get_line): Patch from Matt Crawford to permit line ↵Ken Raeburn2000-02-262-13/+40
| | | | | | continuation by ending a line with a backslash git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12081 dc483132-0cff-0310-8789-dd5450dbe970
* * kadmin.c (kadmin_modprinc): Complain if -pw option is given,Ken Raeburn2000-02-262-0/+12
| | | | | | since it's ignored. Patch from Matt Crawford. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12080 dc483132-0cff-0310-8789-dd5450dbe970
* main() returns int - not void. Also cleanup unused variablesEzra Peisach2000-02-264-8/+12
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12079 dc483132-0cff-0310-8789-dd5450dbe970
* comment out doc on non-existent fnKen Raeburn2000-02-262-11/+16
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12078 dc483132-0cff-0310-8789-dd5450dbe970
* * preauth2.c (krb5_do_preauth): Check paorder[h] not h for PA_REAL. Fix ↵Ken Raeburn2000-02-262-1/+6
| | | | | | from Matt Crawford git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12077 dc483132-0cff-0310-8789-dd5450dbe970
* fix email addrKen Raeburn2000-02-261-1/+1
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12076 dc483132-0cff-0310-8789-dd5450dbe970
* forgot room for null pointer at end of local addr arrayKen Raeburn2000-02-262-2/+3
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12075 dc483132-0cff-0310-8789-dd5450dbe970
* * configure.in: Check for sys/sockio.hTom Yu2000-02-253-1/+16
| | | | | | | | | * network.c: Conditionally include sys/sockio.h for SIOC* if necessary. (process_packet): Bracket AF_INET6 branch of a switch statement with an ifdef. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12074 dc483132-0cff-0310-8789-dd5450dbe970
* fix udp_port_fds allocation bug; partial ipv6 supportKen Raeburn2000-02-253-15/+92
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12073 dc483132-0cff-0310-8789-dd5450dbe970
* oops, update changelog for bug fixKen Raeburn2000-02-251-2/+1
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12072 dc483132-0cff-0310-8789-dd5450dbe970
* Fix off-by-one error in previous code, spotted at the last minute.Ken Raeburn2000-02-251-3/+1
| | | | | | | | | | | This is why things weren't working without the loopback addresses, which showed up last in the list, after the address my client was trying to use, thus hiding the error. (I tried to abort the previous checkin, but cvs went ahead with it despite the "editor session failed" report...hm.) git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12071 dc483132-0cff-0310-8789-dd5450dbe970
* Patches from Alec Peterson, plus some work of my own, to let a multihomedKen Raeburn2000-02-253-24/+218
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | KDC respond to requests from the same IP address that the requests were sent to. **N.B. This will perform worse in the case of addresses dynamically added and removed after the KDC has started, since it will be incapable of using any new addresses. I'm unclear on why the loopback interface address needs to be included in the list of addresses. Apparently, on NetBSD-current, if it's not, packets sent to other local addresses but over the loopback interface are queued but not received?? Needs further investigation; could just be a NetBSD bug. * configure.in: Invoke KRB5_SOCKADDR_SA_LEN. * network.c: Include <sys/ioctl.h>, <syslog.h>, <net/if.h>. (foreach_localaddr): New function, copied from lib/krb5/os/localaddr.c. Tweaked to not exclude loopback interface. (NEED_SOCKETS): Define before including k5-int.h. (n_sockets): New variable. (setup_port): New function; creates listening udp ports given an address. (setup_network): Call foreach_localaddr to set up listening sockets on each local address, so we can always respond from the receiving address. (listen_and_process): Use n_sockets as upper bound of loop. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12070 dc483132-0cff-0310-8789-dd5450dbe970
* Separate interface address processing from Kerberos-related functions.Ken Raeburn2000-02-252-159/+238
| | | | | | | | | | * localaddr.c (foreach_localaddr): Broken out from old krb5_os_localaddr. Iterates over all active interface addresses, invoking callback functions; knows nothing about Kerberos. (count_addrs, allocate, add_addr): New callback functions. (krb5_os_localaddr): Use the above. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12069 dc483132-0cff-0310-8789-dd5450dbe970
* * t_verify.c: Add "const" to casts in calls to mit_des_cbc_encrypt()Ezra Peisach2000-02-253-5/+12
| | | | | | | * destest.c: Declare zeroblock as krb5_octet * instead of char * as argument to mit_des_cbc_encrypt. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12068 dc483132-0cff-0310-8789-dd5450dbe970
* * kerberos_v4.c (v4_klog): Don't treat the formatted text as a format stringKen Raeburn2000-02-252-1/+7
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12067 dc483132-0cff-0310-8789-dd5450dbe970
* * configure.in: Remove dependency on libdes425 when krb4 supportEzra Peisach2000-02-244-18/+10
| | | | | | | | | is not compiled in. Linking with des425 is not required when krb4 is not compiled in. This cleans up the configure.in as we use WITH_KRB4 already git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12066 dc483132-0cff-0310-8789-dd5450dbe970
* Test for <arpa/inet.h> for possible inet_ntop prototypeEzra Peisach2000-02-244-2/+18
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12065 dc483132-0cff-0310-8789-dd5450dbe970
* * kpasswd.0/changing.exp: Add a sleep to avoid a race with theTom Yu2000-02-232-0/+9
| | | | | | | setup script. If this isn't here, it is possible that the initial change of pol2's password may happen too soon. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12064 dc483132-0cff-0310-8789-dd5450dbe970
* fix for vpath and du4.0 makeKen Raeburn2000-02-224-0/+16
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12063 dc483132-0cff-0310-8789-dd5450dbe970