OpenSSL can safely be used in multi-threaded applications provided that at least two callback functions are set, locking_function and threadid_func.