Skip to content

Add SecureOptions.VerifyConnection#236

Merged
bestbeforetoday merged 1 commit intohyperledger:mainfrom
bestbeforetoday:lint-fix
Mar 8, 2026
Merged

Add SecureOptions.VerifyConnection#236
bestbeforetoday merged 1 commit intohyperledger:mainfrom
bestbeforetoday:lint-fix

Conversation

@bestbeforetoday
Copy link
Member

@bestbeforetoday bestbeforetoday commented Mar 8, 2026

Linting flagged a gap in TLS certificate verification using the SecureOptions.VerifyCertificate function, since this is not invoked when connections are resumed.

This change introduces a new SecureOptions.VerifyConnection verification function that uses more recent Go standard library features to perform verification on both connection and resume. It also provides access to additional information for more thorough verification.

The VerifyConnection function replaces the older VerififyCertificate method of certification verification. The old method is retained for compatibility.

Linting flagged a gap in TLS certificate verification using the
SecureOptions.VerifyCertificate function, since this is not invoked when
connections are resumed.

This change introduces a new SecureOptions.VerifyConnection verification
function that uses more recent Go standard library features to perform
verification on both connection and resume. It also provides access to
additional information for more thorough verification.

The VerifyConnection function replaces the older VerififyCertificate
method of certification verification. The old method is retained for
compatibility.

Signed-off-by: Mark S. Lewis <Mark.S.Lewis@outlook.com>
@bestbeforetoday bestbeforetoday marked this pull request as ready for review March 8, 2026 14:36
@bestbeforetoday bestbeforetoday enabled auto-merge (squash) March 8, 2026 14:37
Copy link
Contributor

@SamYuan1990 SamYuan1990 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@bestbeforetoday bestbeforetoday merged commit af4c24d into hyperledger:main Mar 8, 2026
16 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants