OpenCVS bug on ssh 'broken pipe' error

2016-06-04 Thread Dongsheng Song
When ssh 'broken pipe' error occurred, cvs quit exit error 0. Here is my test script: # cat opencvs.sh #!/bin/ksh cd /usr/src echo "[`/bin/date "+%Y-%m-%dT%H:%M:%S%z"`] start cvs update /usr/src/" while true; do cvs -q -d anon...@anoncvs.comstyle.com:/cvs up -Pd rc=$? echo $rc if

Re: syslog over TLS

2015-01-16 Thread Dongsheng Song
On Fri, Jan 16, 2015 at 8:46 AM, Alexander Bluhm wrote: > > - Wrong format. The TLS RFC requires length-message encoding, I > use message-newline inherited from TCP. Transmission of Syslog Messages over TCP (RFC 6587) prefer use 'octet-counting', not 'non-transparent-framing method'. http://t

Re: LibreSSL Windows port status update

2014-12-01 Thread Dongsheng Song
On Mon, Dec 1, 2014 at 2:25 PM, Brad Smith wrote: > There is a URL posted at the bottom of that page that points out how it > is broken and should not be used. > I don't think we must distinguish the timeout errors and connection errors in the OpenSSL(1) tool, report ‘connection failed (or timeou

Re: LibreSSL Windows port status update

2014-11-30 Thread Dongsheng Song
Cool ! I can see you do lot's of update on select->poll conversions. The code become more and more complex since you want it works more general. Can we use simply WSAPoll[1] instead ? -- #ifdef _WIN32 #define poll WSAPoll #endif -- [1] http://msdn.microsoft.com/en-us/library/windows/desktop/ms

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

2014-11-11 Thread Dongsheng Song
On Tue, Nov 11, 2014 at 10:17 PM, Brent Cook wrote: > Yes, this is an intentional design feature: fail fast if there is no entropy. > > I'm looking at your other patches and testing with mingw 3.1.0, but am > having to fix a number of minor build failures. > > Out of curiosity, what version are yo

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

2014-11-11 Thread Dongsheng Song
On Tue, Nov 11, 2014 at 9:56 PM, Brent Cook wrote: > Mystery solved! This patch fixed the exited immediately issue. When getentropy failed, LibReSSL will call _getentropy_fail, it call TerminateProcess(GetCurrentProcess(), 0) to exit.

[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

Re: LibreSSL: GOWindows support

2014-11-07 Thread Dongsheng Song
On Fri, Nov 7, 2014 at 11:07 PM, Brent Cook wrote: > >> On Nov 7, 2014, at 8:21 AM, Dongsheng Song wrote: >> >> I need some code changes for Windows support. >> e.g. >> >> --- a/src/lib/libssl/src/crypto/bio/bss_dgram.c >> +++ b/src/lib/libssl/s

LibreSSL: GOWindows support

2014-11-07 Thread Dongsheng Song
I need some code changes for Windows support. e.g. --- a/src/lib/libssl/src/crypto/bio/bss_dgram.c +++ b/src/lib/libssl/src/crypto/bio/bss_dgram.c @@ -57,13 +57,17 @@ * */ +#ifdef _WIN32 +#include +#else #include -#include - #include +#include +#endif + +#include #include -#include

Re: LibreSSL 2.0.3 released

2014-07-23 Thread Dongsheng Song
On Tue, Jul 22, 2014 at 10:01 AM, Bob Beck wrote: > > We have released an update, LibreSSL 2.0.3 - which should > be arriving in the LibreSSL directory of an OpenBSD mirror near > you very soon. > > This release includes a number of portability fixes based on the > the feedback we have received fr