| 68 | |
| 69 | |
| 70 | void init() { |
| 71 | // Because OpenSSL is compiled with no-pinshared, we need to initialize without defining atexit(), since we want to destroy it when libRack is unloaded. |
| 72 | OPENSSL_init_crypto(OPENSSL_INIT_NO_ATEXIT, NULL); |
| 73 | // curl_easy_init() calls this automatically, but it's good to make sure this is done on the main thread before other threads are spawned. |
| 74 | // https://curl.haxx.se/libcurl/c/curl_easy_init.html |
| 75 | curl_global_init(CURL_GLOBAL_ALL); |
| 76 | } |
| 77 | |
| 78 | |
| 79 | void destroy() { |
nothing calls this directly
no outgoing calls
no test coverage detected