aboutsummaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* Merge pull request #62 from vhbit/feature-matrixrust-0.12Steven Fackler2014-10-102-7/+11
|\ | | | | Feature matrix & conditioned doc generation
| * Feature matrix & conditioned doc generationValerii Hiora2014-10-102-7/+11
|/ | | | | | | | | | | | - Ensures that library builds and passes all tests without any features and with `tlsv1_1`, `tlsv1_2` features enabled. Note, that `sslv2` isn’t in test case because on modern linux (like on Travis servers) `SSLv2_method` isn’t in `libssl.so` so it builds fine but fails on linking tests. - For simplification it generates docs after every build, but uploads them once - if it is `master` branch and not a pull request.
* Merge pull request #78 from alexcrichton/updateSteven Fackler2014-10-101-88/+88
|\ | | | | Prepare for s/static/const/
| * Prepare for s/static/const/Alex Crichton2014-10-091-88/+88
|/
* Merge pull request #75 from kinghajj/change-final-to-finalizeSteven Fackler2014-10-093-12/+12
|\ | | | | "final" is now a reserved word, so change occurrences to "finalize".
| * "final" is now a reserved word, so change occurrences to "finalize".Samuel Fredrickson2014-10-093-12/+12
| |
* | Merge pull request #76 from vhbit/bn-zero-intSteven Fackler2014-10-095-44/+16
|\ \ | |/ |/| BN_is_zero as a Rust function
| * BN_is_zero as a Rust functionValerii Hiora2014-10-095-44/+16
|/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
* Merge pull request #74 from vhbit/doc-samplesSteven Fackler2014-10-082-1/+31
|\ | | | | X509 Generator sample
| * X509 Generator sampleValerii Hiora2014-10-082-1/+31
| | | | | | | | Forcing static linking for lib wrapped as in other case doc tests fail to locate the static library
* | Merge pull request #73 from vhbit/minor-doc-fixesSteven Fackler2014-10-073-7/+26
|\| | | | | Minor doc fixes and feature mentions
| * Minor doc fixes and feature mentionsValerii Hiora2014-10-083-7/+26
|/
* Merge pull request #72 from sfackler/revert-66-fix-failing-testSteven Fackler2014-10-072-2/+2
|\ | | | | Revert "Fix #65: failing test case"
| * 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-073-8/+50
|\ \ | | | | | | Fixed incorrect EOF handling in MemBio, added error description
| * | Fixed incorrect EOF handling in MemBio, added error descriptionValerii Hiora2014-10-073-8/+50
| | | | | | | | | | | | 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
* | Merge pull request #69 from vhbit/bn-zero-fixSteven Fackler2014-10-073-6/+27
|\ \ | |/ |/| Fixes #68: error on linking `bn_is_zero`
| * Potential fix for #68Valerii Hiora2014-10-073-6/+27
|/
* Merge pull request #60 from vhbit/cert-gen-cleanupSteven Fackler2014-10-065-31/+103
|\ | | | | Better error handling in cert generation
| * Better error handling in cert generationValerii Hiora2014-10-065-31/+103
|/ | | | | Now it should correctly free all resources in case of failure.
* Ignore stderr from openssl s_serverSteven Fackler2014-10-051-1/+1
|
* Ignore error string textSteven Fackler2014-10-051-0/+1
| | | | cc #65
* Merge pull request #59 from jroesch/better-errorsSteven Fackler2014-10-053-10/+32
|\ | | | | Make errors human readable
| * Load crypto error stringsJared Roesch2014-10-052-2/+4
| |
| * 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-053-9/+17
|/ | | | Change error messages from numeric codes to human readable strings. This makes debugging failures much easier.
* Clean up warningsSteven Fackler2014-10-042-2/+2
|
* Changes made to support 0.12.0-dev ( October 2, 2014 )D.K2014-10-042-5/+3
|
* Merge pull request #64 from reem/fix/big-num-is-zeroSteven Fackler2014-10-045-2/+17
|\ | | | | Add a dummy bn_is_zero C dependency to wrap BN_is_zero
| * Add a dummy bn_is_zero C dependency to wrap BN_is_zeroJonathan Reem2014-10-045-2/+17
| | | | | | | | | | | | | | | | | | This is necessary because on some architectures BN_is_zero is a CPP macro, so trying to link against it in an `extern "C"` block causes a linker error. This also introduces a build command to Cargo to compile the bn_is_zero wrapper.
* | Merge pull request #58 from vhbit/verify-dataSteven Fackler2014-10-044-3/+133
|\ \ | |/ |/| User-provided data in verify
| * 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.
| * User-provided data in verifyValerii Hiora2014-10-024-3/+131
| |
* | Merge pull request #61 from alexcrichton/memcmpSteven Fackler2014-10-013-1/+43
|\ \ | |/ |/| Add bindings to CRYPTO_memcmp
| * Add bindings to CRYPTO_memcmpAlex Crichton2014-10-013-1/+43
|/ | | | This should help other projects use a constant-time memory comparison.
* Merge pull request #57 from vhbit/mut-cleanupSteven Fackler2014-09-304-24/+24
|\ | | | | Clean up of mut/const types in `ffi` and also `mut_null` -> `null_mut`
| * Unification and explicity in FFI type declsValerii Hiora2014-09-302-19/+19
| |
| * Fixed mut_null deprecation warningsValerii Hiora2014-09-302-5/+5
|/
* Merge pull request #56 from vhbit/single-ffiSteven Fackler2014-09-3015-649/+571
|\ | | | | Single `ffi` module
| * single `ffi` moduleValerii Hiora2014-09-3015-649/+571
|/
* Merge pull request #53 from vhbit/cert-genSteven Fackler2014-09-309-313/+782
|\ | | | | Certificate/PKey generation & PEM export
| * Addressed review commentsValerii Hiora2014-09-284-14/+5
| | | | | | | | | | | | | | | | | | | | | | | | - fixed invalid file permissions - removed redundand mem::transmute - removed outdated FIXME's - removed redundand temporary variable - removed macro_export for internal macros
| * Certificate/pkey generation & PEM exportValerii Hiora2014-09-269-313/+791
| | | | | | Required quite a lot of refactoring
* | Merge pull request #55 from cjcole/masterSteven Fackler2014-09-271-4/+45
|\ \ | |/ |/| Additions and one bug fix (BN_mod_inverse).
| * Removed BN_sub_word signature for the time being.Chris Cole2014-09-281-1/+0
| |