Skip to content

Populate cipher and hash in SslInfo on BouncyCastle path#655

Merged
haga-rak merged 2 commits into
mainfrom
fix/sslinfo-bc-cipher-hash
May 5, 2026
Merged

Populate cipher and hash in SslInfo on BouncyCastle path#655
haga-rak merged 2 commits into
mainfrom
fix/sslinfo-bc-cipher-hash

Conversation

@haga-rak
Copy link
Copy Markdown
Owner

@haga-rak haga-rak commented May 5, 2026

Summary

  • The BouncyCastle constructor in SslInfo left NegotiatedCipherSuite, CipherAlgorithm and HashAlgorithm at their default zero values, so consumers reading these on a BC-negotiated connection saw TLS_NULL_WITH_NULL_NULL / None / None.
  • Cast SessionParameters.CipherSuite to TlsCipherSuite (IANA codes line up) and derive CipherAlgorithm / HashAlgorithm by parsing the suite name.
  • Added CipherAndHashInSslInfoTests that runs the same assertions against both OsDefault and BouncyCastle providers.

@haga-rak haga-rak added the bug Something isn't working label May 5, 2026
@haga-rak haga-rak merged commit 53b12c4 into main May 5, 2026
2 checks passed
@haga-rak haga-rak deleted the fix/sslinfo-bc-cipher-hash branch May 7, 2026 21:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant