On 27/06/16 21:56, Timothy B. Terriberry wrote: > Because I am writing a library, which I > intend to be re-entrant, but which does not have any explicit threading > support (or dependencies), I don't have any convenient global place to > cache it. I haven't needed one for anything else.
You could initialise a global variable which holds your BIO_METHOD using CRYPTO_THREAD_run_once() and free it up when OpenSSL exits using OPENSSL_atexit(). Matt -- openssl-dev mailing list To unsubscribe: https://mta.openssl.org/mailman/listinfo/openssl-dev