improve maths and conditionals around ticks to cope with wraparound better.
replace workqs with tasks for handling resume

from kimberley manning
replace workqs with tasks for handling resume

from kimberley manning
replace workqs with tasks for handling resume

from kimberley manning
replace workqs with tasks for handling resume

from kimberley manning
not need to specify OBJDIR; ok mikeb
replace workqs with tasks for handling resume

from kimberley manning
verify EC points; from hshoexer; ok mikeb
replace workqs with tasks for handling resume

from kimberley manning
replace workqs with tasks for handling resume

from kimberley manning
replace workqs with tasks for handling resume

from kimberley manning
replace workqs with tasks for handling resume

from kimberley manning
pass caller to ca_sslerror for better error messages; ok mikeb
replace workqs with tasks for handling resume

from kimberley manning
replace workqs with tasks for handling resume. state handling is
still in workqs.

from kimberley manning
setup pfkey timer before use; ok mikeb
ignore messages for other daemons, like isakmpd does; ok mikeb
fix ^C handling which was accidentally trapped a bit to much

ok rpe@ krw@
be more specific in ulimit error messages.
prompted by henning@
okay millert@, krw@, pirofti@
fix parameter types for x509 routines
ok mikeb