Tests can declare this function and use it to re-configure libprocess programmatically. Without explicitly declaring this function, it is not visible. This is the preferred behavior as we do not want applications changing these settings while they are running (this would be undefined behavior). NOTE: If the test is changing SSL-related configuration, the SSL library must be reinitialized first. S
| 959 | // NOTE: If the test is changing SSL-related configuration, the SSL library |
| 960 | // must be reinitialized first. See `reinitialize` in `openssl.cpp`. |
| 961 | void reinitialize( |
| 962 | const Option<string>& delegate, |
| 963 | const Option<string>& readwriteAuthenticationRealm, |
| 964 | const Option<string>& readonlyAuthenticationRealm) |
| 965 | { |
| 966 | process::finalize(); |
| 967 | |
| 968 | // Reset the initialization synchronization primitives. |
| 969 | initialize_started.store(false); |
| 970 | initialize_complete.store(false); |
| 971 | |
| 972 | process::initialize( |
| 973 | delegate, |
| 974 | readwriteAuthenticationRealm, |
| 975 | readonlyAuthenticationRealm); |
| 976 | } |
| 977 | |
| 978 | |
| 979 | bool initialize( |
nothing calls this directly
no test coverage detected