Commit 1b4682b
Retire the build policy that guarded a provider there no longer is
CI caught this and I did not, because I ran the test binary directly instead of
ctest -- and build_policy is a ctest, not a case inside mangos_tests. The suite
reported 191 passing while the twelfth test was never asked.
The rule required mangosd to leave through `return 1` when the OpenSSL provider
manager failed to initialise. That is a good rule for the reason it gives:
returning 0 tells a supervisor the process exited cleanly, so nothing restarts
it. It has simply run out of subject. RC4 was the only algorithm this tree ever
fetched from the legacy provider, it is implemented here now, and mangosd
performs no fallible crypto init at start-up at all -- SHA-1, SHA-256 and the
bignum work come from the default provider, which is inside libcrypto and
cannot be absent while libcrypto is present.
Deleted rather than loosened, and replaced by its own inverse: mangosd must not
mention OpenSSLProvider again. A policy that matches nothing is worse than no
policy, because it passes for the right reason today and for the wrong reason
the moment somebody reintroduces a start-up check and forgets its exit code.
This way, whoever brings a fallible crypto init back is told to bring the exit
rule with it.
12 of 12 ctest cases pass, which is how this should have been checked the first
time.
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>1 parent bf3ed34 commit 1b4682b
1 file changed
Lines changed: 18 additions & 9 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
31 | 31 | | |
32 | 32 | | |
33 | 33 | | |
34 | | - | |
35 | | - | |
36 | | - | |
37 | | - | |
38 | | - | |
39 | | - | |
40 | | - | |
41 | | - | |
42 | | - | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
43 | 52 | | |
44 | 53 | | |
45 | 54 | | |
| |||
0 commit comments