[php-src] PR #13951: ext/openssl: Add option to load legacy algorithm provider
| From: | adsr | Date: | Fri, 12 Apr 2024 17:20:13 +0000 |
| Subject: | [php-src] PR #13951: ext/openssl: Add option to load legacy algorithm provider | ||
| Groups: | php.git-pulls | ||
| Request: | Send a blank email to git-pulls+get-25728@lists.php.net to get a copy of this message | ||
Pull Request: https://github.com/php/php-src/pull/13951
Author: adsr
OpenSSL 3.x relegated a set of insecure algorithms to a "legacy" provider which is not
loaded by default. Some of these algorithms have utility beyond encryption such as for hashing,
e.g., DES[1]
Add a compile-time option to load the legacy provider in 3.x. When enabled, also load the default
provider because loading any provider explicitly disables auto-loading the default provider.
Node.js has a similar option[2].
[1] https://github.com/vitessio/vitess/blob/9e40015748ede158357bd7291f583db138abc3df/go/vt/vtgate/vindexes/hash.go#L157
[2] https://github.com/nodejs/node/blob/1091efc2ab4e960e010d4d2094ae8d5d8d70f1d3/src/node_options.cc#L1043