| 283 | } |
| 284 | |
| 285 | Status DisableOpenSSLInitialization() { |
| 286 | if (g_disable_ssl_init) return Status::OK(); |
| 287 | if (g_ssl_is_initialized) { |
| 288 | return Status::IllegalState("SSL already initialized. Initialization can only be disabled " |
| 289 | "before first usage."); |
| 290 | } |
| 291 | RETURN_NOT_OK(CheckOpenSSLInitialized()); |
| 292 | g_disable_ssl_init = true; |
| 293 | return Status::OK(); |
| 294 | } |
| 295 | |
| 296 | void InitializeOpenSSL() { |
| 297 | static std::once_flag ssl_once; |
no test coverage detected