Commit 01c37f1
gh-114572: Fix locking in cert_store_stats and get_ca_certs (GH-114573)
* gh-114572: Fix locking in cert_store_stats and get_ca_certs
cert_store_stats and get_ca_certs query the SSLContext's X509_STORE with
X509_STORE_get0_objects, but reading the result requires a lock. See
openssl/openssl#23224 for details.
Instead, use X509_STORE_get1_objects, newly added in that PR.
X509_STORE_get1_objects does not exist in current OpenSSLs, but we can
polyfill it with X509_STORE_lock and X509_STORE_unlock.
* Work around const-correctness problem
* Add missing X509_STORE_get1_objects failure check
* Add blurb
(cherry picked from commit bce6931)
Co-authored-by: David Benjamin <[email protected]>
1 parent 5a0d51b commit 01c37f1
File tree
2 files changed
+64
-5
lines changed- Misc/NEWS.d/next/Security
- Modules
2 files changed
+64
-5
lines changedLines changed: 4 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4529 | 4529 | | |
4530 | 4530 | | |
4531 | 4531 | | |
| 4532 | + | |
| 4533 | + | |
| 4534 | + | |
| 4535 | + | |
| 4536 | + | |
| 4537 | + | |
| 4538 | + | |
| 4539 | + | |
| 4540 | + | |
| 4541 | + | |
| 4542 | + | |
| 4543 | + | |
| 4544 | + | |
| 4545 | + | |
| 4546 | + | |
| 4547 | + | |
| 4548 | + | |
| 4549 | + | |
| 4550 | + | |
| 4551 | + | |
| 4552 | + | |
| 4553 | + | |
| 4554 | + | |
| 4555 | + | |
| 4556 | + | |
| 4557 | + | |
| 4558 | + | |
| 4559 | + | |
| 4560 | + | |
| 4561 | + | |
| 4562 | + | |
| 4563 | + | |
| 4564 | + | |
| 4565 | + | |
| 4566 | + | |
| 4567 | + | |
| 4568 | + | |
| 4569 | + | |
| 4570 | + | |
| 4571 | + | |
| 4572 | + | |
| 4573 | + | |
| 4574 | + | |
| 4575 | + | |
4532 | 4576 | | |
4533 | 4577 | | |
4534 | 4578 | | |
| |||
4558 | 4602 | | |
4559 | 4603 | | |
4560 | 4604 | | |
4561 | | - | |
| 4605 | + | |
| 4606 | + | |
| 4607 | + | |
| 4608 | + | |
| 4609 | + | |
| 4610 | + | |
4562 | 4611 | | |
4563 | 4612 | | |
4564 | 4613 | | |
| |||
4572 | 4621 | | |
4573 | 4622 | | |
4574 | 4623 | | |
4575 | | - | |
4576 | | - | |
4577 | | - | |
| 4624 | + | |
4578 | 4625 | | |
4579 | 4626 | | |
4580 | 4627 | | |
| 4628 | + | |
4581 | 4629 | | |
4582 | 4630 | | |
4583 | 4631 | | |
| |||
4609 | 4657 | | |
4610 | 4658 | | |
4611 | 4659 | | |
4612 | | - | |
| 4660 | + | |
| 4661 | + | |
| 4662 | + | |
| 4663 | + | |
| 4664 | + | |
| 4665 | + | |
4613 | 4666 | | |
4614 | 4667 | | |
4615 | 4668 | | |
| |||
4637 | 4690 | | |
4638 | 4691 | | |
4639 | 4692 | | |
| 4693 | + | |
4640 | 4694 | | |
4641 | 4695 | | |
4642 | 4696 | | |
| 4697 | + | |
4643 | 4698 | | |
4644 | 4699 | | |
4645 | 4700 | | |
| |||
0 commit comments