Skip to content

feat: add SetTlsPeerVerification#62

Open
mir-huzaif wants to merge 3 commits intomainfrom
huzaif/tls-peer-option
Open

feat: add SetTlsPeerVerification#62
mir-huzaif wants to merge 3 commits intomainfrom
huzaif/tls-peer-option

Conversation

@mir-huzaif
Copy link
Copy Markdown
Contributor

No description provided.

Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This pull request adds a new SetTlsPeerVerification function to control SSL/TLS peer verification for network testing purposes. The function is intended for troubleshooting network errors and is disabled by default on Linux but enabled on other platforms.

Changes:

  • Added native P/Invoke declarations for SetTlsPeerVerification (both 64-bit and x86 variants)
  • Implemented managed wrapper function with platform-specific handling and error checking

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 7 comments.

File Description
src/Cryptlex.LexActivator/LexActivatorNative.cs Added P/Invoke declarations for SetTlsPeerVerification in both 64-bit and x86 variants
src/Cryptlex.LexActivator/LexActivator.cs Added managed wrapper method with documentation, platform detection, and error handling

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread src/Cryptlex.LexActivator/LexActivator.cs Outdated
Comment thread src/Cryptlex.LexActivator/LexActivator.cs Outdated
Comment thread src/Cryptlex.LexActivator/LexActivator.cs Outdated
Comment thread src/Cryptlex.LexActivator/LexActivator.cs Outdated
Comment thread src/Cryptlex.LexActivator/LexActivatorNative.cs
Comment thread src/Cryptlex.LexActivator/LexActivatorNative.cs
Comment thread src/Cryptlex.LexActivator/LexActivator.cs
@sonarqubecloud
Copy link
Copy Markdown

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.

3 participants