Commit message (Collapse) | Author | Age | |
---|---|---|---|
* | It is still not the 80s anymore -- remove all caddr_ts | Karl Ramm | 2011-02-02 |
| | |||
* | make -DZ_DEBUG work | Karl Ramm | 2011-02-02 |
| | |||
* | Explicitly define ZNotice_Kind constants + actually define the promised strings | Karl Ramm | 2011-02-02 |
| | | | | | | | | | Since these are constants used in the protocol be explicit about what values the C compiler is assigning them, and that they can't be arbitrarily rearranged. Also, since we were promising strings for describing them in zephyr.h actually define the array. | ||
* | ZOpenPort stashes the port number, no need to getsockname again | Karl Ramm | 2011-02-02 |
| | |||
* | use system MIN | Karl Ramm | 2011-02-02 |
| | |||
* | syslogging for evety tcp-ized packet slows things down too much | Karl Ramm | 2010-12-19 |
| | |||
* | Fix typo | Karl Ramm | 2010-12-19 |
| | |||
* | Drop stale code for long-lost debugging malloc. | Karl Ramm | 2010-12-19 |
| | |||
* | remove a stupid cpp trick | Karl Ramm | 2010-12-19 |
| | |||
* | In the expired tickets case, authent->length is probably gibberish; | Karl Ramm | 2010-12-11 |
| | | | | notice->z_authent_authent_len will be zero. | ||
* | Apparently, on Linux at least, if you have an open UDP listening socket | Karl Ramm | 2010-12-04 |
| | | | | | | with SO_REUSADDR set on a given port, other people can also open listening sockets with SO_REUSEADDR set, so turn SO_REUSADDR back off after we've bound our port. | ||
* | Document the -n and -N flags to zhm. | Karl Ramm | 2010-12-04 |
| | |||
* | No more K&R! | Karl Ramm | 2010-12-04 |
| | |||
* | (Dumb preprocessor tricks)-- | Karl Ramm | 2010-12-04 |
| | |||
* | No output, ever! We have com_err for a reason | Karl Ramm | 2010-12-04 |
| | |||
* | check the return code from krb5_get_default_realm _before_ dereferencing | Karl Ramm | 2010-11-08 |
| | | | | the pointer | ||
* | preserve tags (and use dh_prep instead of dh_clean as build-prep) | Karl Ramm | 2010-11-08 |
| | |||
* | This will be 3.0.1 | Karl Ramm | 2010-11-06 |
| | |||
* | Restate error table dependencies such that make -j doesn't trip over itself | Karl Ramm | 2010-11-06 |
| | | | | (thanks to wthrowe@mit.edu) | ||
* | Have the makefiles support explicit target directories properly, courtesy ↵ | Karl Ramm | 2010-11-06 |
| | | | | wthrowe@mit.edu | ||
* | Actually take a --with-ares flag, thanks to wthrowe@mit.edu. | Karl Ramm | 2010-11-06 |
| | | | | | | Call it cares consistently, though. (regenerate configure, pulling in a new config.{guess,sub}) | ||
* | utmp.h doesn't appear to be used for anything in Zinternal.c | Karl Ramm | 2010-11-06 |
| | | | | and it breaks the build when there isn't a utmp.h | ||
* | don't just ignore all .files | Karl Ramm | 2010-11-06 |
| | | | | ignore TAGS | ||
* | clean up realm_sendit_auth | Karl Ramm | 2010-11-06 |
| | |||
* | Clean up xmit | Karl Ramm | 2010-08-24 |
| | |||
* | A argument for not doing a "quick change" at 3am. (braino, fixes previous) | Karl Ramm | 2010-08-24 |
| | |||
* | Don't leak memory when refragmenting sketchy packets. | Karl Ramm | 2010-08-24 |
| | |||
* | stop using MAXHOSTNAMELEN in a variety of places. Also ↵ | Karl Ramm | 2010-08-24 |
| | | | | nuke-trailing-whitespace. | ||
* | Don't use MAXPATHLEN anymore. | Karl Ramm | 2010-08-24 |
| | | | | | | | Some systems don't have it, having shaken off the shackles of fixed lengths. Unfortunately rewriting these things "right" in a fashion portable to unembraced-and-extended C libraries is aggravating. So do it wrong until we decide to bite the bullet and demand glib. | ||
* | Typo. | Karl Ramm | 2010-08-22 |
| | |||
* | cleanup a couple of decades old zwrite nits | Karl Ramm | 2010-08-22 |
| | | | | | Don't free the incoming notice if we don't know for sure there's one. Drop the message on read error in the tty case. | ||
* | further increase rabidity of .gitignore | Karl Ramm | 2010-08-22 |
| | |||
* | increase rabidity of .gitignore | Karl Ramm | 2010-08-22 |
| | |||
* | rewrite ZMakeZcodeRealmAuthentication to be less ugly and shorter | Karl Ramm | 2010-08-22 |
| | | | | | | | | | | | I am becoming increasingly enamored with the fall-through on error clean-up-everything-at-the-end style of C error handling and resource management. Also remove some misleading/useless/wrong comments. (also fix a problem in the tickets expired case where it was using the wrong (possibly undefined) authenticator lengh) | ||
* | tweak find_or_replace_uid storage algorithm | Karl Ramm | 2010-08-22 |
| | | | | | | | | | | | | | | | | | | | | | Per Nelson Elhage: find_or_insert_uid sorts 'buffer' by the uid, which is a remotely-provided field. However, in order to expire uids, it does: while (num && (now - buffer[start % size].t) > CLOCK_SKEW) start++, num--; start %= size; i.e. starts from the start of the queue and goes until it finds something sufficiently new. Since the queue ordering is attacker-controlled, we can send an arbitrarily-long sequence of decreasing uids, consuming memory and forcing the client into an ever-growing quadratic loop to insert them at the beginning. -- Solve this by not keeping the buffer sorted; just tack the incoming uids on the end. This way an attacker can make us keep five minutes worth of UIDs, but only five minutes, and also anecdotally a client under attack spends all of its CPU sort uids. | ||
* | fixes for krb5 being more careful about ticket expiration | Karl Ramm | 2010-08-22 |
| | | | | | | | | | | | | krb5 actually checks in mk_req and fails if the ticks are expired, rather than giving you an authenticator that would fail and, handing you the session key that you'd already negotiated. This causes (meh) sending auth to fail as opposed to just ending up unauthentic and (poor) verifiable messages to look unauthentic or forged. So get the session key from the ccache without checking the expiration time, and have the cert routine skip making an authenticator if krb5_mk_req_extended says the ticket is expired. | ||
* | Note for posterity that this is an external-facing function | Karl Ramm | 2010-08-22 |
| | |||
* | variables are unused in the HAVE_ARES case, make gcc shut up | Karl Ramm | 2010-08-22 |
| | |||
* | Make sure broken packets get timed out from the queue. | Karl Ramm | 2010-08-22 |
| | | | | | | | (The time used to be set before the bounds check, so one could potentially get an accumulation of packets in the queue without timestamps that could never be assembled into a full notice; thanks to nelhage@mit.edu for noticing.) | ||
* | properly set the hostmanager address back if sending an ACK fails | Karl Ramm | 2010-08-22 |
| | | | | (thanks to nelhage@mit.edu for noticing this) | ||
* | multinotice values should just never be negative | Karl Ramm | 2010-08-22 |
| | |||
* | fix an allocation-size braino and rearrange for readability | Karl Ramm | 2010-08-22 |
| | |||
* | Fix a leak if ZNewFormatSmallRawNotice fails. (thanks to nelhage@mit.edu for ↵ | Karl Ramm | 2010-08-22 |
| | | | | noticing) | ||
* | Don't crash if the header mysteriously gets too big. (Thanks to ↵ | Karl Ramm | 2010-08-22 |
| | | | | nelhage@mit.edu for noticing) | ||
* | Fix some formatting, and add some paranoia about oversized headers. | Karl Ramm | 2010-08-22 |
| | | | | (Thanks to nelhage@mit.edu for noticing the formatting problem) | ||
* | fix subscriptions-too-wide-breaks-braindump problem | Karl Ramm | 2010-07-28 |
| | | | | | | | | only send one sub per packet in braindump refactor bdump_send_list_tcp and send_normal_tcp brain dump can now cleanly receive overlarge encrypted packets refactor subscr_send_subs and subscr_send_realm_subs nuke trailing whitespace | ||
* | Fix getting data out of gethostbyname; should fix #69 | Karl Ramm | 2010-07-28 |
| | |||
* | we are preparing 3.0.1 | Karl Ramm | 2010-07-28 |
| | |||
* | autoconf test for etext, cleanup #ifdefs for ancient stuff we don't build on | Karl Ramm | 2010-03-17 |
| | |||
* | It is the twenty-first century, we don't need #ifdef ladders anymore. | Karl Ramm | 2010-03-17 |
| |