| 24 | namespace parquet::encryption::openssl { |
| 25 | |
| 26 | void EnsureInitialized() { |
| 27 | // OpenSSL 1.1 doesn't provide OPENSSL_INIT_ENGINE_ALL_BUILTIN. |
| 28 | #ifdef OPENSSL_INIT_ENGINE_ALL_BUILTIN |
| 29 | // Initialize ciphers and random engines |
| 30 | if (!OPENSSL_init_crypto(OPENSSL_INIT_ENGINE_ALL_BUILTIN | OPENSSL_INIT_ADD_ALL_CIPHERS, |
| 31 | NULL)) { |
| 32 | throw ParquetException("OpenSSL initialization failed"); |
| 33 | } |
| 34 | #endif |
| 35 | } |
| 36 | |
| 37 | } // namespace parquet::encryption::openssl |
no test coverage detected