Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

🔒 Add Net::IMAP#tls_verified? #91

Merged
merged 1 commit into from
Aug 29, 2023
Merged

🔒 Add Net::IMAP#tls_verified? #91

merged 1 commit into from
Aug 29, 2023

Conversation

nevans
Copy link
Collaborator

@nevans nevans commented Dec 22, 2022

Returns true after the TLS negotiation has completed and the remote hostname has been verified.

This can be used, for example, by automated safeguards against selecting particular SASL mechanisms—or against authenticating at all—when TLS hasn't been established and verified the peer.

@nevans nevans marked this pull request as draft December 22, 2022 00:04
@nevans
Copy link
Collaborator Author

nevans commented Dec 22, 2022

missing tests...

Returns true after the TLS negotiation has completed _and_ the remote
hostname has been verified.

This can be used, for example, by automated safeguards against selecting
particular SASL mechanisms—or against authenticating at all—when TLS
hasn't been established _and_ verified the peer.
@nevans nevans marked this pull request as ready for review August 29, 2023 13:43
@nevans nevans requested a review from shugo August 29, 2023 13:44
@nevans
Copy link
Collaborator Author

nevans commented Aug 29, 2023

Added tests.

@nevans nevans merged commit 4520aa8 into master Aug 29, 2023
22 checks passed
@nevans nevans deleted the tls_verified branch August 29, 2023 13:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

1 participant