aboutsummaryrefslogtreecommitdiff
path: root/src
Commit message (Collapse)AuthorAgeFilesLines
* ssl: use std::ptr::Unique to fix for opt-in SyncCody P Schafer2014-12-291-28/+28
| | | | | | | | | | | | | | | Modifies Ssl & SslContext. This removes the errors like: src/ssl/tests.rs:202:14: 202:27 error: the trait `core::kinds::Send` is not implemented for the type `*mut libc::types::common::c95::c_void` src/ssl/tests.rs:202 let _t = Thread::spawn(move || { ^~~~~~~~~~~~~ src/ssl/tests.rs:202:14: 202:27 note: the type `*mut libc::types::common::c95::c_void` must implement `core::kinds::Send` because it appears within the type `ssl::Ssl` We may want some locking around calls that do multiple operations on the underlying Ssl and SslContext objects, but this lets us preserve functionality for now.
* Update to rust masterAlex Crichton2014-12-233-14/+20
|
* Replaced now removed NativeMutex with StaticMutex, and fixed NegAaron Weiss2014-12-211-1/+1
| | | | implementation for BigNum.
* Print unexpected error codesSteven Fackler2014-12-191-2/+2
| | | | This is breaking occaisionally but I can't repro it locally :(
* Updated for language changes to macros.Aaron Weiss2014-12-193-6/+6
|
* Update to rust masterAlex Crichton2014-12-161-16/+16
|
* Track master: proc removal, tuple indexingValerii Hiora2014-12-152-2/+2
|
* Clean up Copy impls a bitSteven Fackler2014-12-111-2/+2
|
* Update to nightly: explicit Copy traitValerii Hiora2014-12-116-3/+14
|
* Add the openssl function prototype 'HMAC_CTX_cleanup'.Ummon2014-12-101-0/+8
|
* Speed up SslStream initialization a bitSteven Fackler2014-12-061-1/+8
|
* Fix doc test and stop doc uploadSteven Fackler2014-12-031-4/+4
|
* Make SslStream CloneableSteven Fackler2014-11-292-7/+18
| | | | Closes #6
* Add MaybeSslStreamSteven Fackler2014-11-281-1/+73
|
* Hasher: static contract checking, context reuseGleb Kozyrev2014-11-261-22/+63
| | | | | | | | | | | | - 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().
* Sync is now part of the standard libraryAndor Uhlár2014-11-262-2/+1
|
* Allow access to the underlying streamSteven Fackler2014-11-251-0/+9
| | | | | The use case here is to allow methods like `set_read_timeout` to be called.
* Fix deprecation warningSteven Fackler2014-11-241-2/+1
|
* ssl: add get_peer_certificate()Cody P Schafer2014-11-241-1/+12
|
* sys (and bn): make CRYPTO_free() take a *mut c_void insead of a *const c_charCody P Schafer2014-11-241-2/+2
| | | | | | | | | 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);
* Fix negative serials on generated certsValerii Hiora2014-11-211-1/+15
| | | | required for compatibility with Go crypto
* Slice syntax fixGleb Kozyrev2014-11-201-1/+1
|
* Replace an expired cert with a new one to make tests happyGleb Kozyrev2014-11-202-2/+2
|
* Merge pull request #54 from jmesmon/serverSteven Fackler2014-11-191-13/+24
|\ | | | | Server Support
| * Baseline server supportCody P Schafer2014-11-191-13/+24
| | | | | | | | | | Allows calling SSL_accept() instead of SSL_connect() when creating an SslStream.
* | Fix test buildSteven Fackler2014-11-194-12/+12
|/
* Remove Zero and One implsSteven Fackler2014-11-171-20/+0
|
* Fixed compilation errors related to namedspaced enumsJames Hurst2014-11-179-116/+120
|
* Impl Error for SslErrorSteven Fackler2014-11-162-2/+23
|
* Move AES XTS support to a featureSteven Fackler2014-11-162-1/+8
|
* Add XTS-AES modeCorey Ford2014-11-141-0/+16
|
* New build systemValerii Hiora2014-11-132-484/+1
|
* Merge pull request #89 from pyrho/aes-256-cbc-decrypt-testSteven Fackler2014-11-101-0/+34
|\ | | | | Aes 256 cbc decrypt test
| * Replaced vector of bytes with bytes string literal for expected output of ↵pyrho2014-10-281-7/+2
| | | | | | | | AES_256_CBC deciphering unit test
| * Merge remote-tracking branch 'upstream/master' into aes-256-cbc-decrypt-testpyrho2014-10-283-14/+11
| |\
| * | AES 256 CBC unit testpyrho2014-10-281-0/+39
| | |
* | | Force linkage of LibreSSL when targeting NaCl OSs.Richard Diamond2014-11-091-0/+3
| | |
* | | Support PNaCl/NaCl.Richard Diamond2014-11-091-14/+20
| | |
* | | Hasher::write(): add basic testCody P Schafer2014-11-071-0/+13
| | |
* | | crypto/hash: impl Writer for Hasher to allow use of Reader-Writer ↵Cody P Schafer2014-11-071-0/+8
| | | | | | | | | | | | convenience functions
* | | Update to work with change in TcpStream apiCody P Schafer2014-11-071-13/+13
| | |
* | | Clean up some warningsSteven Fackler2014-10-311-2/+2
| | |
* | | Merge pull request #90 from ebfe/fix-buildSteven Fackler2014-10-308-16/+16
|\ \ \ | |_|/ |/| | fail! -> panic!
| * | fail! -> panic!Michael Gehring2014-10-308-16/+16
| | |
* | | Clean up some BN stuffSteven Fackler2014-10-263-14/+11
| |/ |/|
* | Update doc locationSteven Fackler2014-10-261-1/+1
|/
* Cert loading from PEM & restructuring Valerii Hiora2014-10-155-56/+100
| | | | | | - Added cert loading - Extracted X509 tests
* Cleaned up BigNum constructorsValerii Hiora2014-10-141-25/+11
|
* Correct init mutexes and locking functionValerii Hiora2014-10-1412-23/+46
| | | | | | | | | `libcrypto` uses locks quite intensively even without SSL. So they should be initialized before everything else to function properly in multi-threaded apps in which SSL operations are absent or delayed. Finishes #79
* ssl: allow setting cipher listCody P Schafer2014-10-132-0/+9
|