Repository navigation
Conversation
icing
left a comment
There was a problem hiding this comment.
I don't know. Reusing a session against the same server...only works if it is still the same server which has the proper secrets.
|
Right, but its the CA store change so maybe the server isn't trusted anymore. Shouldn't it require a recheck? |
It's not wrong to recheck, yes. But I think in general, we could document that changing trust anchors for transfers sharing a connection pool is undefined behaviour. That includes changing file contents. |
|
I like that. Will you do a docs PR for that or shall I? |
There was a problem hiding this comment.
🟡 Changes recommended
Omitting CA file/path fields can allow session reuse across different trust policies when native trust is additive.
1 open issue
What changed in this PR
This PR makes TLS session-cache keys reflect the effective native CA-store setting.
Changes:
- Uses a native-CA marker instead of CA file/path fields when native trust is enabled.
- Adds a unit test distinguishing native-enabled and file-only session keys.
| File | Description |
|---|---|
| tests/unit/unit3304.c | Tests native CA policy separation in session keys. |
| lib/vtls/vtls_scache.c | Changes trust-source encoding in session keys. |
Review effort: Balanced
Instead of CA/CAfile Assisted-by: stze on hackerone
75c77e6 to
3d6c354
Compare

Instead of CA/CAfile
Assisted-by: stze on hackerone