Re: SHA2 in APR

2013-11-06 Thread Nick Kew
On 6 Nov 2013, at 07:37, Dirkjan Ochtman wrote: On Wed, Oct 16, 2013 at 5:57 PM, Dirkjan Ochtman d...@apache.org wrote: Well, the alternatives are (a) relying on an extra dependency for my Apache module, probably NSS or OpenSSL or both, or (b) pulling in a semi-random copy of SHA2 from the

testdup test fails when compiled in debug mode on Windows

2013-11-06 Thread Mike Rumph
The apr_file_dup2() function in apr/file_io/win32/filedup.c calls _commit() for standard file handles 0, 1 and 2. The _commit() function will assert with the message Invalid file descriptor. File possibly closed by a different thread or return a value of -1 if the file handle refers to a

Re: testdup test fails when compiled in debug mode on Windows

2013-11-06 Thread Jeff Trawick
On Wed, Nov 6, 2013 at 2:06 PM, Mike Rumph mike.ru...@oracle.com wrote: The apr_file_dup2() function in apr/file_io/win32/filedup.c calls _commit() for standard file handles 0, 1 and 2. The _commit() function will assert with the message Invalid file descriptor. File possibly closed by a

Re: testdup test fails when compiled in debug mode on Windows

2013-11-06 Thread Jeff Trawick
On Wed, Nov 6, 2013 at 2:13 PM, Jeff Trawick traw...@gmail.com wrote: On Wed, Nov 6, 2013 at 2:06 PM, Mike Rumph mike.ru...@oracle.com wrote: The apr_file_dup2() function in apr/file_io/win32/filedup.c calls _commit() for standard file handles 0, 1 and 2. The _commit() function will assert

Re: SHA2 in APR

2013-11-06 Thread Dirkjan Ochtman
On Wed, Nov 6, 2013 at 10:33 AM, Nick Kew n...@apache.org wrote: An even briefer look just now in response to your ping suggests I was missing your point, and that all you're asking for is that random/unix/sha2.h be exposed in the public API. Is that correct? That's right, yes. I would

Re: testdup test fails when compiled in debug mode on Windows

2013-11-06 Thread Mike Rumph
On 11/6/2013 1:06 PM, Jeff Trawick wrote: I just played with _commit() on stdin a bit. It turns out that _commit(0) fails if stdin is redirected (main.exe somefile) but works if stdin is a tty. That's the opposite of _commit(1 or 2). But I don't see how _commit(0) makes sense anyway, so

Re: Which of y'all are working on un-APR-izing gen_test_char, and how will the rest of us know if it is stalled and needs help?

2013-11-06 Thread William A. Rowe Jr.
On Wed, 06 Nov 2013 02:20:00 +0100 Guenter Knauf fua...@apache.org wrote: Hi, On 05.11.2013 22:51, Graham Leggett wrote: On 05 Nov 2013, at 11:04 PM, Jeff Trawick traw...@gmail.com wrote: TIA! (ping) If nobody in the gen_test_char-with-traditional-Windows-build sub-thread knows what

Re: Link errors in apr_atomic with VS2013

2013-11-06 Thread William A. Rowe Jr.
On Tue, 5 Nov 2013 17:49:22 -0800 (PST) Arsen Chaloyan achalo...@yahoo.com wrote: These errors are caused by the use of the new Platform Toolset v120 which gets installed with VS2013. More specifically, the problem is in the function cast wrappers defined in apr_atomic.c and used only for

Re: testdup test fails when compiled in debug mode on Windows

2013-11-06 Thread William A. Rowe Jr.
On Wed, 06 Nov 2013 16:07:37 -0800 Mike Rumph mike.ru...@oracle.com wrote: On 11/6/2013 1:06 PM, Jeff Trawick wrote: I just played with _commit() on stdin a bit. It turns out that _commit(0) fails if stdin is redirected (main.exe somefile) but works if stdin is a tty. That's the

Re: I'm planning to TR apr-util 1.5.3 at same time as apr 1.5.0

2013-11-06 Thread William A. Rowe Jr.
On Fri, 1 Nov 2013 10:17:43 -0400 Jeff Trawick traw...@gmail.com wrote: There is a need to consume the cmake support downstream, and I see a few other fixes as well. (Please no apr-util 1.6 and corresponding rush to cram a bunch of stuff in there like I and others did with apr 1.5 ;) That

Re: SHA2 in APR

2013-11-06 Thread William A. Rowe Jr.
On Wed, 16 Oct 2013 16:17:33 +0100 Nick Kew n...@apache.org wrote: On 10 Oct 2013, at 21:49, Dirkjan Ochtman wrote: The reason I've recently gotten interested in APR (and SHA support) is my work on https://github.com/mozilla/mod_authn_persona. OK, that raises two questions: 1. From