summaryrefslogtreecommitdiff
path: root/usr.sbin/hoststated
AgeCommit message (Collapse)Author
2007-10-22we don't need mmap/munmap in relay_load_certificates anymore...Reyk Floeter
just use read() and make the function a little bit nicer. ok pyr@
2007-10-22load certificates text at parse time. then load them in relay processes.Pierre-Yves Ritschard
this separation will ease reload a bit more. ok reyk@ who spotted a stupid mistake again...
2007-10-22add missing .Ed;Jason McIntyre
2007-10-22add support for the include directive to the configuration file parser,Reyk Floeter
based on the existing hostapd/pfctl code. ok pyr@
2007-10-22do not check the file secrecy of hoststated.conf, there is no need toReyk Floeter
enforce the file ownership and permissions to root:wheel 0400 because we have nothing to hide. ok pyr@
2007-10-19print system error when fopen fails.Pierre-Yves Ritschard
2007-10-19Do log initialisation correctly, like bgpd does.Pierre-Yves Ritschard
This removes the double warn/log_warn madness i introduced yesterday. This also keeps messages on stderr at startup and when running with -n.
2007-10-19Move relays from static TAILQs to allocated ones.Pierre-Yves Ritschard
This syncs it with other hoststated entities and will make reload easier. This is step 1 out of 7 for reload.
2007-10-19Add the ability to schedule an immediate check through hoststatectl.Pierre-Yves Ritschard
Especially useful when interval is rather long. I was supposed to commit this before 4.2.
2007-10-19keep log_warn messages to be informed when a failure occurs during a reload.Pierre-Yves Ritschard
2007-10-18unbreak treeTheo de Raadt
2007-10-18extra arg to warn slipped through.Pierre-Yves Ritschard
2007-10-18repair file security warnings; ok pyrTheo de Raadt
2007-10-16Allow '=' to end a number in all lexers.Marco Pfatschbacher
Requested and OK deraadt@
2007-10-16in the lex... even inside quotes, a \ followed by space or tab shouldTheo de Raadt
expand to space or tab, and a \ followed by newline should be ignored (as a line continuation). compatible with the needs of hoststated (which has the most strict quoted string requirements), and ifstated (where one commonly does line continuations in strings). pointed out by mpf, discussed with pyr
2007-10-13avoid errno trashing in signal handlerTheo de Raadt
2007-10-13in all these programs using the same pfctl-derived parse.y, re-unify theTheo de Raadt
yylex implementation and the code which interacts with yylex. this also brings the future potential for include support to all of the parsers. in the future please do not silly modifications to one of these files without checking if you are de-unifying the code. checked by developers in all these areas.
2007-10-12Silence some lint(1) warningsBret Lambert
ok pyr@
2007-10-11next step in the yylex unification: handle quoted strings in a nicer fashionTheo de Raadt
as found in hoststated, and make all the code diff as clean as possible. a few issues remain mostly surrounding include support, which will likely be added to more of the grammers soon. ok norby pyr, others
2007-10-09use macro argumentTheo de Raadt
2007-10-09Do not notify twice about the same timeout in check_icmp, this previouslyPierre-Yves Ritschard
corrupted statistics. Found out by Piotr Sikora < piotr@sikora.nu >.
2007-10-05stylistic changes in the relay/relay_config structure.Reyk Floeter
2007-10-05cast to an intReyk Floeter
2007-10-05using an enum in the imsg_hdr is gross, use a fixed u_int16_t insteadReyk Floeter
2007-10-05unbreak non-SSL relays by calling the ssl context init only if the SSLReyk Floeter
flag is present...
2007-10-02stop messing with lgetc to please hoststated's check/expect.Pierre-Yves Ritschard
instead move some of the logic in yylex and do hoststated specific translations into hoststated.c ok gilles@
2007-10-02clean up merged code.Pierre-Yves Ritschard
2007-10-01Add NUMBER to hoststated's lexer, very similar to what has gone inPierre-Yves Ritschard
in the other daemons recently. Prompted and based on work by deraadt@ proofread and ok gilles@
2007-10-01kill some remaining debug that snuk in.Pierre-Yves Ritschard
2007-10-01keep lines < 80.Pierre-Yves Ritschard
2007-09-28KNFPierre-Yves Ritschard
2007-09-28Better description of the daemon.Pierre-Yves Ritschard
Initially prompted by deraadt@, with much much help from jmc@ (as always).
2007-09-28Correct my mail address.Pierre-Yves Ritschard
2007-09-28Change the ssl_privsep code to work on char buffers.Pierre-Yves Ritschard
The fd based code introduced weirdness since all children were accessing the same fd at once. This will also greatly facilitate reloading, no fd-passing will be involved between the parent and relay children. While there, cleanup the code diverting from the original ssl_rsa.c code a bit more. Weird behavior discovery by pascoe@.
2007-09-28"require to +inf." is not a good verb pattern, so reword;Jason McIntyre
2007-09-28Add missing "s" to https check description.Christopher Pascoe
ok pyr@
2007-09-27Move SSL context creation after privileges are dropped.Pierre-Yves Ritschard
This puts the ssl_privsep code to use. One more step towards graceful L7 reload.
2007-09-27Simplify ssl_privsep.c, since it won't need to remain synced with thePierre-Yves Ritschard
equivalent openssl functions.
2007-09-27Do not clear the changed flag to early, which prevented a tablePierre-Yves Ritschard
from being used by several services. ``looks fine'' reyk@
2007-09-25Introduce two new functions to be able to load certificates whilePierre-Yves Ritschard
already chrooted and with privileges dropped. This is the very first step in being able to reload a layer 7 configuration. not ok reyk who's away but should be glad to see this in.
2007-09-10add support for relaying DNS traffic (with a little bit of packetReyk Floeter
header randomization). this adds an infrastructure to support UDP-based protocols. ok gilles@, tested by some
2007-09-07add an interface to dump running relay sessions to the control socketReyk Floeter
2007-09-07remove unused flags field from the structureReyk Floeter
2007-09-07store the table's port as the relay's dstportReyk Floeter
2007-09-07add a function to print delays in hours, minutes, and secondsReyk Floeter
2007-09-06rename relay_host to print_host in log.cReyk Floeter
2007-09-05be extra careful with pointers in session_cmpReyk Floeter
2007-09-05add my copyright because i added a lot.Reyk Floeter
ok pyr@ (who is the first copyright holder)
2007-09-05store relay sessions in SPLAY trees instead of TAILQ lists. this willReyk Floeter
be used for faster lookups of sessions based on different criteria. ok pyr@
2007-09-05increase th maximum string size for the sslciphers from 32 to 768.Reyk Floeter
this unbreaks some configurations that worked when sslciphers was a dynamic charbuf. ok pyr@