aboutsummaryrefslogtreecommitdiff
path: root/src
Commit message (Collapse)AuthorAgeFilesLines
* 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
| |
* | BN_is_zero as a Rust functionValerii Hiora2014-10-093-34/+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.
* 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
* Minor doc fixes and feature mentionsValerii Hiora2014-10-083-7/+26
|
* 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
* / Potential fix for #68Valerii Hiora2014-10-072-3/+19
|/
* Better error handling in cert generationValerii Hiora2014-10-065-31/+103
| | | | | Now it should correctly free all resources in case of failure.
* Ignore error string textSteven Fackler2014-10-051-0/+1
| | | | cc #65
* 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-041-2/+7
|\ | | | | 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-041-2/+7
| | | | | | | | | | | | | | | | | | 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
| |
* | Add bindings to CRYPTO_memcmpAlex Crichton2014-10-013-1/+43
|/ | | | This should help other projects use a constant-time memory comparison.
* Unification and explicity in FFI type declsValerii Hiora2014-09-302-19/+19
|
* Fixed mut_null deprecation warningsValerii Hiora2014-09-302-5/+5
|
* 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
* | Removed BN_sub_word signature for the time being.Chris Cole2014-09-281-1/+0
| |
* | Removing unused signatures for the time being.Chris Cole2014-09-271-3/+0
| |
* | Use CRYPTO_free to free the result of BN_bn2bin.Chris Cole2014-09-271-6/+2
| |
* | Added signatures forBN_sub_word, BN_is_zero, BN_is_one, BN_is_word,Chris Cole2014-09-271-4/+53
|/ | | | | | | | and BN_is_odd. Fixed incorrect BN_mod_inverse signature. Added signature for BN_bn2dec. Added trait implementations for Zero, One, and fmt::Show. Added to_dec_str function to BigNum impl.
* Merge pull request #46 from vhbit/tls1-2-supportSteven Fackler2014-09-252-4/+27
|\ | | | | Enabling TLS1.2 support
| * TLS 1_1, 1_2, Ssl 2 is enabled by featuresValerii Hiora2014-09-232-5/+12
| |
| * Enabling TLS1.2 supportValerii Hiora2014-09-232-1/+17
| | | | | | | | | | | | | | Unfortunately OS X comes with 0.9.8 bundled. There is a way to install a recent version through homebrew, however it is extremely hard to make it link agains brewed version without tricking link version
* | Fix deprecation warningsMichael Gehring2014-09-232-29/+34
|/
* Get certificate fingerprintValerii Hiora2014-09-202-2/+28
|
* Merge pull request #47 from vhbit/cert-key-authSteven Fackler2014-09-192-7/+45
|\ | | | | Allow to set cert/key pair
| * Fixed documentation stringValerii Hiora2014-09-171-1/+1
| |
| * Allow to set cert/key pairValerii Hiora2014-09-172-7/+45
| |
* | Update for rust rfc 52 changesMichael Gehring2014-09-173-6/+6
| |
* | Switch to the more sane RSA PUBKEY functionMathijs van de Nes2014-09-121-4/+4
| | | | | | | | | | | | | | For differences, see: http://openssl.6102.n7.nabble.com/difference-between-i2d-PUBKEY-and-i2d-PublicKey-td43869.html This will break loading of *public* keys generated before this commit
* | Switch PKey load/save functions to RSA specificMathijs van de Nes2014-09-121-15/+17
|/
* Remove failing constructor wrappersSteven Fackler2014-09-052-45/+28
|