Topic: [SOLVED] Thread Safety

The documents for WolfSSL say that once its created the CTX is thread safe and
that activities on individual wolfssl connections/objects  need to be protected from access by multiple threads.


I implemented this and the internal SSL objects are showing signs of corruption.
(example FreeZero is being called with huge negative sizes)

IF I put a single global critical section around all ssl connection instances everything the problem goes away.

Thoughts Ideas?

Share

Re: [SOLVED] Thread Safety

Hi pbreed,

Thanks for the forum question. You can also use our support@wolfssl.com ZenDesk system for faster responses.

Can you describe how you are building wolfSSL? Internally we have mutex protection if threading is enabled.

If the --enable-singlethreaded option is set or SINGLE_THREADED is defined then threading is not supported.

Thanks,
David Garske, wolfSSL

Share

Re: [SOLVED] Thread Safety

Yeah I figured it out.. was set to single threaded....
Fixed that...

Share