[PATCH] CryptAcquireContext and CryptGenRandom returns zero (FALSE) if fails.

2014-11-10 Thread dongsheng . song
From: Dongsheng Song Please see http://msdn.microsoft.com/en-us/library/windows/desktop/aa379886(v=vs.85).aspx and http://msdn.microsoft.com/en-us/library/windows/desktop/aa379942%28v=vs.85%29.aspx for more details. --- src/lib/libcrypto/crypto/getentropy_win.c | 6 +++--- 1 file changed, 3 ins

tweak cpu downscaling

2014-11-10 Thread Ted Unangst
don't back down quite so quick. let the system be idle for 5 ticks before clocking down. Index: sched_bsd.c === RCS file: /cvs/src/sys/kern/sched_bsd.c,v retrieving revision 1.38 diff -u -p -r1.38 sched_bsd.c --- sched_bsd.c 3 Nov 201

Re: vi: remove workarounds for other systems

2014-11-10 Thread Ted Unangst
On Mon, Nov 10, 2014 at 13:51, Anthony J. Bentley wrote: > Martin Natano writes: >> Index: common/recover.c >> === >> RCS file: /cvs/src/usr.bin/vi/common/recover.c,v >> retrieving revision 1.15 >> diff -u -r1.15 recover.c >> --- commo

Re: vi: remove workarounds for other systems

2014-11-10 Thread Anthony J. Bentley
Martin Natano writes: > Index: common/recover.c > === > RCS file: /cvs/src/usr.bin/vi/common/recover.c,v > retrieving revision 1.15 > diff -u -r1.15 recover.c > --- common/recover.c 27 Oct 2009 23:59:47 - 1.15 > +++ common/re

Re: rwho on OpenBSD 5.6

2014-11-10 Thread Theo de Raadt
>On Sun, Nov 09, 2014 at 23:44, Nick Holland wrote: >> own. You will have a lot of testing to do. You will note that while >> deleting rwhod was undoubtedly exciting for developers, actually putting >> it on current.html -- so I could put it on upgrade56.html -- was not >> nearly as much fun and

Re: rwho on OpenBSD 5.6

2014-11-10 Thread Ted Unangst
On Sun, Nov 09, 2014 at 23:44, Nick Holland wrote: > own. You will have a lot of testing to do. You will note that while > deleting rwhod was undoubtedly exciting for developers, actually putting > it on current.html -- so I could put it on upgrade56.html -- was not > nearly as much fun and never

Re: 5.6 Icmp6 checksum / pf

2014-11-10 Thread Bastien Durel
Le 10/11/2014 14:54, Mike Belopuhov a écrit : On Sun, Nov 09, 2014 at 10:17 +0100, Bastien Durel wrote: Hi, I recently upgraded to 5.6, and got problems with icmpv6 I have a gif tunnel for IPv6: [root@fremen root]# ifconfig gif0 gif0: flags=8051 mtu 1280 description: Sixxs pr

vi: remove workarounds for other systems

2014-11-10 Thread Martin Natano
There are two workarounds for a broken libc on linux, one for a missing MAXHOSTNAMELEN and one "portable" reimplementation of strsignal (with another name though). None of those are necessary for OpenBSD. See diff below. cheers, natano Index: common/exf.c ===

vi: remove ipc left-overs

2014-11-10 Thread Martin Natano
There is some left-over code from the ipc component, which has been removed. See diff below; no binary change. cheers, natano Index: cl/cl_main.c === RCS file: /cvs/src/usr.bin/vi/cl/cl_main.c,v retrieving revision 1.20 diff -u -r1

Re: LibreSSL GOST code cleanup

2014-11-10 Thread Miod Vallat
> > The following diff attempts to polish the GOST code in libcrypto and add > > many missing error checks (probably not exhaustive, but a good start). > > I knew that I'm not perfect, but I didn't know the depth of my > imperfectness... Well, most of these shortcomings are also present in the `

Re: 5.6 Icmp6 checksum / pf

2014-11-10 Thread Mike Belopuhov
On Sun, Nov 09, 2014 at 10:17 +0100, Bastien Durel wrote: > Hi, > > I recently upgraded to 5.6, and got problems with icmpv6 > > I have a gif tunnel for IPv6: > [root@fremen root]# ifconfig gif0 >

tmux(1): make repeated jumps with [fFtT,;] behave as in vi

2014-11-10 Thread Theo Buehler
There currently are a number of differences between tmux's jump commands [fFtT,;] in copy mode and the behavior of the corresponding keys in vi: 1. The repeat count is not reset after a jump with [fFtT], but it is reset after the `repeat movement' keys [;,]. For example, in tmux `3fa;;' jum

tmux(1): remove -d option from optstring

2014-11-10 Thread Theo Buehler
The -d option in tmux was removed five years ago in revision 1.52 of tmux.c. Also remove it from the optstring argument to getopt(): Index: tmux.c === RCS file: /cvs/src/usr.bin/tmux/tmux.c,v retrieving revision 1.132 diff -u -p -r1.

Re: rwho on OpenBSD 5.6

2014-11-10 Thread Adam
Useful and clean. Just like they are at the moment. Personally, I would rather it be complete with pitfalls that may be encountered during an upgrade, that need manual resolution. As far as I am aware, deleting some files that require manual execution in the first place isn't much of a catastroph

vi: config.h cleanup

2014-11-10 Thread Martin Natano
Let's have a look at build/config.h: The comments at the top are misleading: the file is not automatically generated by configure, and config.h.in doesn't exist. The following constants are used to prevent conditional declaration of some standard libc functions: HAVE_{MMAP,BSEARCH,GETHOSTNAME,GET