MCPcopy Create free account
hub / github.com/apache/arrow / EnsureInitialized

Function EnsureInitialized

cpp/src/parquet/encryption/openssl_internal.cc:26–35  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

24namespace parquet::encryption::openssl {
25
26void 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

Callers 4

GenerateCommentsMethod · 0.85
AesCryptoContextMethod · 0.85
RandBytesFunction · 0.85
EnsureBackendInitializedFunction · 0.85

Calls 1

ParquetExceptionFunction · 0.85

Tested by

no test coverage detected