forked from OpenVPN/openvpn3
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Renamed SSL method write_ciphertext_ready() to read_cleartext_ready() for clarity. * It's important that read_cleartext_ready() returns an accurate status. To this end, add ssl_get_bytes_avail to the return expression for PolarSSL: return !ct_in.empty() || ssl_get_bytes_avail(ssl); This will also consider buffering inside of PolarSSL, and avoid potential deadlocks. Other SSL modules (AppleCrypto and OpenSSL) have been commented to warn of this issue. * Factored out constants such as SHOULD_RETRY to namespace SSLConst. * Added flags var to SSL configs. * Added new SSL flag LOG_VERIFY_STATUS. If disabled, makes for a quiet SSL negotiation if no errors. * Detect SSL partial writes and designate a new error status code (SSL_PARTIAL_WRITE). * In ProtoStackBase, detect unclassified errors from SSL layer (throw unknown_status_from_ssl_layer). * PolarSSL module now recognizes Close Notify status and returns SSLConst::PEER_CLOSE_NOTIFY. * In ProtoStackBase, factored out some error handling into common method.
- Loading branch information
1 parent
4c56d6b
commit d9b5cdf
Showing
7 changed files
with
129 additions
and
52 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.