CVS: cvs.openbsd.org: src

2013-07-19 Thread Eric Faurot
CVSROOT:/cvs
Module name:src
Changes by: e...@cvs.openbsd.org2013/07/19 01:37:29

Modified files:
usr.sbin/smtpd : mta_session.c smtpd.h util.c 

Log message:
get rid of sa_set_port() and its awfully contorted implementation



CVS: cvs.openbsd.org: src

2013-07-19 Thread Markus Friedl
CVSROOT:/cvs
Module name:src
Changes by: mar...@cvs.openbsd.org  2013/07/19 01:37:48

Modified files:
usr.bin/ssh: auth.h kex.h kexdhs.c kexecdhs.c kexgexs.c 
 monitor.c servconf.c servconf.h session.c 
 sshd.c sshd_config.5 

Log message:
add ssh-agent(1) support to sshd(8); allows encrypted hostkeys,
or hostkeys on smartcards; most of the work by Zev Weiss; bz #1974
ok djm@



CVS: cvs.openbsd.org: src

2013-07-19 Thread Jason McIntyre
CVSROOT:/cvs
Module name:src
Changes by: j...@cvs.openbsd.org2013/07/19 01:44:22

Modified files:
sbin/pfctl : pfctl.8 

Log message:
remove redundant paragraph; from Pieter Verberne



CVS: cvs.openbsd.org: src

2013-07-19 Thread Eric Faurot
CVSROOT:/cvs
Module name:src
Changes by: e...@cvs.openbsd.org2013/07/19 01:49:08

Modified files:
usr.sbin/smtpd : control.c lka.c mda.c mfa.c mta.c queue.c 
 scheduler.c smtp.c smtpd.h 

Log message:
Remove useless sc_pid from struct smtpd.



CVS: cvs.openbsd.org: src

2013-07-19 Thread Eric Faurot
CVSROOT:/cvs
Module name:src
Changes by: e...@cvs.openbsd.org2013/07/19 02:12:19

Modified files:
usr.sbin/smtpd : lka_session.c smtpd.conf.5 smtpd.h util.c 

Log message:
Introduce expand string modifiers



CVS: cvs.openbsd.org: src

2013-07-19 Thread Eric Faurot
CVSROOT:/cvs
Module name:src
Changes by: e...@cvs.openbsd.org2013/07/19 03:04:07

Modified files:
usr.sbin/smtpd : ssl.c ssl.h 

Log message:
tls perfect forward secrecy with ecdhe

suggested by djm@ on hackers@, diff ok djm@



CVS: cvs.openbsd.org: src

2013-07-19 Thread Alexander Bluhm
CVSROOT:/cvs
Module name:src
Changes by: bl...@cvs.openbsd.org   2013/07/19 03:12:51

Modified files:
usr.sbin/ndp   : ndp.c 

Log message:
ndp used an int expire_time for time calculation.  Convert this
into time_t.
OK henning@ florian@



CVS: cvs.openbsd.org: src

2013-07-19 Thread Eric Faurot
CVSROOT:/cvs
Module name:src
Changes by: e...@cvs.openbsd.org2013/07/19 03:39:28

Modified files:
usr.sbin/smtpd : crypto.c 

Log message:
unused variable



CVS: cvs.openbsd.org: src

2013-07-19 Thread Eric Faurot
CVSROOT:/cvs
Module name:src
Changes by: e...@cvs.openbsd.org2013/07/19 05:14:08

Modified files:
usr.sbin/smtpd : control.c lka.c mda.c mfa.c mta.c queue.c 
 queue_backend.c queue_fsqueue.c queue_null.c 
 queue_ram.c scheduler.c smtp.c smtpctl.c 
 smtpd.c smtpd.h 

Log message:
Get rid of env-sc_pw and env-sc_pwqueue.  Early queue initialization
now happens in queue_init(), and backends take the queue passwd as
parameter in their init function.

Remove useless SMTPD_FILTER_USER while there.



CVS: cvs.openbsd.org: src

2013-07-19 Thread Eric Faurot
CVSROOT:/cvs
Module name:src
Changes by: e...@cvs.openbsd.org2013/07/19 06:20:57

Modified files:
usr.sbin/smtpd : aliases.5 

Log message:
document error: aliases



CVS: cvs.openbsd.org: src

2013-07-19 Thread Eric Faurot
CVSROOT:/cvs
Module name:src
Changes by: e...@cvs.openbsd.org2013/07/19 06:22:58

Modified files:
usr.sbin/smtpd : newaliases.8 

Log message:
typo in copyright



CVS: cvs.openbsd.org: src

2013-07-19 Thread Eric Faurot
CVSROOT:/cvs
Module name:src
Changes by: e...@cvs.openbsd.org2013/07/19 06:36:42

Removed files:
usr.sbin/smtpd : smtpfilter.c 

Log message:
remove obsolete file



CVS: cvs.openbsd.org: src

2013-07-19 Thread Eric Faurot
CVSROOT:/cvs
Module name:src
Changes by: e...@cvs.openbsd.org2013/07/19 07:11:18

Modified files:
usr.sbin/smtpd : parse.y smtpd.conf.5 

Log message:
Improve and document the way the default server name is found.



CVS: cvs.openbsd.org: src

2013-07-19 Thread Eric Faurot
CVSROOT:/cvs
Module name:src
Changes by: e...@cvs.openbsd.org2013/07/19 07:41:23

Modified files:
usr.sbin/smtpd : parser.c parser.h smtpctl.c smtpd.h 
usr.sbin/smtpd/smtpctl: Makefile 

Log message:
New implementation for smtpctl and the command line parser.  Allows
richer syntax, and makes the code way simpler to follow and extend
with new commands.



CVS: cvs.openbsd.org: src

2013-07-19 Thread Alexander Bluhm
CVSROOT:/cvs
Module name:src
Changes by: bl...@cvs.openbsd.org   2013/07/19 08:41:46

Modified files:
sbin/route : Makefile 

Log message:
Compile /sbin/route with -Wall enabled.
OK deraadt@



CVS: cvs.openbsd.org: www

2013-07-19 Thread Brian Callahan
CVSROOT:/cvs
Module name:www
Changes by: bcal...@cvs.openbsd.org 2013/07/19 08:41:04

Modified files:
faq: faq5.html 

Log message:
modular build = a modular build
ok nick@



CVS: cvs.openbsd.org: src

2013-07-19 Thread Eric Faurot
CVSROOT:/cvs
Module name:src
Changes by: e...@cvs.openbsd.org2013/07/19 09:09:40

Modified files:
usr.sbin/smtpd : queue_fsqueue.c 

Log message:
need to create the incoming directory



CVS: cvs.openbsd.org: src

2013-07-19 Thread Eric Faurot
CVSROOT:/cvs
Module name:src
Changes by: e...@cvs.openbsd.org2013/07/19 09:53:35

Modified files:
usr.sbin/smtpd : smtpd.c 

Log message:
assorted fixes:
- fix client certificates
- unlink control socket on exit
- write a pidfile
- minor code updates



CVS: cvs.openbsd.org: src

2013-07-19 Thread Eric Faurot
CVSROOT:/cvs
Module name:src
Changes by: e...@cvs.openbsd.org2013/07/19 10:02:00

Modified files:
usr.sbin/smtpd : filter_api.c mfa.c mfa_session.c smtpd-api.h 
 smtpd.h to.c 

Log message:
Move the filter infrastructure forward.



CVS: cvs.openbsd.org: src

2013-07-19 Thread Eric Faurot
CVSROOT:/cvs
Module name:src
Changes by: e...@cvs.openbsd.org2013/07/19 09:14:23

Modified files:
usr.sbin/smtpd : bounce.c control.c mda.c mta.c queue.c 
 scheduler.c scheduler_backend.c 
 scheduler_null.c scheduler_ramqueue.c smtpctl.8 
 smtpctl.c smtpd.c smtpd.h 

Log message:
scheduler improvements:
- implement suspend/resume scheduling for individual envelopes or message,
with the associated smtpctl commands.
- allow the mta to request immediate scheduling of an envelope.
- on temporary failures a penalty can be given to further delay the next try.



CVS: cvs.openbsd.org: src

2013-07-19 Thread Eric Faurot
CVSROOT:/cvs
Module name:src
Changes by: e...@cvs.openbsd.org2013/07/19 09:17:01

Modified files:
usr.sbin/smtpd : makemap.8 

Log message:
typo in copyright



CVS: cvs.openbsd.org: src

2013-07-19 Thread Eric Faurot
CVSROOT:/cvs
Module name:src
Changes by: e...@cvs.openbsd.org2013/07/19 09:18:42

Modified files:
usr.sbin/smtpd : mproc.c 

Log message:
typo



CVS: cvs.openbsd.org: src

2013-07-19 Thread Kenneth R Westerback
CVSROOT:/cvs
Module name:src
Changes by: k...@cvs.openbsd.org2013/07/19 11:14:13

Modified files:
sys/dev: softraid.c 

Log message:
Don't use uninitialized variable when a simple 0 will do.

Found by Maxime Villard.

ok jsing@



CVS: cvs.openbsd.org: src

2013-07-19 Thread Eric Faurot
CVSROOT:/cvs
Module name:src
Changes by: e...@cvs.openbsd.org2013/07/19 13:10:22

Modified files:
usr.sbin/smtpd : parse.y smtpd.conf.5 

Log message:
Allow to specify an address family on a listener



CVS: cvs.openbsd.org: src

2013-07-19 Thread Eric Faurot
CVSROOT:/cvs
Module name:src
Changes by: e...@cvs.openbsd.org2013/07/19 13:53:33

Modified files:
usr.sbin/smtpd : parse.y smtpd-api.h smtpd.h table.c 
usr.sbin/smtpd/makemap: Makefile 
usr.sbin/smtpd/smtpd: Makefile 
Added files:
usr.sbin/smtpd : table_api.c table_proc.c 

Log message:
Add a table_proc backend for delegating table lookups to another
process.  Stop building experimental table_sqlite and table_ldap as
they will be provided as external backends.



CVS: cvs.openbsd.org: src

2013-07-19 Thread Philip Guenther
CVSROOT:/cvs
Module name:src
Changes by: guent...@cvs.openbsd.org2013/07/19 14:10:23

Modified files:
sbin/route : route.c show.c 

Log message:
Prep for WARNINGS=yes: add the prototypes that were missing, silence
a signed vs unsigned in conditional warning, and eliminate what
looks like an unintentional variable shadowing.

ok bluhm@



CVS: cvs.openbsd.org: src

2013-07-19 Thread Eric Faurot
CVSROOT:/cvs
Module name:src
Changes by: e...@cvs.openbsd.org2013/07/19 14:37:08

Modified files:
usr.sbin/smtpd : parse.y queue.c queue_backend.c queue_null.c 
 queue_ram.c smtpd-api.h smtpd.c smtpd.conf.5 
 smtpd.h 
usr.sbin/smtpd/smtpctl: Makefile 
usr.sbin/smtpd/smtpd: Makefile 
Added files:
usr.sbin/smtpd : queue_api.c queue_fs.c queue_proc.c 
Removed files:
usr.sbin/smtpd : queue_fsqueue.c 

Log message:
Assorted queue improvements:
- cleanup the internal queue backend API and get rid of the QOP_* thing.
- implement a queue_proc backend
- rename queue_fsqueue.c to queue_fs
- enable support for queue encryption
- add an envelope cache
- better logging and error reporting



CVS: cvs.openbsd.org: src

2013-07-19 Thread Eric Faurot
CVSROOT:/cvs
Module name:src
Changes by: e...@cvs.openbsd.org2013/07/19 15:34:31

Modified files:
usr.sbin/smtpd : scheduler_backend.c scheduler_null.c 
 scheduler_ramqueue.c smtpd-api.h smtpd.h 
usr.sbin/smtpd/smtpd: Makefile 
Added files:
usr.sbin/smtpd : scheduler_api.c scheduler_proc.c 

Log message:
Implement a scheduler_proc backend



CVS: cvs.openbsd.org: src

2013-07-19 Thread Eric Faurot
CVSROOT:/cvs
Module name:src
Changes by: e...@cvs.openbsd.org2013/07/19 16:22:39

Modified files:
usr.sbin/smtpd : smtpd.h 

Log message:
We are basically at 5.4 now



CVS: cvs.openbsd.org: src

2013-07-19 Thread Eric Faurot
CVSROOT:/cvs
Module name:src
Changes by: e...@cvs.openbsd.org2013/07/19 15:58:54

Modified files:
usr.sbin/smtpd : smtpd.c 

Log message:
Temporarily allow alternate names for traces, until this get cleaned up.



CVS: cvs.openbsd.org: src

2013-07-19 Thread Eric Faurot
CVSROOT:/cvs
Module name:src
Changes by: e...@cvs.openbsd.org2013/07/19 15:14:52

Modified files:
usr.sbin/smtpd : control.c mta.c mta_session.c parse.y queue.c 
 scheduler.c smtpctl.8 smtpctl.c smtpd.c 
 smtpd.conf.5 smtpd.h 
usr.sbin/smtpd/makemap: Makefile 
usr.sbin/smtpd/smtpd: Makefile 
Added files:
usr.sbin/smtpd : limit.c runq.c 

Log message:
Many MTA improvements:

- Better transient error handling logic: failing destinations are
automatically disabled for a while.  When a destination is active
again, ask the scheduler to retry previous envelopes immediatly.
- More informative error report when all routes fail for a mail.
- Implement a smtpctl show hoststats command to get the latest stat
message per MX domain.
- Implement a smtpctl show routes command to show the state the
currently known routes to remote MXs.
- Implement a smtpctl resume route command to re-enable a route that
has been disabled.
- Do not hardcode limits
- Minor code improvements



CVS: cvs.openbsd.org: src

2013-07-19 Thread Eric Faurot
CVSROOT:/cvs
Module name:src
Changes by: e...@cvs.openbsd.org2013/07/19 15:18:54

Modified files:
usr.sbin/smtpd : smtp_session.c 

Log message:
When accepting a message, log one line per recipient with the number of
generated envelopes for each.



CVS: cvs.openbsd.org: src

2013-07-19 Thread Damien Miller
CVSROOT:/cvs
Module name:src
Changes by: d...@cvs.openbsd.org2013/07/19 19:43:46

Modified files:
usr.bin/ssh: umac.c 

Log message:
use a union to ensure correct alignment; ok deraadt



CVS: cvs.openbsd.org: src

2013-07-19 Thread Damien Miller
CVSROOT:/cvs
Module name:src
Changes by: d...@cvs.openbsd.org2013/07/19 19:44:37

Modified files:
usr.bin/ssh: ssh-keygen.c ssh.c 

Log message:
More useful error message on missing current user in /etc/passwd



CVS: cvs.openbsd.org: src

2013-07-19 Thread Damien Miller
CVSROOT:/cvs
Module name:src
Changes by: d...@cvs.openbsd.org2013/07/19 19:50:20

Modified files:
usr.bin/ssh: ssh-agent.c 

Log message:
call cleanup_handler on SIGINT when in debug mode to ensure sockets
are cleaned up on manual exit; bz#2120



CVS: cvs.openbsd.org: src

2013-07-19 Thread Damien Miller
CVSROOT:/cvs
Module name:src
Changes by: d...@cvs.openbsd.org2013/07/19 19:55:13

Modified files:
usr.bin/ssh/sshd: Makefile 
usr.bin/ssh/ssh: Makefile 
usr.bin/ssh: gss-serv.c gss-serv-krb5.c auth-krb5.c 

Log message:
fix kerberos/GSSAPI deprecation warnings and linking; looks okay millert@



CVS: cvs.openbsd.org: src

2013-07-19 Thread Jason McIntyre
CVSROOT:/cvs
Module name:src
Changes by: j...@cvs.openbsd.org2013/07/19 23:57:04

Modified files:
sbin/pfctl : pfctl.8 

Log message:
reverting previous until i can work out what henning is telling me...