ssl client write / server accept seems broken

Matt Caswell matt at
Tue Mar 23 16:06:22 UTC 2021

On 23/03/2021 15:47, Embedded Devel wrote:
>> Do you know if your application is statically linked or dynamically 
>> linked to OpenSSL?
> Ive attached the code in question if it helps

Looks like the original developer already tried to print the contents of 
the OpenSSL error stack:

			LOG(LOG_ERR, "%s: Error SSL_ERROR_SSL - return code: %d. %s\n", 
custom_prefix, ret_val, custom_msg);

The errors seem to be going to "stderr" rather than via your "LOG" 
function. You don't show what "LOG" does but if it goes somewhere other 
than stderr then the errors are going somewhere different to your log 
file. Are you able to show us the stderr output from running your 

> just compiled with gcc, i see no -lstatic in the makefile ... ive 
> attached the ssl .c and .h files in question if you want to see them

What does "ldd" show you for the application binary? i.e.

ldd name-of-you-binary-here


More information about the openssl-users mailing list