Re: Server application hangs on SS_read, even when client disconnects

2020-11-17 Thread Kyle Hamilton
There's another reason why you'll want to close your socket with SSL_close(): SSL (and TLS) view a prematurely-closed stream as an exceptional condition to be reported to the application. This is to prevent truncation attacks against the data communication layer. While your application may not

Re: Server application hangs on SS_read, even when client disconnects

2020-11-17 Thread Matt Caswell
On 17/11/2020 13:56, Michael Wojcik wrote: >> From: Kyle Hamilton >> Sent: Tuesday, 17 November, 2020 02:37 >> On Fri, Nov 13, 2020 at 11:51 AM Michael Wojcik >> wrote: >>> From: Brice André Sent: Friday, 13 November, 2020 09:13 >>> "Does the server parent process close its

RE: Server application hangs on SS_read, even when client disconnects

2020-11-17 Thread Michael Wojcik
> From: Kyle Hamilton > Sent: Tuesday, 17 November, 2020 02:37 > On Fri, Nov 13, 2020 at 11:51 AM Michael Wojcik > wrote: > > > > > From: Brice André > > > Sent: Friday, 13 November, 2020 09:13 > > > > > "Does the server parent process close its copy of the conversation > > > socket?" > > > I

Can't link a static library with custom OpenSSL rsa engine

2020-11-17 Thread Shariful Alam
Hello, I have a custom rsa engine. It builds and works fine. Later, I have added a static library with my custom engine code. My code compiles. However, when I try to load the custom engine it shows *invalid engine "rsa-engine-new". *The full error is given below,

RE: Can't link a static library with custom OpenSSL rsa engine

2020-11-17 Thread Scott Neugroschl
You need to put the static library at the END of your link command. A static library is searched when it is encountered in the link stream, and only the items needed will be used from it. Because you have it first, there are no undefined symbols, and no items will be used from it. From:

RE: Can't link a static library with custom OpenSSL rsa engine

2020-11-17 Thread Heberlein, Kurt William
You might try changing this: 8. gcc -shared -o librsa_engine.so libdune/libdune.a -lcrypto rsa-engine.o rsa/rsa.o rsa/bignum.o rsa/aes.o rsa/x509parse.o rsa/pem.o to this: gcc –shared –o librsa_engine.so –L./libdune rsa_engine.o rsa/rsa.o rsa/bignum.o rsa/aes.o