Skip to content
Snippets Groups Projects
Commit ab72fefa authored by Jørn Fauske's avatar Jørn Fauske Committed by Jürgen Haas
Browse files

Issue #3512611 by jfauske, adrianm6254, jurgenhaas: "OpenSSL" not found

parent 91e7eeeb
Branches
Tags
1 merge request!12Issue #3512611 Update crypt method names stored in state.
Pipeline #511693 passed with warnings
......@@ -34,3 +34,24 @@ function drd_agent_update_8001(mixed &$sandbox): void {
$config->delete();
}
/**
* Update stored crypt methods after 4.1.3 update.
*/
function drd_agent_update_8002(): void {
$state = \Drupal::state();
$authorized = $state->get('drd_agent.authorised');
// Check if old state values exists.
if ($authorized !== NULL) {
foreach ($authorized as $uuid => $settings) {
match($settings['crypt']) {
'OpenSSL' => $authorized[$uuid]['crypt'] = 'OpenSsl',
'TLS' => $authorized[$uuid]['crypt'] = 'Tls',
default => NULL,
};
}
$state->set('drd_agent.authorised', $authorized);
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment