Re: My client can not receive data in blocking mode

2019-09-27 Thread John Unsworth
You do not say what OS you are running on. Solaris 11 has a known problem with not reporting queued data. This was fixed by SRU-28. Regards, John Unsworth From: openssl-users on behalf of 路连峰 Sent: Monday, September 23, 2019 4:55 am To: openssl-users Subject

RE: OpenSSL 1.1.1b tests fail on Solaris - solution and possible fix

2019-05-16 Thread John Unsworth
Thanks. So in the meantime we can remove the DEFINE macros and the pragmas (or just the pragmas as we have done) to build the no-shared libraries. Regards, John. Originalmeddelande Från: Richard Levitte Skickat: 16 maj 2019 08:34:06 GMT-07:00 Till: John Unsworth Ämne: RE

RE: OpenSSL 1.1.1b tests fail on Solaris - solution and possible fix

2019-05-16 Thread John Unsworth
on Solaris - solution and possible fix On 5/16/19 6:46 AM, John Unsworth wrote: > In the absence of any steer from openssl gurus we will proceed by > removing the #pragmas in safestack.h and lhash.h while we build the > no-shared libraries on solaris. Hopefully someone will come up with a

RE: OpenSSL 1.1.1b tests fail on Solaris - solution and possible fix

2019-05-16 Thread John Unsworth
In the absence of any steer from openssl gurus we will proceed by removing the #pragmas in safestack.h and lhash.h while we build the no-shared libraries on solaris. Hopefully someone will come up with a proper fix at some point. Regards, John From: openssl-users On Behalf Of John Unsworth

OpenSSL 1.1.1b tests fail on Solaris - solution and possible fix

2019-05-15 Thread John Unsworth
ps that used the .h files (hard to avoid since they are basic crypto header files) but did not link with libcrypto.so. That library was explicitly loaded by the app, but the app would not start because of the missing symbols. See issues 6912 and 8102. Regards, John. John Unsworth |Meta-Directory

RE: OpenSSL 1.1.1b tests fail on Solaris - solution and possible fix

2019-05-14 Thread John Unsworth
ned(__SUNPRO_C) #pragma weak getisax in crypto\sparcv9cap.c so maybe that needs consideration too. Regards, John. -Original Message- From: openssl-users On Behalf Of John Unsworth Sent: 10 May 2019 16:23 To: openssl-users@openssl.org Subject: RE: OpenSSL 1.1.1b tests fail on Solaris - solut

RE: OpenSSL 1.1.1b tests fail on Solaris - solution

2019-05-12 Thread John Unsworth
originated from outside of Synchronoss. On 5/10/19 11:23 AM, John Unsworth wrote: > This seems to be caused by the ongoing saga documented I have this working flawlessly on S10 ... what is the issue : jupiter # /usr/local/bin/openssl version OpenSSL 1.1.1b 26 Feb 2019 dc

RE: OpenSSL 1.1.1b tests fail on Solaris - solution

2019-05-10 Thread John Unsworth
r openssl1.1.1. So, in 1.1.1b I can observe that OPENSSL_sk_new_null has been defined as below in safestack.h. pragma weak OPENSSL_sk_new_null Can this be related ? Am I missing anything while Configure ? <<<<<<<<<<<<<<< Regards, John. -Original Message- Fr

RE: OpenSSL 1.1.1b tests fail on Solaris

2019-05-09 Thread John Unsworth
nal Message- From: John Unsworth Sent: 09 May 2019 10:48 To: openssl-users@openssl.org Subject: RE: OpenSSL 1.1.1b tests fail on Solaris This is the build line for sanity test: rm -f test/sanitytest ${LDCMD:-cc} -xarch=v9 -xstrconst -Xa -xO5 -xdepend -m64 -xcode=pic32 -xldscope=hidden -L. -

RE: OpenSSL 1.1.1b tests fail on Solaris

2019-05-09 Thread John Unsworth
: -xarch=v9 is deprecated, use -m64 to create 64-bit programs Does it need -lssl? John -Original Message- From: openssl-users On Behalf Of John Unsworth Sent: 09 May 2019 10:13 To: openssl-users@openssl.org Subject: RE: OpenSSL 1.1.1b tests fail on Solaris CAUTION: This email originated from

RE: OpenSSL 1.1.1b tests fail on Solaris

2019-05-09 Thread John Unsworth
ail on Solaris CAUTION: This email originated from outside of Synchronoss. What is the output from: $ make V=1 TESTS=test_sanity test Matt On 08/05/2019 19:22, John Unsworth wrote: > I have build OpenSSL 1.1.1b 64 bit on Solaris SunOS 5.10 > Generic_Virtual sun4v sparc S

OpenSSL 1.1.1b tests fail on Solaris

2019-05-08 Thread John Unsworth
I have build OpenSSL 1.1.1b 64 bit on Solaris SunOS 5.10 Generic_Virtual sun4v sparc SUNW,T5140. ./Configure -lrt solaris64-sparcv9-cc no-shared -m64 -xcode=pic32 -xldscope=hidden It builds fine but all the tests fail, with or without no-asm. Can anyone help please? Here is the start of the

RE: SSL_read() returning SSL_ERROR_SYSCALL with errno 11 EAGAIN

2019-05-07 Thread John Unsworth
On Behalf Of John Unsworth Sent: 07 May 2019 09:06 To: openssl-users@openssl.org Subject: RE: SSL_read() returning SSL_ERROR_SYSCALL with errno 11 EAGAIN CAUTION: This email originated from outside of Synchronoss. Thanks, the mutex is tied to the SSL session and used for all calls (now

RE: SSL_read() returning SSL_ERROR_SYSCALL with errno 11 EAGAIN

2019-05-07 Thread John Unsworth
Thanks, the mutex is tied to the SSL session and used for all calls (now!). The good news is that moving SSL_get_error() into the same mutex unit as SSL_read() has solved the problem. Thank you for all your help and advice. Regards, John. John Unsworth |Meta-Directory Engineering and Support

Re: SSL_read() returning SSL_ERROR_SYSCALL with errno 11 EAGAIN

2019-05-03 Thread John Unsworth
Testing changed code. Regards John From: openssl-users on behalf of Matt Caswell Sent: Friday, May 3, 2019 10:16 am To: openssl-users@openssl.org Subject: Re: SSL_read() returning SSL_ERROR_SYSCALL with errno 11 EAGAIN CAUTION: This email originated from

RE: SSL_read() returning SSL_ERROR_SYSCALL with errno 11 EAGAIN

2019-05-02 Thread John Unsworth
ct: Re: SSL_read() returning SSL_ERROR_SYSCALL with errno 11 EAGAIN CAUTION: This email originated from outside of Synchronoss. On Thu, May 02, 2019 at 04:10:31PM +, John Unsworth wrote: > > Do you wait for the non-blocking connect to complete at this point? > We connect in blocking m

RE: SSL_read() returning SSL_ERROR_SYSCALL with errno 11 EAGAIN

2019-05-02 Thread John Unsworth
nal Message- From: openssl-users On Behalf Of Viktor Dukhovni Sent: 02 May 2019 15:56 To: openssl-users@openssl.org Subject: Re: SSL_read() returning SSL_ERROR_SYSCALL with errno 11 EAGAIN CAUTION: This email originated from outside of Synchronoss. > On May 2, 2019, at 5:56 AM, John Uns

RE: SSL_read() returning SSL_ERROR_SYSCALL with errno 11EAGAIN

2019-05-02 Thread John Unsworth
Openssl 1.1.0h We have implemented the workaround - if SSL_ERROR_SYSCALL and errno=EAGAIN then treat as WANT_READ/WANT_WRITE. This (seems to) work fine. No subsequent problems, everything continues correctly. Regards, John -Original Message- From: openssl-users On Behalf Of Matt

RE: SSL_read() returning SSL_ERROR_SYSCALL with errno 11 EAGAIN

2019-05-02 Thread John Unsworth
ers@openssl.org Subject: Re: SSL_read() returning SSL_ERROR_SYSCALL with errno 11 EAGAIN CAUTION: This email originated from outside of Synchronoss. > On May 1, 2019, at 9:47 AM, John Unsworth > wrote: > > Create a non-blocking TCP socket. > Call SSL_new(), SSL_set_fd(), SSL_connect

RE: SSL_read() returning SSL_ERROR_SYSCALL with errno 11 EAGAIN

2019-05-02 Thread John Unsworth
This is what we do: Create a non-blocking TCP socket. Call SSL_new(), SSL_set_fd(), SSL_connect() Thereafter call SSL_read(). Renegotiates handled by OpenSSL. We have only seen the error very occasionally, the vast majority of calls return SSL_ERROR_WANT_READ or SSL_ERROR_WANT_WRITE. The

RE: SSL_read() returning SSL_ERROR_SYSCALL with errno 11 EAGAIN

2019-05-02 Thread John Unsworth
This is what we do: Create a non-blocking TCP socket. Call SSL_new(), SSL_set_fd(), SSL_connect() Thereafter call SSL_read(). Renegotiates handled by OpenSSL. We have only seen the error very occasionally, the vast majority of calls return SSL_ERROR_WANT_READ or SSL_ERROR_WANT_WRITE. The

SSL_read() returning SSL_ERROR_SYSCALL with errno 11EAGAIN

2019-04-29 Thread John Unsworth
We are using OpenSSL 1.1.0h on Linux to send operations to LDAP servers. We use SSL_read() to receive the replies on a non-blocking socket. The vast majority of times SSL_read() returns >0, SSL_ERROR_WANT_READ or SSL_ERROR_WANT_WRITE as per the spec. However we are very occasionally seeing

RE: Tests fail on openssl 1.1.1b Windows 7 built with VS 2013

2019-04-16 Thread John Unsworth
st_evp V=1 test All tests successful. Files=1, Tests=9, 1 wallclock secs ( 0.02 usr + 0.00 sys = 0.02 CPU) Result: PASS Regards, John -Original Message- From: openssl-users On Behalf Of John Unsworth Sent: 13 April 2019 15:28 To: openssl-users@openssl.org Subject: RE: Tests fail on

RE: Tests fail on openssl 1.1.1b Windows 7 built with VS 2013

2019-04-13 Thread John Unsworth
ide of Synchronoss. On 11/04/2019 17:43, John Unsworth wrote: > Attached. This is with the debug build. Hmmm, this seems to suggest failures in SHA3 and X448 code. Perhaps assembler issues? Try compiling with "no-asm" as a Configure option. That's not really a viable option for

RE: Tests fail on openssl 1.1.1b Windows 7 built with VS 2013

2019-04-11 Thread John Unsworth
of Synchronoss. On 11/04/2019 15:20, John Unsworth wrote: > test\recipes\30-test_evp.t .. Dubious, test > returned 4 (wstat 1024, 0x400) Can you tell us the result from : nmake TESTS=test_evp V=1 test Thanks Matt "C:\Program Files (x86)\Microsoft Visual S

Tests fail on openssl 1.1.1b Windows 7 built with VS 2013

2019-04-11 Thread John Unsworth
, 7, 9 Non-zero exit status: 4 test\recipes\80-test_ssl_new.t(Wstat: 512 Tests: 29 Failed: 2) Failed tests: 20, 28 Non-zero exit status: 2 Thanks, John Unsworth

Re: [openssl-users] A self-signed CA certificate in the CA files *sometimes* stops verification working

2016-09-06 Thread John Unsworth
files *sometimes* stops verification working On Tue, Sep 06, 2016 at 06:10:42PM +, John Unsworth wrote: > This seems to me to be very easy to validate by just inserting a self-signed > certificate at the front of a CAfile that works. > > Attached are the 3 certificate files. >

Re: [openssl-users] A self-signed CA certificate in the CA files *sometimes* stops verification working

2016-09-06 Thread John Unsworth
ification working > On Sep 6, 2016, at 11:53 AM, John Unsworth <john.unswo...@synchronoss.com> > wrote: > > I have noticed the following behaviour: > > 1 Create a certificate file with two CA certificates, one for the server > being connected to (server A) and on

[openssl-users] A self-signed CA certificate in the CA file *sometimes* stops verification working

2016-09-06 Thread John Unsworth
OpenSSL 1.0.2h on Windows (different versions). I have noticed the following behaviour: 1 Create a certificate file with two CA certificates, one for the server being connected to (server A) and one for another server (server B). 2 Whichever way the CA certificates are ordered the connect works

Re: [openssl-users] [openssl.org #3804] AutoReply: BUG: OpenSSL 1.0.2 Solaris 32 bit build is broken

2015-08-28 Thread John Unsworth via RT
I have now successfully built and tested 1.0.2c on Solaris 10 with gcc 4.7.2 from unixpackages.com. ./Configure solaris-sparcv9-gcc no-shared -m32 -fPIC -fvisibility=hidden ./Configure solaris64-sparcv9-gcc no-shared -m64 -fPIC -fvisibility=hidden Looks like Solaris Studio is buggy. This bug

Re: [openssl-users] [openssl.org #3804] AutoReply: BUG: OpenSSL 1.0.2 Solaris 32 bit build is broken

2015-08-28 Thread John Unsworth
I have now successfully built and tested 1.0.2c on Solaris 10 with gcc 4.7.2 from unixpackages.com. ./Configure solaris-sparcv9-gcc no-shared -m32 -fPIC -fvisibility=hidden ./Configure solaris64-sparcv9-gcc no-shared -m64 -fPIC -fvisibility=hidden Looks like Solaris Studio is buggy. This bug

Re: [openssl-users] [openssl.org #3804] BUG: OpenSSL 1.0.2 Solaris 32 bit build is broken

2015-04-17 Thread John Unsworth
If I build using just ./Configure solaris-sparcv9-cc Everything works fine. However ./Configure solaris-sparcv9-cc -xcode=pic32 Causes the problem. John. ___ openssl-users mailing list To unsubscribe:

Re: [openssl-users] OpenSSL 1.0.2 Solaris 32 bit build is broken

2015-04-17 Thread John Unsworth
Good call. I built with just solaris-sparcv9-cc and that works fine. Adding -xcode=pic32 introduces the problems. I need that flag because I am adding the openssl static library into my shared library. John. -Original Message- From: openssl-users

Re: [openssl-users] [openssl.org #3804] BUG: OpenSSL 1.0.2 Solaris 32 bit build is broken

2015-04-17 Thread John Unsworth via RT
If I build using just ./Configure solaris-sparcv9-cc Everything works fine. However ./Configure solaris-sparcv9-cc -xcode=pic32 Causes the problem. John. ___ openssl-users mailing list To unsubscribe:

Re: [openssl-users] OpenSSL 1.0.2 Solaris 32 bit build is broken

2015-04-16 Thread John Unsworth
This is from 1.0.1m openssl s_client: TLSv1/SSLv3, Cipher is AES256-GCM-SHA384 1.0.2 make test built with asm gets this far ../util/shlib_wrap.sh ./destest Doing cbcm Doing ecb Doing ede ecb Doing cbc Doing desx cbc Doing ede cbc Doing pcbc Doing cfb8 cfb16 cfb32 cfb48 cfb64 cfb64() ede_cfb64()

Re: [openssl-users] OpenSSL 1.0.2 Solaris 32 bit build is broken

2015-04-15 Thread John Unsworth
1.0.2 Solaris 32 bit build is broken On Tue, Apr 14, 2015 at 12:17 PM, John Unsworth john.unswo...@owmessaging.com wrote: Is no-one interested at all about this problem? Or do I need to send it to another place? Can you try with a different compiler? Is Clang available to you? (If not, I can

Re: [openssl-users] OpenSSL 1.0.2 Solaris 32 bit build is broken

2015-04-15 Thread John Unsworth
stack trace when simply using the random number generator: ./openssl rand 64 What if you simply use SHA1: ./openssl sha1 somefile On 04/14/2015 12:17 PM, John Unsworth wrote: Is no-one interested at all about this problem? Or do I need to send it to another place? Regards, John. From: openssl

Re: [openssl-users] OpenSSL 1.0.2 Solaris 32 bit build is broken

2015-04-15 Thread John Unsworth
into the 1.0.2 source. Then clean, configure, compile and try again. There were changes to this file between 1.0.1 and 1.0.2. Perhaps a bug was introduced. I'm assuming this script generates the SHA source for your target platform. On 04/15/2015 09:56 AM, John Unsworth wrote: core 'core

Re: [openssl-users] OpenSSL 1.0.2 Solaris 32 bit build is broken

2015-04-15 Thread John Unsworth
/2015 09:56 AM, John Unsworth wrote: core 'core' of 24243: ./openssl rand 64 000e9ce8 sha1_block_data_order (2ec298, 2ec2f4, 4, ffbfe018, ffbfe01c, 44) + 8 00226160 ssleay_rand_add (ffbfe114, 1, 20, ffbfdfec, 0, 14) + 530 00227048 RAND_poll (4, ffbfe100, ffbfe120, ffbfe120, 2c0650, 2c0644) + 38c

Re: [openssl-users] OpenSSL 1.0.2 Solaris 32 bit build is broken

2015-04-15 Thread John Unsworth
Bug opened. From: openssl-users [mailto:openssl-users-boun...@openssl.org] On Behalf Of Salz, Rich Sent: 14 April 2015 17:41 To: openssl-users@openssl.org Subject: Re: [openssl-users] OpenSSL 1.0.2 Solaris 32 bit build is broken You could mail it to RT and then it will at least be logged and

Re: [openssl-users] OpenSSL 1.0.2 Solaris 32 bit build is broken

2015-04-15 Thread John Unsworth
12:26 PM, John Unsworth wrote: Still exactly the same crash. And even if these assembly code problems can be fixed there is still the negotiation error after compiling with no-asm. 4280581268:error:140943FC:SSL routines:ssl3_read_bytes:sslv3 alert bad record mac:s3_pkt.c:1456:SSL alert number 20

Re: [openssl-users] OpenSSL 1.0.2 Solaris 32 bit build is broken

2015-04-14 Thread John Unsworth
Is no-one interested at all about this problem? Or do I need to send it to another place? Regards, John. From: openssl-users [mailto:openssl-users-boun...@openssl.org] On Behalf Of John Unsworth Sent: 10 April 2015 14:54 To: openssl-users@openssl.org Subject: Re: [openssl-users] OpenSSL 1.0.2

[openssl-users] Include files location in 1.0.2a

2015-04-07 Thread John Unsworth
I build openssl as static libraries that are then included in applications. Up till 1.0.2 all the include files have been in one directory so building the applications just involved using the single include folder, which I copied from the openssl build, and the openssl static libraries. However

Re: [openssl-users] Include files location in 1.0.2a

2015-04-07 Thread John Unsworth
Sorry, my fault. I wasn't following the instructions which tells me to look in the prefix tree and there are all the include files nicely together again. Apologies for time wasting. John. From: openssl-users [mailto:openssl-users-boun...@openssl.org] On Behalf Of John Unsworth Sent: 07 April

[openssl-users] Solaris 64 bit build of 1.0.2 fails fbe internal error

2015-03-13 Thread John Unsworth
I am trying to build 1.0.2 on Solaris 10 64 bit with Studio 12.4 (12.3 failed too). ./Configure solaris64-sparcv9-cc no-shared -m64 -xcode=pic32 -xldscope=hidden ./make cc -I.. -I../.. -I../modes -I../asn1 -I../evp -I../../include -DOPENSSL_THREADS -D_REENTRANT -DDSO_DLFCN -DHAVE_DLFCN_H -m64

SSL negotiation fails on linux with 32 bit app

2013-03-22 Thread John Unsworth
appreciate any pointers. John Unsworth __ OpenSSL Project http://www.openssl.org User Support Mailing Listopenssl-users@openssl.org Automated List Manager

RE: SSL negotiation fails on linux with 32 bit app

2013-03-22 Thread John Unsworth
[mailto:owner-openssl-us...@openssl.org] On Behalf Of John Unsworth Sent: 22 March 2013 14:41 To: openssl-users@openssl.org Subject: SSL negotiation fails on linux with 32 bit app I have built a LDAP client using OpenSSL on Windows that successfully connects to a LDAP server. The code has been ported to linux

RE: SSL negotiation fails on linux with 32 bit app - NOT A PROBLEM

2013-03-22 Thread John Unsworth
for accidents :-) -Original Message- From: owner-openssl-us...@openssl.org [mailto:owner-openssl-us...@openssl.org] On Behalf Of John Unsworth Sent: 22 March 2013 15:07 To: openssl-users@openssl.org Subject: RE: SSL negotiation fails on linux with 32 bit app Further information. I ran

Unknown message digest algorithm sha256RSA OpenSSL 1.0.1e

2013-02-27 Thread John Unsworth
I have a Windows CA that has created a sha256RSA CA cert and server cert. However OpenSSL fails to validate them. C:\MetaAndDirectory\certsopenssl verify -verbose -CAfile win2k8r2-ca.cer win2k8r2-server.cer win2k8r2-server.cer: /DC=net/DC=cp/DC=macc/CN=macc-JOHN-WIN2K8R2-1-CA error 7 at 1 depth

RE: Unknown message digest algorithm sha256RSA OpenSSL 1.0.1e

2013-02-27 Thread John Unsworth
To: openssl-users@openssl.org Subject: Re: Unknown message digest algorithm sha256RSA OpenSSL 1.0.1e On 27-02-2013 23:54, John Unsworth wrote: I have a Windows CA that has created a sha256RSA CA cert and server cert. However OpenSSL fails to validate them. C:\MetaAndDirectory\certsopenssl verify