aboutsummaryrefslogtreecommitdiff
path: root/src/ssl
Commit message (Collapse)AuthorAgeFilesLines
* 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.
* User-provided data in verifyValerii Hiora2014-10-022-3/+129
|
* Fixed mut_null deprecation warningsValerii Hiora2014-09-301-1/+1
|
* single `ffi` moduleValerii Hiora2014-09-303-124/+7
|
* Certificate/pkey generation & PEM exportValerii Hiora2014-09-263-310/+49
| | | Required quite a lot of refactoring
* 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
* 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-171-4/+4
|/
* Remove failing constructor wrappersSteven Fackler2014-09-052-45/+28
|
* Merge pull request #39 from andrew-d/andrew-support-tls-sniSteven Fackler2014-09-052-10/+44
|\ | | | | Allow setting hostname to support TLS-SNI
| * Make Ssl public, add new constructor to SslStream that takes an Ssl instanceAndrew Dunham2014-09-041-10/+15
| |
| * Allow setting hostname to support TLS-SNIAndrew Dunham2014-09-042-0/+29
| |
* | Merge pull request #38 from andrew-d/andrew-get-compressionSteven Fackler2014-09-042-0/+20
|\ \ | | | | | | Allow getting the compression used in a connection
| * | Allow getting the compression used in a connectionAndrew Dunham2014-09-042-0/+20
| |/
* | Merge pull request #37 from andrew-d/andrew-fix-lintsSteven Fackler2014-09-041-1/+1
|\ \ | | | | | | Fix lints for non snake-case functions
| * | Fix lints for non snake-case functionsAndrew Dunham2014-09-041-1/+1
| |/
* / Derive things on SslMethodAndrew Dunham2014-09-041-0/+1
|/
* Derive thigs for error typesSteven Fackler2014-08-101-2/+2
|
* Shift directory structureSteven Fackler2014-08-034-0/+920