[openssl-dev] Feedback on BIO API changes in 1.1
Matt Caswell
matt at openssl.org
Wed Jun 29 07:33:22 UTC 2016
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
More information about the openssl-dev
mailing list