* Some items are only initialized if certain config values are set * Must have a second pass that initializes after loading the SSL config */
| 830 | * Must have a second pass that initializes after loading the SSL config |
| 831 | */ |
| 832 | void |
| 833 | SSLPostConfigInitialize() |
| 834 | { |
| 835 | if (SSLConfigParams::engine_conf_file) { |
| 836 | #if HAVE_ENGINE_LOAD_DYNAMIC |
| 837 | ENGINE_load_dynamic(); |
| 838 | #endif |
| 839 | |
| 840 | OPENSSL_load_builtin_modules(); |
| 841 | if (CONF_modules_load_file(SSLConfigParams::engine_conf_file, nullptr, 0) <= 0) { |
| 842 | char err_buf[256] = {0}; |
| 843 | ERR_error_string_n(ERR_get_error(), err_buf, sizeof(err_buf)); |
| 844 | Error("Could not load SSL engine configuration file %s: %s", SSLConfigParams::engine_conf_file, err_buf); |
| 845 | } |
| 846 | } |
| 847 | } |
| 848 | |
| 849 | void |
| 850 | SSLInitializeLibrary() |