tests: Fix segfault with mbedTLS built without threading support

Authored by jvijtiuk on Mon, Feb 12, 6:01 PM.

Description

tests: Fix segfault with mbedTLS built without threading support

torture_rand and torture_server_x11 call ssh_init without checking
the return value. If mbedTLS is built without threading support
ssh_init fails but the tests continue and then segfault since threading
wasn't correctly initialised.

Add a section that documents requirements for mbedTLS usage in a
multi threaded environment to README.mbedtls.

Signed-off-by: Juraj Vijtiuk <juraj.vijtiuk@sartura.hr>
Reviewed-by: Andreas Schneider <asn@cryptomilk.org>

Details

Committed
asnMon, Feb 12, 8:05 PM
Parents
rLIBSSHebcff9fd630f: src: Use explicit_bzero() if available on the platform
Branches
Unknown
Tags
Unknown