aboutsummaryrefslogtreecommitdiff
path: root/src/ssl
Commit message (Collapse)AuthorAgeFilesLines
* Move docs to this repo and auto buildSteven Fackler2015-02-073-972/+0
|
* Derive Debug instead of deprecated ShowGleb Kozyrev2015-02-011-2/+2
|
* Rename crypto::hash::HashType -> TypeGleb Kozyrev2015-01-281-1/+1
| | | | | s/HashType/Type/ to follow the current Rust style. Import Type as HashType in modules where the name might be ambiguous. [breaking change]
* Fix for IO changesSteven Fackler2015-01-283-18/+18
|
* Fix for upstream changesSteven Fackler2015-01-232-9/+16
|
* Add Show implsSteven Fackler2015-01-091-3/+24
|
* Update to rust masterAlex Crichton2015-01-091-9/+9
|
* Handle recent breaking changesValerii Hiora2015-01-073-38/+48
| | | | | | | - macro reform - split of Show and String in formatter - CString reform - feature changes
* Update rustPeter Atashian2015-01-061-2/+2
| | | | Signed-off-by: Peter Atashian <[email protected]>
* Fix deprecation warningsSteven Fackler2015-01-031-2/+2
|
* Updated to master:Valerii Hiora2015-01-032-7/+9
| | | | | | - library stab issues - deriving -> derive - {mod} -> {self}
* 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-232-13/+19
|
* Print unexpected error codesSteven Fackler2014-12-191-2/+2
| | | | This is breaking occaisionally but I can't repro it locally :(
* Track master: proc removal, tuple indexingValerii Hiora2014-12-152-2/+2
|
* Update to nightly: explicit Copy traitValerii Hiora2014-12-111-0/+2
|
* Speed up SslStream initialization a bitSteven Fackler2014-12-061-1/+8
|
* Make SslStream CloneableSteven Fackler2014-11-292-7/+18
| | | | Closes #6
* Add MaybeSslStreamSteven Fackler2014-11-281-1/+73
|
* Sync is now part of the standard libraryAndor Uhlár2014-11-261-1/+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
|
* Replace an expired cert with a new one to make tests happyGleb Kozyrev2014-11-201-1/+1
|
* Baseline server supportCody P Schafer2014-11-191-13/+24
| | | | | Allows calling SSL_accept() instead of SSL_connect() when creating an SslStream.
* Fixed compilation errors related to namedspaced enumsJames Hurst2014-11-172-12/+14
|
* Impl Error for SslErrorSteven Fackler2014-11-161-1/+22
|
* Update to work with change in TcpStream apiCody P Schafer2014-11-071-13/+13
|
* fail! -> panic!Michael Gehring2014-10-302-10/+10
|
* Cert loading from PEM & restructuring Valerii Hiora2014-10-151-51/+6
| | | | | | - Added cert loading - Extracted X509 tests
* Correct init mutexes and locking functionValerii Hiora2014-10-141-22/+1
| | | | | | | | | `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-131-0/+8
|
* Refactor init and error handling codeJared Roesch2014-10-112-21/+31
| | | | | Move common ffi initialization code to 'ffi::init()' and the initialization of error handling to a a shared location.
* BN_is_zero as a Rust functionValerii Hiora2014-10-091-13/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Although wrapping was relatively easy it basically meant that we depend on C compilation which becomes nightmare as soon as multiple platforms are used. I’ve got a huge pain once iOS was involved with 3 device archs and 2 simulator arches to support, not mentioning different set of include and lib flags. So there are 2 different approaches: - continue this way, maintaining all compilation issues like like managing correct flags, providing correct paths and so on. This way our Makefile will grow extremely fast and will actually take more efforts to maintain. - doing it pure Rust way. In this case we provide all the macros expansions inside our wrappers and there should be no other way to access raw data other than through those wrappers. It might be fragile if OpenSSL internal data structures will ever change, but I think (or hope) it is pretty stable and wouldn’t change anytime soon. This PR eliminates `BN_is_zero` at all from public API. It’s functionality is implemented in `BigNum.is_zero` and should be enough. Additional notes: 1. I’ve moved BIGNUM into `bn` so it could access fields directly and keep it as an opaque structure for everyone else 2. I’ve kept empty Makefile as I hope to land `feature-matrix` branch soon and I don’t like merging deleted/added file conflicts.
* Minor doc fixes and feature mentionsValerii Hiora2014-10-081-5/+7
|
* Revert "Fix #65: failing test case"Steven Fackler2014-10-072-2/+2
|
* Merge pull request #66 from jroesch/fix-failing-testSteven Fackler2014-10-072-2/+2
|\ | | | | Fix #65: failing test case
| * Fix #65: failing test caseJared Roesch2014-10-062-2/+2
| |
* | Merge pull request #67 from vhbit/membio-eofSteven Fackler2014-10-071-1/+17
|\ \ | | | | | | Fixed incorrect EOF handling in MemBio, added error description
| * | Fixed incorrect EOF handling in MemBio, added error descriptionValerii Hiora2014-10-071-1/+17
| | | | | | | | | | | | Actually, EOF wasn't handled at all and it caused `mem_bio.read_to_end()` to fail. Which in turn failed all `write_pem` implementations.
* | | Merge pull request #71 from vhbit/path-izationSteven Fackler2014-10-072-7/+7
|\ \ \ | |/ / |/| | Using `Path`s instead of plain strings
| * | Using `Path`s instead of plain stringsValerii Hiora2014-10-072-7/+7
| |/ | | | | Refs #45
* / Potential fix for #68Valerii Hiora2014-10-071-0/+13
|/
* Ignore error string textSteven Fackler2014-10-051-0/+1
| | | | cc #65
* Load crypto error stringsJared Roesch2014-10-051-1/+2
|
* Fix error messagesJared Roesch2014-10-051-3/+3
|
* Address CR comments and add a testJared Roesch2014-10-051-9/+21
|
* Make errors human readableJared Roesch2014-10-052-9/+11
| | | | Change error messages from numeric codes to human readable strings. This makes debugging failures much easier.
* Changes made to support 0.12.0-dev ( October 2, 2014 )D.K2014-10-041-1/+1
|
* Simpler setter for verify with dataValerii Hiora2014-10-042-3/+5
| | | | | There is no need in wrapping function in option as there is no sense in providing data without function.