diff options
| author | Manuel Schölling <[email protected]> | 2015-07-18 12:48:40 +0200 |
|---|---|---|
| committer | Manuel Schölling <[email protected]> | 2015-07-18 13:00:34 +0200 |
| commit | a43011d77c26b0a371565ffe284611091cfd1de3 (patch) | |
| tree | e88b02921780ee10e777678ea166f85da2939331 /openssl-sys/src | |
| parent | Merge pull request #239 from jethrogb/topic/x509_extension_fix (diff) | |
| download | rust-openssl-a43011d77c26b0a371565ffe284611091cfd1de3.tar.xz rust-openssl-a43011d77c26b0a371565ffe284611091cfd1de3.zip | |
Fix probelms with DTLS when no packets are pending.
When using DTLS you might run into the situation where no packets
are pending, so SSL_read returns len=0. On a TLS connection this
means that the connection was closed, but on DTLS it does not
(a DTLS connection cannot be closed in the usual sense).
This commit fixes a bug introduced by c8d23f3.
Conflicts:
openssl/src/ssl/mod.rs
Diffstat (limited to 'openssl-sys/src')
| -rw-r--r-- | openssl-sys/src/lib.rs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/openssl-sys/src/lib.rs b/openssl-sys/src/lib.rs index 5317ff20..a76b5e95 100644 --- a/openssl-sys/src/lib.rs +++ b/openssl-sys/src/lib.rs @@ -525,6 +525,7 @@ extern "C" { pub fn SSL_get_SSL_CTX(ssl: *mut SSL) -> *mut SSL_CTX; pub fn SSL_get_current_compression(ssl: *mut SSL) -> *const COMP_METHOD; pub fn SSL_get_peer_certificate(ssl: *mut SSL) -> *mut X509; + pub fn SSL_get_ssl_method(ssl: *mut SSL) -> *const SSL_METHOD; pub fn SSL_COMP_get_name(comp: *const COMP_METHOD) -> *const c_char; |