aboutsummaryrefslogtreecommitdiff
path: root/src
Commit message (Collapse)AuthorAgeFilesLines
* Chase std API stability changesGleb Kozyrev2015-02-031-1/+1
|
* Derive Debug instead of deprecated ShowGleb Kozyrev2015-02-011-2/+2
|
* Fix for stability changesSteven Fackler2015-01-291-3/+2
|
* Avoid duplicate calls to *_Final when dropping Hasher and HMACGleb Kozyrev2015-01-292-2/+2
| | | | An assertion triggered in finalize() would lead to drop() erroneously redoing the finalization. Set the state to Finalized unconditionally to prevent this.
* Rename crypto::hash::HashType -> TypeGleb Kozyrev2015-01-286-47/+49
| | | | | s/HashType/Type/ to follow the current Rust style. Import Type as HashType in modules where the name might be ambiguous. [breaking change]
* Change Hasher and HMAC APIs closer to std::hash modelGleb Kozyrev2015-01-283-176/+499
| | | | | | | | | | | - Implement Clone and std::io::Writer. - Reduce the API to write() and finish(). Contrary to std::hash, finish() resets the hasher immediately. - Add hmac::hmac() convenience fn. - Replace hash::evpmd() with HashType methods. - Add assertions as a crude check for failed calls into openssl. - Add examples and some tests. [breaking-change]
* Fix for IO changesSteven Fackler2015-01-288-32/+32
|
* Fix for upstream changesSteven Fackler2015-01-233-10/+17
|
* Bring ffi definitions closer to the originalsGleb Kozyrev2015-01-214-11/+12
| | | | | Add missing return types and fix imprecise type translations. Repair the fallout in the openssl crate.
* Drop execute bits on source filesSteven Fackler2015-01-162-0/+0
|
* Add Show implsSteven Fackler2015-01-091-3/+24
|
* Fix doctestv0.2.15Steven Fackler2015-01-091-0/+3
|
* Update to rust masterAlex Crichton2015-01-0912-92/+94
|
* Handle recent breaking changesValerii Hiora2015-01-078-62/+70
| | | | | | | - 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]>
* Merge remote-tracking branch 'upstream/master'Chris Cole2015-01-052-9/+25
|\
| * Fix for upstream changesSteven Fackler2015-01-042-9/+25
| |
* | Added use of ToCStr trait.Chris Cole2015-01-031-1/+1
| |
* | Merge remote-tracking branch 'upstream/master'Chris Cole2015-01-038-57/+69
|\|
| * Fix deprecation warningsSteven Fackler2015-01-036-28/+34
| |
| * Updated to master:Valerii Hiora2015-01-038-29/+35
| | | | | | | | | | | | - library stab issues - deriving -> derive - {mod} -> {self}
* | Added BN_add_word, BN_sub_word, BN_mul_word, BN_div_word.Chris Cole2015-01-021-6/+55
| | | | | | | | Removed BIGNUM_PTR struct.
* | Merge remote-tracking branch 'upstream/master'Chris Cole2015-01-022-31/+31
|\|
| * Array syntax falloutValerii Hiora2015-01-021-3/+3
| |
| * 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.
* | Merge remote-tracking branch 'upstream/master'Chris Cole2014-12-238-45/+62
|\| | | | | | | | | Conflicts: openssl-sys/src/lib.rs
| * 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
| |
* | Added BigNum::{from_dec_str,from_hex_str}, BN_dec2bn, and BN_hex2bn.Chris Cole2014-12-141-2/+27
| |
* | Added BigNum::one().Chris Cole2014-12-111-0/+4
| |
* | Use "ffi" namespace.Chris Cole2014-12-101-1/+1
| |
* | Merge remote-tracking branch 'upstream/master'Chris Cole2014-12-103-5/+20
|\|
| * 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
| |
* | Added mod_word.Chris Cole2014-12-101-2/+0
| |
* | Merge remote-tracking branch 'upstream/master'Chris Cole2014-11-2919-993/+1601
|\| | | | | | | | | Conflicts: src/bn/mod.rs
| * 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
| |