reyk / rust-libtls Goto Github PK
View Code? Open in Web Editor NEWRust bindings for LibreSSL's libtls library.
License: Other
Rust bindings for LibreSSL's libtls library.
License: Other
net2
crate has been deprecated; usesocket2
instead
Details | |
---|---|
Status | unmaintained |
Package | net2 |
Version | 0.2.34 |
URL | deprecrated/net2-rs@3350e38 |
Date | 2020-05-01 |
The net2
crate has been deprecated
and users are encouraged to considered socket2
instead.
See advisory page for additional details.
The current safe API allows the library user to cause a segfault by trying to use Tls::connect
without calling Tls::configure
first. I'm not sure what the best design to avoid this is, but it caused me a lot of trouble when I didn't realize that Tls::reset
also removes the config. Ideally the safe api exposed in the rust bindings would prevent this type of use at compile time.
tls_read
, tls_write
, and similar functions have three "error" return values. TLS_WANT_POLLIN
and TLS_WANT_POLLOUT
are correctly converted to ErrorKind::WouldBlock
by rust-libtls
, but the generic -1 return value is not. The try_tls!
macro attempts to cast the return value to usize
if isn't WANT_POLLIN
or WANT_POLLOUT
, which will overflow. The correct behavior would be to call Tls::last_error
if the return value is -1.
I'm currently working on a PR to update this library to tokio 0.3 and fix some issues with the async implementation, but once I'm done with that I can write a PR to fix this.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.