Steven Fackler
ef8b8f7ead
Merge pull request #134 from DiamondLovesYou/master
...
OpenSSL-sys: Cfg off target_os instead off feature.
2015-01-02 11:13:11 -05:00
Valerii Hiora
afffffc730
Array syntax fallout
2015-01-02 13:51:26 +02:00
Richard Diamond
8a7e7b67d8
OpenSSL-sys: Cfg off target_os instead off feature.
...
It seems cargo doesn't provide --cfg entries for dep crates after all.
2015-01-02 03:37:35 -06:00
Samuel Fredrickson
dfdd4c0e4f
Change to use updated Mutex API in latest Rust master.
2014-12-30 16:39:49 -08:00
Chris Cole
fa32bc950b
Added Copy impl.
2014-12-23 15:50:29 -05:00
Chris Cole
156fc65eb0
Merge remote-tracking branch 'upstream/master'
...
Conflicts:
openssl-sys/src/lib.rs
2014-12-23 15:14:27 -05:00
Aaron Weiss
e2fa62e2ae
Replaced now removed NativeMutex with StaticMutex, and fixed Neg
...
implementation for BigNum.
2014-12-21 08:52:12 -05:00
Chris Cole
38682821ad
Added BigNum::{from_dec_str,from_hex_str}, BN_dec2bn, and BN_hex2bn.
2014-12-14 10:02:18 -05:00
Steven Fackler
c1e225563d
Clean up Copy impls a bit
2014-12-11 09:04:27 -08:00
Valerii Hiora
c922090075
Update to nightly: explicit Copy trait
2014-12-11 13:44:37 +02:00
Chris Cole
fb1c815274
Merge remote-tracking branch 'upstream/master'
2014-12-10 22:09:20 -05:00
Chris Cole
33f3c966ac
Added mod_word.
2014-12-10 22:08:32 -05:00
Ummon
6d2f8d67f2
Add the openssl function prototype 'HMAC_CTX_cleanup'.
2014-12-10 22:25:32 +01:00
Richard Diamond
0dff5268de
Add a feature to openssl-sys to cause it to build a local copy of libressl for
...
use instead of whatever pkg-config says (which in the case of crosses, is almost
certainly incorrect). This is for PNaCl.
2014-12-09 00:04:06 -06:00
Steven Fackler
08d1f2e629
Drop execute bit on file
2014-11-28 14:04:33 -08:00
Gleb Kozyrev
5fafe4fc60
Hasher: static contract checking, context reuse
...
- Store EVP_MD_CTX in a separate struct.
- Add with_context() constructor that uses an existing context.
- Switch to EVP_Digest(Init|Final)_ex for efficient context reuse.
- Make update() borrow &mut self.
- Make finalize() consume self. Add finalize_reuse() that also returns the
context which can be passed to from_context() constructor for reuse.
These changes let the type system prevent illegal calls to update() and
finalize().
2014-11-26 21:38:06 +02:00
Andor Uhlár
762331eb2b
Sync is now part of the standard library
2014-11-26 16:04:10 +01:00
Cody P Schafer
c6696eb029
sys: add SSL_get_peer_certificate()
2014-11-24 15:40:48 -05:00
Cody P Schafer
9951cb2bda
sys: add some methods for dealing with x509 certs
2014-11-24 15:38:25 -05:00
Cody P Schafer
381a9b6e51
sys (and bn): make CRYPTO_free() take a *mut c_void insead of a *const c_char
...
CRYPTO_free() ends up being used for a variety of types of data, not just
c_char. And it essentially takes full ownership of the type, making
*mut appropriate.
With this change it also more closely (exactly) matches the C defintion:
void CRYPTO_free(void *ptr);
2014-11-24 15:38:04 -05:00
Valerii Hiora
0cc749d3fc
Runtime fallout
2014-11-21 11:57:48 +02:00
Cody P Schafer
b9e3ed50ad
Baseline server support
...
Allows calling SSL_accept() instead of SSL_connect() when creating an
SslStream.
2014-11-19 15:23:31 -05:00
Steven Fackler
5258ce6ece
Move AES XTS support to a feature
2014-11-16 14:01:24 -08:00
Corey Ford
287d402042
Add XTS-AES mode
2014-11-14 12:22:34 -08:00
Valerii Hiora
b60d140d3d
New build system
2014-11-13 15:17:00 +02:00