Re: ftp: avoid casts in networking functions

2016-08-21 Thread Todd C. Miller
On Sun, 21 Aug 2016 14:23:33 -0600, "Todd C. Miller" wrote: > We could get rid of struct sockinet entirely but I wasn't sure it > was worth it. Here's a diff that replaces sockunion with the more common sockaddr_union. - todd Index: usr.bin/ftp/ftp.c

Re: ld.so initarray support

2016-08-21 Thread Philip Guenther
On Fri, 19 Aug 2016, Mark Kettenis wrote: > > From: Philip Guenther > > Date: Thu, 18 Aug 2016 21:09:10 -0700 > > > > On Thursday, August 18, 2016, Mark Kettenis wrote: > > ... > > > > > > > > There is a functional change here. Our current ld.so

ftp: avoid casts in networking functions

2016-08-21 Thread Todd C. Miller
This adds struct sockaddr to sockunion so we can just use _sa instead of (struct sockaddr *) No functional difference but it lets the compiler warn when appropriate. The diff also sync the types in struct sockinet to match the first three fields of struct sockaddr_in. We could get rid of struct

Re: add option for disabling TLS session tickets to libttls

2016-08-21 Thread Ted Unangst
Andreas Bartelt wrote: > Since the use of TLS session tickets potentially interferes with forward > secrecy on a per-session basis, I'd personally prefer an opt-in in > libtls as well as in httpd with regard to its usage. However, such a > semantic change would not be transparent. Any opinions

Re: bigger mbuf clusters for sosend()

2016-08-21 Thread Hrvoje Popovski
On 13.8.2016. 10:59, Claudio Jeker wrote: > This diff refactors the uio to mbuf code to make use of bigger buffers (up > to 64k) and also switches the MCLGET to use M_WAIT like the MGET calls in > the same function. I see no point in not waiting for a cluster and instead > chain lots of mbufs

Re: fgetwln(3) fails to report most encoding errors

2016-08-21 Thread Jeremie Courreges-Anglas
Ingo Schwarze writes: > Hi, > > did i mention already that libc wide character code is buggy as hell? > I looked at another very simple function of only 30 lines of code > and promptly found another bug. > > The fgetwln(3) manual is quite explicit that the "fgetwln() function >

add option for disabling TLS session tickets to libttls

2016-08-21 Thread Andreas Bartelt
Hello, LibreSSL enables the use of the TLS session ticket extension [RFC 5077, or, according to comments in source code its older version 4507] by default, and libtls currently doesn't provide an API call for disabling this feature. Consequently, OpenBSD's httpd has TLS session tickets

OFW/FDT clock "framework"

2016-08-21 Thread Mark Kettenis
Here is an attempt to handle the clocks on armv7 in a similar way as we do with gpio, pinctrl and and regulators. Currently the API is fairly limited. There is an interface to get the frequency at which a clock is running and there is an interface to enable a clock. Some devices have multiple

fgetwln(3) fails to report most encoding errors

2016-08-21 Thread Ingo Schwarze
Hi, did i mention already that libc wide character code is buggy as hell? I looked at another very simple function of only 30 lines of code and promptly found another bug. The fgetwln(3) manual is quite explicit that the "fgetwln() function may also fail ... for any of the errors specified for