CVS: cvs.openbsd.org: src

2015-02-07 Thread Martin Pieuchot
CVSROOT:/cvs
Module name:src
Changes by: m...@cvs.openbsd.org2015/02/08 00:00:48

Modified files:
sys/arch/macppc/dev: if_bm.c if_mc.c 

Log message:
Convert to if_input().



CVS: cvs.openbsd.org: src

2015-02-07 Thread Martin Pieuchot
CVSROOT:/cvs
Module name:src
Changes by: m...@cvs.openbsd.org2015/02/07 23:55:28

Modified files:
sys/dev/ic : re.c 
sys/dev/pci: if_pcn.c 

Log message:
Convert to if_input().



CVS: cvs.openbsd.org: src

2015-02-07 Thread Martin Pieuchot
CVSROOT:/cvs
Module name:src
Changes by: m...@cvs.openbsd.org2015/02/07 23:21:04

Modified files:
sys/arch/powerpc/powerpc: bus_space.c 

Log message:
Do not assume that addresses passed to bus_space_map(9) are relative
to the bus base address, that's not the case with radeondrm(9) cards
on G5.

>From miod@



CVS: cvs.openbsd.org: src

2015-02-07 Thread Theo de Raadt
CVSROOT:/cvs
Module name:src
Changes by: dera...@cvs.openbsd.org 2015/02/07 23:20:22

Modified files:
distrib/hppa   : install.md 

Log message:
md_prep_disklabel should run disklabel (for fresh disks intended to be
bootable, which do contain a LIF yet).  It should also be run in
md_installboot for the upgrade case.
Diagnosis with jsing and kettenis, buglet spotted by rpe
Testing... waiting for that.



CVS: cvs.openbsd.org: src

2015-02-07 Thread Ted Unangst
CVSROOT:/cvs
Module name:src
Changes by: t...@cvs.openbsd.org2015/02/07 23:09:50

Modified files:
bin/csh: dir.c exp.c func.c lex.c misc.c parse.c proc.c 

Log message:
delete tons more casts



CVS: cvs.openbsd.org: src

2015-02-07 Thread Martin Pieuchot
CVSROOT:/cvs
Module name:src
Changes by: m...@cvs.openbsd.org2015/02/07 23:03:07

Modified files:
sys/net80211   : ieee80211_input.c 

Log message:
Convert wirless devices to if_input(), tested with iwn(4) and urtwn(4).

ok pelikan@, reyk@, blambert@, henning@



CVS: cvs.openbsd.org: src

2015-02-07 Thread Martin Pieuchot
CVSROOT:/cvs
Module name:src
Changes by: m...@cvs.openbsd.org2015/02/07 23:02:24

Modified files:
sys/dev/pci: if_em.c 

Log message:
Convert to if_input().

ok pelikan@, reyk@, blambert@, henning@



CVS: cvs.openbsd.org: src

2015-02-07 Thread Martin Pieuchot
CVSROOT:/cvs
Module name:src
Changes by: m...@cvs.openbsd.org2015/02/07 23:02:03

Modified files:
sys/dev/ic : gem.c 

Log message:
Convert to if_input().

ok pelikan@, reyk@, blambert@, henning@



CVS: cvs.openbsd.org: src

2015-02-07 Thread Ted Unangst
CVSROOT:/cvs
Module name:src
Changes by: t...@cvs.openbsd.org2015/02/07 23:01:25

Modified files:
bin/csh: alloc.c csh.h extern.h glob.c 

Log message:
remove ptr_t typedef. void * is good enough for csh.



CVS: cvs.openbsd.org: src

2015-02-07 Thread Martin Pieuchot
CVSROOT:/cvs
Module name:src
Changes by: m...@cvs.openbsd.org2015/02/07 23:00:52

Modified files:
sys/net: if.c if.h if_ethersubr.c if_var.h 

Log message:
Introduce if_input() a function to pass packets dequeued from a
recieving ring to the stack.

if_input() is at the moment a drop-in replacement for ether_input_mbuf()
but will let us stack pseudo-driver in a nice way in order to no longer
call ether_input() recursively.

ok pelikan@, reyk@, blambert@, henning@



CVS: cvs.openbsd.org: src

2015-02-07 Thread Ted Unangst
CVSROOT:/cvs
Module name:src
Changes by: t...@cvs.openbsd.org2015/02/07 22:51:37

Modified files:
bin/csh: csh.c dir.c dol.c error.c exec.c exp.c hist.c 
 misc.c proc.c 

Log message:
delete many more ptr_t casts



CVS: cvs.openbsd.org: src

2015-02-07 Thread Ted Unangst
CVSROOT:/cvs
Module name:src
Changes by: t...@cvs.openbsd.org2015/02/07 22:47:28

Modified files:
bin/csh: alloc.c file.c func.c glob.c lex.c parse.c 
 sem.c set.c 

Log message:
delete lots of unnecessary ptr_t casts, and drop a little NULL in as well



CVS: cvs.openbsd.org: src

2015-02-07 Thread Masao Uebayashi
CVSROOT:/cvs
Module name:src
Changes by: uebay...@cvs.openbsd.org2015/02/07 22:40:48

Modified files:
sys/arch/mips64/mips64: trap.c 

Log message:
ANSI'fy.



CVS: cvs.openbsd.org: src

2015-02-07 Thread Masao Uebayashi
CVSROOT:/cvs
Module name:src
Changes by: uebay...@cvs.openbsd.org2015/02/07 22:36:51

Modified files:
sys/arch/mips64/mips64: trap.c 

Log message:
Fix stack trace of tail calls.  From NetBSD.  OK miod@



CVS: cvs.openbsd.org: src

2015-02-07 Thread Ted Unangst
CVSROOT:/cvs
Module name:src
Changes by: t...@cvs.openbsd.org2015/02/07 22:25:16

Modified files:
bin/csh: alloc.c 

Log message:
it's safe to call free with null



CVS: cvs.openbsd.org: src

2015-02-07 Thread Reyk Floeter
CVSROOT:/cvs
Module name:src
Changes by: r...@cvs.openbsd.org2015/02/07 21:54:15

Modified files:
usr.sbin/ntpd  : config.c 

Log message:
Add a comment that ntpd MUST NOT use AI_ADDRCONFIG in host_dns()

OK henning@



CVS: cvs.openbsd.org: src

2015-02-07 Thread Reyk Floeter
CVSROOT:/cvs
Module name:src
Changes by: r...@cvs.openbsd.org2015/02/07 21:50:32

Modified files:
usr.sbin/httpd : parse.y 
usr.sbin/relayd: parse.y 
usr.sbin/snmpd : parse.y 
sbin/iked  : parse.y 
usr.sbin/smtpd : parse.y 

Log message:
Use AI_ADDRCONFIG when resolv hosts on startup.

OK henning@



CVS: cvs.openbsd.org: src

2015-02-07 Thread Theo de Raadt
CVSROOT:/cvs
Module name:src
Changes by: dera...@cvs.openbsd.org 2015/02/07 21:41:48

Modified files:
sys/arch/i386/i386: machdep.c 
sys/arch/amd64/amd64: identcpu.c 

Log message:
Only attach cpu-based sensors on the primary cpu, for two reasons
- The sensor framework cannot fetch values on the right cpu
- sensor_task_register() calls malloc, and calling it is inapproapriate
ok guenther



CVS: cvs.openbsd.org: src

2015-02-07 Thread YASUOKA Masahiko
CVSROOT:/cvs
Module name:src
Changes by: yasu...@cvs.openbsd.org 2015/02/07 21:40:50

Modified files:
usr.bin/netstat: inet.c 
sys/netinet: tcp_input.c tcp_var.h 

Log message:
Count dropped SYN packets on the tcpstat.  They are dropped due to the
listen queue (backlog) limit or the memory shortage in syn-cache.

ok henning reyk claudio



CVS: cvs.openbsd.org: src

2015-02-07 Thread Claudio Jeker
CVSROOT:/cvs
Module name:src
Changes by: clau...@cvs.openbsd.org 2015/02/07 21:29:53

Modified files:
usr.bin/netstat: netstat.1 

Log message:
-a for -I or -i is gone for good. So adjust manpage.



CVS: cvs.openbsd.org: src

2015-02-07 Thread Claudio Jeker
CVSROOT:/cvs
Module name:src
Changes by: clau...@cvs.openbsd.org 2015/02/07 21:25:56

Modified files:
usr.bin/netstat: if.c 

Log message:
The multicast address printing code has been disabled for 7 years.
Nobody complained about it missing. It is time to kill it for real.
OK phessler, henning, deraadt



CVS: cvs.openbsd.org: src

2015-02-07 Thread Claudio Jeker
CVSROOT:/cvs
Module name:src
Changes by: clau...@cvs.openbsd.org 2015/02/07 21:14:47

Modified files:
sys/netinet: ip_input.c 

Log message:
Just use sysctl_rdstruct() to read out some structs. Only difference
to current code is that you can no longer call this with a NULL oldlenp
which does not make any sense. OK phessler, henning
Behaviour change pointed out by miod@



CVS: cvs.openbsd.org: src

2015-02-07 Thread Reyk Floeter
CVSROOT:/cvs
Module name:src
Changes by: r...@cvs.openbsd.org2015/02/07 21:12:34

Modified files:
lib/libtls : tls_client.c 

Log message:
Use the AI_ADDRCONFIG flag in tls_connect().  This tells the resolver
to ignore unsupported address families - eg. don't resolv IPv6 on
IPv4-only hosts.

OK jsing@



CVS: cvs.openbsd.org: src

2015-02-07 Thread Theo de Raadt
CVSROOT:/cvs
Module name:src
Changes by: dera...@cvs.openbsd.org 2015/02/07 20:48:25

Modified files:
sys/arch/sparc64/include: vmparam.h 
sys/arch/alpha/include: vmparam.h 
sys/arch/amd64/include: vmparam.h 

Log message:
Hilarious!  We are not ready yet for large stack random biases, due to
the stack region handling in uvm.



CVS: cvs.openbsd.org: src

2015-02-07 Thread Claudio Jeker
CVSROOT:/cvs
Module name:src
Changes by: clau...@cvs.openbsd.org 2015/02/07 20:42:24

Modified files:
sys/netinet: ip_mroute.c 

Log message:
De-static to make ddb hangman harder. OK phessler, henning



CVS: cvs.openbsd.org: src

2015-02-07 Thread Claudio Jeker
CVSROOT:/cvs
Module name:src
Changes by: clau...@cvs.openbsd.org 2015/02/07 20:41:36

Modified files:
sys/netinet6   : ip6_mroute.c 

Log message:
Rename some of the functions by adding a 6 so they do not conflict with
the still static functions in ip_mroute.c
OK phessler, henning



CVS: cvs.openbsd.org: src

2015-02-07 Thread Henning Brauer
CVSROOT:/cvs
Module name:src
Changes by: henn...@cvs.openbsd.org 2015/02/07 20:16:16

Modified files:
sys/net: hfsc.c 

Log message:
remove the dead code inside #if(def) RED_NOTYET
if we ever do sth like RED again it almost certainly won't be RED; the code
isn't even in a state to be useful as documentation/hint, and even if it
was it could be retrieved from the attic.



CVS: cvs.openbsd.org: src

2015-02-07 Thread Mike Larkin
CVSROOT:/cvs
Module name:src
Changes by: mlar...@cvs.openbsd.org 2015/02/07 20:01:29

Modified files:
sys/arch/amd64/amd64: identcpu.c 

Log message:
Typo "fature" -> "feature"



CVS: cvs.openbsd.org: src

2015-02-07 Thread Ted Unangst
CVSROOT:/cvs
Module name:src
Changes by: t...@cvs.openbsd.org2015/02/07 19:58:50

Modified files:
include: stdlib.h 

Log message:
add restrict to strtol like functions. ok guenther



CVS: cvs.openbsd.org: src

2015-02-07 Thread Theo de Raadt
CVSROOT:/cvs
Module name:src
Changes by: dera...@cvs.openbsd.org 2015/02/07 19:17:08

Modified files:
sys/uvm: uvm_aobj.c uvm_fault.c uvm_page.c 

Log message:
Something is subtly wrong with this.  On ramdisks, processes run out of
mappable memory (direct or via execve), perhaps because of the address
allocator behind maps and the way wiring counts work?



CVS: cvs.openbsd.org: src

2015-02-07 Thread Claudio Jeker
CVSROOT:/cvs
Module name:src
Changes by: clau...@cvs.openbsd.org 2015/02/07 19:02:21

Modified files:
usr.bin/netstat: Makefile 

Log message:
Do extend CFLAGS instead of assigning it so that DEBUG=-g works
OK deraadt@



CVS: cvs.openbsd.org: src

2015-02-07 Thread Bret Lambert
CVSROOT:/cvs
Module name:src
Changes by: blamb...@cvs.openbsd.org2015/02/07 18:39:06

Modified files:
usr.sbin/relayd: pfe.c 

Log message:
move a log_warnx() to a DPRINTF, as it's information intended
for developers, not sysadmins

original diff from yasuoka@



CVS: cvs.openbsd.org: src

2015-02-07 Thread David Gwynne
CVSROOT:/cvs
Module name:src
Changes by: d...@cvs.openbsd.org2015/02/07 18:30:09

Modified files:
sys/arch/sparc/dev: xd.c xdvar.h 

Log message:
replace hand rolled code to maintain a list of bufs with a fifo
bufq.

guenther pointed out this is one of the last things using the compat
in struct buf that we still have from the disksort days. not anymore.

ok miod@ guenther@



CVS: cvs.openbsd.org: src

2015-02-07 Thread Reyk Floeter
CVSROOT:/cvs
Module name:src
Changes by: r...@cvs.openbsd.org2015/02/07 18:30:09

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

Log message:
Use ebuf[ERRBUFSIZE] instead of ebuf[256] everywhere.

OK bluhm@



CVS: cvs.openbsd.org: src

2015-02-07 Thread Henning Brauer
CVSROOT:/cvs
Module name:src
Changes by: henn...@cvs.openbsd.org 2015/02/07 18:29:19

Modified files:
sys/net: pf_norm.c 

Log message:
pf normalization code was in dire need of style normalization.
ok mpi pelikan



CVS: cvs.openbsd.org: src

2015-02-07 Thread Kenneth R Westerback
CVSROOT:/cvs
Module name:src
Changes by: k...@cvs.openbsd.org2015/02/07 18:20:40

Modified files:
sbin/dhclient  : kroute.c 

Log message:
Get rid of a bunch of memset()'s where struct variables and arrays
are clearly properly initialized in the same area. Prompted by the
recent shrinkage of most imsg structs.



CVS: cvs.openbsd.org: src

2015-02-07 Thread Masao Uebayashi
CVSROOT:/cvs
Module name:src
Changes by: uebay...@cvs.openbsd.org2015/02/07 17:34:45

Modified files:
sys/arch/mips64/mips64: trap.c 

Log message:
Give up tracing if RA is corrupted.  OK miod@



CVS: cvs.openbsd.org: src

2015-02-07 Thread Masao Uebayashi
CVSROOT:/cvs
Module name:src
Changes by: uebay...@cvs.openbsd.org2015/02/07 17:30:20

Modified files:
sys/arch/mips64/mips64: db_machdep.c 

Log message:
Style.



CVS: cvs.openbsd.org: src

2015-02-07 Thread Masao Uebayashi
CVSROOT:/cvs
Module name:src
Changes by: uebay...@cvs.openbsd.org2015/02/07 17:15:23

Modified files:
.  : Makefile.cross 
libexec/ld.so  : Makefile 

Log message:
Fix cross-build.  OK jsing@ miod@ guenther@ deraadt@



CVS: cvs.openbsd.org: src

2015-02-07 Thread Reyk Floeter
CVSROOT:/cvs
Module name:src
Changes by: r...@cvs.openbsd.org2015/02/07 17:01:00

Modified files:
usr.sbin/httpd : httpd.c logger.c parse.y server_file.c 
 server_http.c 

Log message:
spacing



CVS: cvs.openbsd.org: src

2015-02-07 Thread Reyk Floeter
CVSROOT:/cvs
Module name:src
Changes by: r...@cvs.openbsd.org2015/02/07 16:59:28

Modified files:
usr.sbin/httpd : server_http.c 

Log message:
spacing



CVS: cvs.openbsd.org: src

2015-02-07 Thread Reyk Floeter
CVSROOT:/cvs
Module name:src
Changes by: r...@cvs.openbsd.org2015/02/07 16:56:02

Modified files:
usr.sbin/httpd : config.c httpd.h server.c 

Log message:
Remove server_load_file() in favor of tls_load_file(3)



CVS: cvs.openbsd.org: src

2015-02-07 Thread David Gwynne
CVSROOT:/cvs
Module name:src
Changes by: d...@cvs.openbsd.org2015/02/07 16:54:24

Modified files:
share/man/man9 : Makefile 

Log message:
jmc reminded me that if we document new functions we should link them up



CVS: cvs.openbsd.org: src

2015-02-07 Thread Ted Unangst
CVSROOT:/cvs
Module name:src
Changes by: t...@cvs.openbsd.org2015/02/07 16:49:00

Modified files:
share/misc : inter.phone 

Log message:
use a better example for the US



CVS: cvs.openbsd.org: src

2015-02-07 Thread Reyk Floeter
CVSROOT:/cvs
Module name:src
Changes by: r...@cvs.openbsd.org2015/02/07 16:47:59

Modified files:
lib/libtls : shlib_version 

Log message:
Added tls_load_file()



CVS: cvs.openbsd.org: src

2015-02-07 Thread Reyk Floeter
CVSROOT:/cvs
Module name:src
Changes by: r...@cvs.openbsd.org2015/02/07 16:45:06

Modified files:
lib/libtls : Makefile tls_init.3 

Log message:
Add manpage bits for tls_load_file() and tls_accept_socket().

The tls_accept_socket() has been previously removed because the API is
not fixed yet; but it is also already used by httpd(8) and spamd(8) so
it is time to add it again and eventually change it later.

OK tedu@



CVS: cvs.openbsd.org: src

2015-02-07 Thread Nicholas Marriott
CVSROOT:/cvs
Module name:src
Changes by: n...@cvs.openbsd.org2015/02/07 16:43:41

Modified files:
usr.bin/tmux   : colour.c 

Log message:
Check for \0 in the right place, from J Raynor.



CVS: cvs.openbsd.org: src

2015-02-07 Thread Ted Unangst
CVSROOT:/cvs
Module name:src
Changes by: t...@cvs.openbsd.org2015/02/07 16:35:27

Modified files:
sbin/pfctl : pfctl_parser.c 

Log message:
parse debug levels with strtonum, so that debug 1banana doesn't parse.
ok mikeb



CVS: cvs.openbsd.org: src

2015-02-07 Thread Miod Vallat
CVSROOT:/cvs
Module name:src
Changes by: m...@cvs.openbsd.org2015/02/07 16:30:13

Modified files:
sys/arch/vax/vax: db_disasm.h machdep.c 

Log message:
typos



CVS: cvs.openbsd.org: src

2015-02-07 Thread Miod Vallat
CVSROOT:/cvs
Module name:src
Changes by: m...@cvs.openbsd.org2015/02/07 16:29:29

Modified files:
sys/arch/sparc/dev: fb.c 

Log message:
Misplaced #endif



CVS: cvs.openbsd.org: src

2015-02-07 Thread Reyk Floeter
CVSROOT:/cvs
Module name:src
Changes by: r...@cvs.openbsd.org2015/02/07 16:25:37

Modified files:
lib/libtls : tls.h tls_util.c 

Log message:
Add tls_load_file() as a helper to load certificates or encrypted keys
into memory.  This can be used for tls_config_set_ca_mem(),
tls_config_set_cert_mem() or tls_config_set_key_mem().

With input from jsing@, tedu@ and henning@

OK tedu@



CVS: cvs.openbsd.org: src

2015-02-07 Thread Miod Vallat
CVSROOT:/cvs
Module name:src
Changes by: m...@cvs.openbsd.org2015/02/07 16:23:03

Modified files:
sys/arch/amd64/stand/cdbr: Makefile 

Log message:
Add the .orig file to CLEANFILES



CVS: cvs.openbsd.org: src

2015-02-07 Thread Miod Vallat
CVSROOT:/cvs
Module name:src
Changes by: m...@cvs.openbsd.org2015/02/07 15:30:25

Modified files:
lib/libssl/src/crypto/asn1: asn1_lib.c 

Log message:
Don't leak addresses in error messages.



CVS: cvs.openbsd.org: src

2015-02-07 Thread Theo de Raadt
CVSROOT:/cvs
Module name:src
Changes by: dera...@cvs.openbsd.org 2015/02/07 15:19:01

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

Log message:
use strtonum() instead of atoi(); ok bluhm



CVS: cvs.openbsd.org: src

2015-02-07 Thread Miod Vallat
CVSROOT:/cvs
Module name:src
Changes by: m...@cvs.openbsd.org2015/02/07 15:16:52

Modified files:
sys/arch/arm/include: apmvar.h 
sys/arch/sparc/include: apmvar.h 
sys/arch/sparc64/include: apmvar.h 

Log message:
Oh well, APM_USER_HIBERNATE_REQ being used in MI code, needs to be defined
in all MD apmvar.h.



CVS: cvs.openbsd.org: src

2015-02-07 Thread Miod Vallat
CVSROOT:/cvs
Module name:src
Changes by: m...@cvs.openbsd.org2015/02/07 15:14:43

Modified files:
sys/arch/loongson/include: apmvar.h 

Log message:
APM_USER_HIBERNATE_REQ here too.



CVS: cvs.openbsd.org: src

2015-02-07 Thread Martin Pieuchot
CVSROOT:/cvs
Module name:src
Changes by: m...@cvs.openbsd.org2015/02/07 14:21:44

Modified files:
sys/dev/usb: if_urtwn.c 

Log message:
Fix a logic error when enabling MAC and reset the checksum report bit
before loading page, from FreBSD r262822 and r263154.

ok stsp@



CVS: cvs.openbsd.org: www

2015-02-07 Thread Stuart Henderson
CVSROOT:/cvs
Module name:www
Changes by: st...@cvs.openbsd.org   2015/02/07 13:35:31

Modified files:
build/mirrors  : openssh-portable.html.head 

Log message:
sync source file with change made to generated file



CVS: cvs.openbsd.org: src

2015-02-07 Thread Stefan Sperling
CVSROOT:/cvs
Module name:src
Changes by: s...@cvs.openbsd.org2015/02/07 12:04:41

Modified files:
sys/dev/pci: if_iwm.c 

Log message:
Don't panic on unhandled net80211 state transitions in iwm(4).
Other drivers don't do this either.



CVS: cvs.openbsd.org: src

2015-02-07 Thread Doug Hogan
CVSROOT:/cvs
Module name:src
Changes by: d...@cvs.openbsd.org2015/02/07 11:53:55

Modified files:
lib/libssl/src/ssl: t1_enc.c 

Log message:
Remove useless variables and use the values directly.

>From OpenSSL commit 3d47c1d331fdc7574d2275cda1a630ccdb624b08.

ok miod@, jsing@



CVS: cvs.openbsd.org: src

2015-02-07 Thread Jason McIntyre
CVSROOT:/cvs
Module name:src
Changes by: j...@cvs.openbsd.org2015/02/07 11:52:35

Modified files:
usr.bin/make   : main.c 

Log message:
sync usage(); ok espie



CVS: cvs.openbsd.org: src

2015-02-07 Thread Jason McIntyre
CVSROOT:/cvs
Module name:src
Changes by: j...@cvs.openbsd.org2015/02/07 11:05:57

Modified files:
libexec/spamd  : spamd.8 

Log message:
put -G and it's args back onto one line in SYNOPSIS, to avoid having mandoc
split it; while here, zap trailing whitespace;



CVS: cvs.openbsd.org: src

2015-02-07 Thread Ingo Schwarze
CVSROOT:/cvs
Module name:src
Changes by: schwa...@cvs.openbsd.org2015/02/07 09:39:44

Modified files:
usr.bin/mandoc : mdoc_macro.c 
regress/usr.bin/mandoc/mdoc/Bk: Makefile 
Added files:
regress/usr.bin/mandoc/mdoc/Bk: broken.in broken.out_ascii 
broken.out_lint 

Log message:
Closing a block validates it, which may end up deleting it,
so if we are in a loop over blocks, cleanly restart the loop
rather than risking use after free; found by jsg@ with afl.



CVS: cvs.openbsd.org: src

2015-02-07 Thread Anthony J. Bentley
CVSROOT:/cvs
Module name:src
Changes by: bent...@cvs.openbsd.org 2015/02/07 09:15:01

Modified files:
share/misc : na.phone 

Log message:
Update New Mexico area codes (the change happened in 2006).



CVS: cvs.openbsd.org: xenocara

2015-02-07 Thread Todd Fries
CVSROOT:/cvs
Module name:xenocara
Changes by: t...@cvs.openbsd.org2015/02/07 07:23:36

Modified files:
distrib/sets/lists/xbase: md.amd64 md.i386 

Log message:
sync



CVS: cvs.openbsd.org: src

2015-02-07 Thread Doug Hogan
CVSROOT:/cvs
Module name:src
Changes by: d...@cvs.openbsd.org2015/02/07 07:21:41

Modified files:
lib/libssl/src/crypto/pkcs7: pk7_smime.c 

Log message:
Don't support very old versions of Netscape (is there any other kind?).

Apparently "very old" Netscape versions illegally included empty content
and a detached signature.  OpenSSL removed the #if 0 that protected
these users and added a new button OPENSSL_DONT_SUPPORT_OLD_NETSCAPE.
It appears to be off by default to keep the hopes and dreams of very old
Netscape users alive.  We decided to be rebels and disable support.

If you installed your browser from floppy disks, it's time to upgrade!

Based on OpenSSL commit: 02a938c953b3e1ced71d9a832de1618f907eb96d

ok tedu@, miod@, jsing@



CVS: cvs.openbsd.org: src

2015-02-07 Thread Marc Espie
CVSROOT:/cvs
Module name:src
Changes by: es...@cvs.openbsd.org   2015/02/07 06:35:00

Modified files:
usr.bin/make   : make.1 

Log message:
document -C



CVS: cvs.openbsd.org: src

2015-02-07 Thread Marc Espie
CVSROOT:/cvs
Module name:src
Changes by: es...@cvs.openbsd.org   2015/02/07 06:32:12

Modified files:
usr.bin/make   : main.c 

Log message:
add support for the popular -C option, in the least intrusive way possible:
parse thru parameters for -C upfront, and then we can setup CURDIR/OBJDIR
so as not to disturb anything else.

okay millert@, "makes sense" guenther@



CVS: cvs.openbsd.org: src

2015-02-07 Thread Doug Hogan
CVSROOT:/cvs
Module name:src
Changes by: d...@cvs.openbsd.org2015/02/07 06:19:15

Modified files:
lib/libssl/src/crypto: crypto.h 
lib/libssl/src/crypto/asn1: a_gentm.c a_strex.c a_time.c 
asn1_lib.c asn1_par.c t_x509.c 
tasn_prn.c 
lib/libssl/src/crypto/bio: bf_nbio.c 
lib/libssl/src/crypto/bn: bn.h 
lib/libssl/src/crypto/conf: conf.h conf_api.c conf_def.c 
conf_lib.c 
lib/libssl/src/crypto/des: cfb64ede.c des.h ofb64ede.c 
   xcbc_enc.c 
lib/libssl/src/crypto/dh: dh_check.c dh_gen.c 
lib/libssl/src/crypto/dso: dso.h dso_dlfcn.c 
lib/libssl/src/crypto/ec: ec_curve.c ec_mult.c 
lib/libssl/src/crypto/ecdh: ech_lib.c ech_locl.h 
lib/libssl/src/crypto/ecdsa: ecs_lib.c 
lib/libssl/src/crypto/engine: eng_all.c eng_list.c eng_padlock.c 
  tb_store.c 
lib/libssl/src/crypto/evp: bio_b64.c encode.c evp.h p_sign.c 
lib/libssl/src/crypto/idea: idea_lcl.h 
lib/libssl/src/crypto/modes: gcm128.c 
lib/libssl/src/crypto/pkcs12: p12_key.c 
lib/libssl/src/crypto/pkcs7: pk7_doit.c 
lib/libssl/src/crypto/stack: stack.c 
lib/libssl/src/crypto/x509: x509_vfy.h 
lib/libssl/src/crypto/x509v3: pcy_lib.c pcy_tree.c v3_info.c 
  v3_utl.c 

Log message:
Delete a lot of #if 0 code in libressl.

There are a few instances where #if 1 is removed but the code remains.

Based on the following OpenSSL commits.  Some of the commits weren't
strictly deletions so they are going to be split up into separate commits.

6f91b017bbb7140f816721141ac156d1b828a6b3
3d47c1d331fdc7574d2275cda1a630ccdb624b08
dfb56425b68314b2b57e17c82c1df42e7a015132
c8fa2356a00cbaada8963f739e5570298311a060
f16a64d11f55c01f56baa62ebf1dec7f8fe718cb
9ccc00ef6ea65567622e40c49aca43f2c6d79cdb
02a938c953b3e1ced71d9a832de1618f907eb96d
75d0ebef2aef7a2c77b27575b8da898e22f3ccd5
d6fbb194095312f4722c81c9362dbd0de66cb656
6f1a93ad111c7dfe36a09a976c4c009079b19ea1
1a5adcfb5edfe23908b350f8757df405b0f5f71f
8de24b792743d11e1d5a0dcd336a49368750c577
a2b18e657ea1a932d125154f4e13ab2258796d90
8e964419603d2478dfb391c66e7ccb2dcc9776b4
32dfde107636ac9bc62a5b3233fe2a54dbc27008

input + ok jsing@, miod@, tedu@



CVS: cvs.openbsd.org: src

2015-02-07 Thread Mike Larkin
CVSROOT:/cvs
Module name:src
Changes by: mlar...@cvs.openbsd.org 2015/02/07 06:01:10

Modified files:
share/misc : na.phone 

Log message:
Typo, discussed with deraadt@



CVS: cvs.openbsd.org: src

2015-02-07 Thread Theo de Raadt
CVSROOT:/cvs
Module name:src
Changes by: dera...@cvs.openbsd.org 2015/02/07 05:26:47

Modified files:
distrib/sets/lists/base: md.alpha md.amd64 md.armish md.armv7 
 md.aviion md.hppa md.hppa64 md.i386 
 md.landisk md.loongson md.luna88k 
 md.macppc md.octeon md.sgi md.socppc 
 md.sparc md.sparc64 md.zaurus 
distrib/sets/lists/comp: mi 

Log message:
sync



CVS: cvs.openbsd.org: src

2015-02-07 Thread Ted Unangst
CVSROOT:/cvs
Module name:src
Changes by: t...@cvs.openbsd.org2015/02/07 05:26:31

Modified files:
share/misc : na.phone 

Log message:
typo caught by the ever attentive mlarkin



CVS: cvs.openbsd.org: src

2015-02-07 Thread Kenneth R Westerback
CVSROOT:/cvs
Module name:src
Changes by: k...@cvs.openbsd.org2015/02/07 03:49:09

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

Log message:
Close appropriate ends of pfpipe. Lets pf table process die when dhcpd
does.

Pointed out by Bertrand Provost.

ok henning@



CVS: cvs.openbsd.org: src

2015-02-07 Thread Henning Brauer
CVSROOT:/cvs
Module name:src
Changes by: henn...@cvs.openbsd.org 2015/02/07 03:45:19

Modified files:
libexec/spamd  : Makefile spamd.8 spamd.c 

Log message:
add STARTTLS support, using the shiny libtls.
Rationale: when you publish DANE records for certificate pinning, you MUST
offer TLS on the indicated service. Not offering TLS is verboten since
that would re-open the door for a MitM. This is obviously fundamentally
incompatible with having spamd in front of your mailservers - spamd kinda
is a MitM here, but intentional and utterly valid.
DANE is desirable because it allows one to not have to trust the broken
SSL CA model, and, depending on the mode chosen, even show the SSL cert
mafia the middle finger by not needing them at all.
ok reyk jsing bob



CVS: cvs.openbsd.org: src

2015-02-07 Thread Kenneth R Westerback
CVSROOT:/cvs
Module name:src
Changes by: k...@cvs.openbsd.org2015/02/07 03:08:06

Modified files:
sbin/dhclient  : dhclient.c kroute.c privsep.c privsep.h 

Log message:
Add support for interface-mtu (option 26).

Original request+diff from matthew@

ok dlg@



CVS: cvs.openbsd.org: src

2015-02-07 Thread Theo de Raadt
CVSROOT:/cvs
Module name:src
Changes by: dera...@cvs.openbsd.org 2015/02/07 03:07:15

Modified files:
usr.bin/tip: Makefile tip.c tip.h 
Removed files:
usr.bin/tip: cu.c 

Log message:
remove unused cu(1) support in tip; it is supplied as a seperate
simpler binary written by nicm since 5.4
ok jsing dlg



CVS: cvs.openbsd.org: src

2015-02-07 Thread Joel Sing
CVSROOT:/cvs
Module name:src
Changes by: js...@cvs.openbsd.org   2015/02/07 02:50:09

Modified files:
lib/libtls : tls.c tls_client.c tls_internal.h tls_server.c 

Log message:
Convert tls_connect_fds() and tls_accept_socket() to the new OpenSSL error
dance handling code. This means that we get slightly useful messages when
a TLS connection or accept fails.

Requested by reyk@



CVS: cvs.openbsd.org: src

2015-02-07 Thread Henning Brauer
CVSROOT:/cvs
Module name:src
Changes by: henn...@cvs.openbsd.org 2015/02/07 02:15:25

Modified files:
sys/net: pf.c 

Log message:
pf synproxy will do the 3WHS on behalf of the target machine, and once
the 3WHS is completed, establish the backend connection. The trigger
for "3WHS completed" is the reception of the first ACK. However, we
should not proceed if that ACK also has RST or FIN set.
ACK+RST part pointed out by Kojedzinszky Richard 
ok mikeb dlg phessler claudio



CVS: cvs.openbsd.org: src

2015-02-07 Thread Joel Sing
CVSROOT:/cvs
Module name:src
Changes by: js...@cvs.openbsd.org   2015/02/07 01:56:39

Modified files:
lib/libssl/src/ssl: d1_srvr.c s3_srvr.c 

Log message:
Convert several of the server side handshake functions to the new handshake
message handling routines.

ok miod@



CVS: cvs.openbsd.org: src

2015-02-07 Thread Ted Unangst
CVSROOT:/cvs
Module name:src
Changes by: t...@cvs.openbsd.org2015/02/07 01:52:37

Modified files:
lib/libc/sys   : execve.2 

Log message:
document restriction on argv having one element



CVS: cvs.openbsd.org: src

2015-02-07 Thread Ted Unangst
CVSROOT:/cvs
Module name:src
Changes by: t...@cvs.openbsd.org2015/02/07 01:47:49

Modified files:
sys/kern   : kern_exec.c 

Log message:
forbid execve() with argc == 0. prompted by a millert email.
ok deraadt miod



CVS: cvs.openbsd.org: src

2015-02-07 Thread Doug Hogan
CVSROOT:/cvs
Module name:src
Changes by: d...@cvs.openbsd.org2015/02/07 01:44:49

Modified files:
lib/libc/gen   : vis.3 

Log message:
Add examples for stravis() and strnvis() to vis.3.

Show the best ways to encode a dynamic and static buffer.

input + ok schwarze@, ok jmc@



CVS: cvs.openbsd.org: src

2015-02-07 Thread Miod Vallat
CVSROOT:/cvs
Module name:src
Changes by: m...@cvs.openbsd.org2015/02/07 01:31:45

Modified files:
sys/arch/macppc/include: apmvar.h 

Log message:
Need to define APM_USER_HIBERNATE_REQ here too.



CVS: cvs.openbsd.org: src

2015-02-07 Thread Miod Vallat
CVSROOT:/cvs
Module name:src
Changes by: m...@cvs.openbsd.org2015/02/07 01:21:24

Modified files:
sys/kern   : vfs_bio.c 
sys/uvm: uvm_extern.h uvm_init.c uvm_km.c uvm_km.h 
 uvm_param.h 

Log message:
Introduce VM_KERNEL_SPACE_SIZE as a replacement for
(VM_MAX_KERNEL_ADDRESS - VM_MIN_KERNEL_ADDRESS). This will allow these to no
longer be constants in the future.

ok guenther@



CVS: cvs.openbsd.org: src

2015-02-07 Thread Jason McIntyre
CVSROOT:/cvs
Module name:src
Changes by: j...@cvs.openbsd.org2015/02/07 01:12:30

Modified files:
usr.sbin/httpd : httpd.conf.5 

Log message:
double word fix;