Add X509Ref::check_host_with_flags
Nobody has claimed this yet.
Assessment
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Newbie friendliness
- 76/100
- Issue type
- Feature
- Clarity
- Clearly specified
- Activity status
- Active
- Tech stack
- rust
- Domain
- cryptography
Research direction
Start from the existing X509Ref::check_host method, which passes zero flags to X509_check_host, and see how X509CheckFlags is already defined in the crate. Add check_host_with_flags taking the flags parameter, then make check_host delegate with X509CheckFlags::empty(). Done when tests cover standard flags and UNDERSCORE_WILDCARDS, and the existing check_host behaviour is unchanged.
Written by the indexing model from the issue text.
Description
X509Ref::check_host hardcodes X509_check_host flags to zero, preventing use of X509CheckFlags without unsafe FFI.
We should add:
pub fn check_host_with_flags(
&self,
host: &str,
flags: X509CheckFlags,
) -> Result<bool, ErrorStack>
check_host can delegate with X509CheckFlags::empty() to preserve compatibility. Tests should cover standard flags and UNDERSCORE_WILDCARDS.
- Dominant language
- Rust
- Stars
- 526
- Forks
- 178
- Avg merge
- 16h 47m
- Merged PRs (30d)
- 8
Getting set up
- No Dockerfile or Docker Compose file
- No pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from cloudflare/boring
-
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
cloudflare/boring#527 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
cloudflare/boring#526 ·
-
SLH-DSA supportPossibly taken A pull request linked to this issue is open or already merged. Open
Difficulty 4/5 3-5 days Newbie friendliness 45/100
cloudflare/boring#522 ·
-
Difficulty 4/5 3-5 days Newbie friendliness 45/100
cloudflare/boring#517 ·
-
Difficulty 4/5 3-5 days Newbie friendliness 45/100
cloudflare/boring#500 · 2 comments ·
All issues in cloudflare/boring
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
wormhole-foundation/wormhole#5062 ·
Maintainers usually reply within 1 day
-
RUSTSEC-2026-0348: Brotli certificate decompression can allocate up to 1 GiB before authenticationOpen
Difficulty 2/5 1-3 hours Newbie friendliness 60/100
-
Difficulty 1/5 1-3 hours Newbie friendliness 62/100
-
core: Amount::from_str panics on values above 21M BTC instead of returning an errorPossibly taken @bhuvan-somisetty claimed this today. Open
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
Maintainers usually reply within 1 day
-
crate: spate-s3
Difficulty 2/5 Half a day Newbie friendliness 62/100
Maintainers usually reply within 1 day