summaryrefslogtreecommitdiff
path: root/src
Commit message (Collapse)AuthorAgeFilesLines
...
* Bump parking_lot from 0.11.2 to 0.12.1 in /src/rust (#8606)dependabot[bot]2023-03-251-16/+14
| | | | | | | | | | | | | | | | Bumps [parking_lot](https://github.com/Amanieu/parking_lot) from 0.11.2 to 0.12.1. - [Release notes](https://github.com/Amanieu/parking_lot/releases) - [Changelog](https://github.com/Amanieu/parking_lot/blob/master/CHANGELOG.md) - [Commits](https://github.com/Amanieu/parking_lot/compare/0.11.2...0.12.1) --- updated-dependencies: - dependency-name: parking_lot dependency-type: indirect update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* Fix handling very large pointer values (32-bit) (#8602)Alex Gaynor2023-03-252-3/+3
|
* Drop our own intern! macro in favor of pyo3's (#8596)Alex Gaynor2023-03-2417-323/+266
|
* Upgrade to pyo3 0.18 (#6935)Alex Gaynor2023-03-2417-242/+192
| | | | | | | * Upgrade to pyo3 0.16 * Upgrade to pyo3 0.17 * Upgrade to pyo3 0.18
* Use the DEFINED BY functionality from rust-asn1 in pkcs7.rs (#7848)Alex Gaynor2023-03-252-23/+21
|
* remove unused binding (#8593)Alex Gaynor2023-03-251-1/+0
|
* remove unused warning constant (#8594)Alex Gaynor2023-03-251-1/+0
|
* fix copyright years (#8595)Alex Gaynor2023-03-251-1/+1
| | | | | * fix copyright year in docs * update copyright year
* update MSRV 1.48.0 -> 1.56.0 (#8587)Paul Kehrer2023-03-242-5/+5
| | | | | * update MSRV 1.48.0 -> 1.56.0 * bump some deps for MSRV
* drop python 3.6 support (#8448)Paul Kehrer2023-03-242-15/+2
| | | | | | | | | | | * drop python 3.6 support * Update tests/hazmat/bindings/test_openssl.py Co-authored-by: Alex Gaynor <alex.gaynor@gmail.com> --------- Co-authored-by: Alex Gaynor <alex.gaynor@gmail.com>
* drop support for openssl < 1.1.1d (#8449)Paul Kehrer2023-03-2410-883/+7
| | | | | This removes the OS random engine, which contained the only CPython PSF licensed code in the repository. Accordingly, that license has now been removed.
* reopen main for 41 dev (#8584)Paul Kehrer2023-03-241-1/+1
|
* version bump and changelog for 40.0.0 (#8583)40.0.0Paul Kehrer2023-03-241-1/+1
|
* Migrate x25519 to use rust-openssl (#7933)Alex Gaynor2023-03-2412-157/+364
|
* Bump openssl from 0.10.47 to 0.10.48 in /src/rust (#8581)dependabot[bot]2023-03-242-5/+5
| | | | | | | | | | | | | | | Bumps [openssl](https://github.com/sfackler/rust-openssl) from 0.10.47 to 0.10.48. - [Release notes](https://github.com/sfackler/rust-openssl/releases) - [Commits](https://github.com/sfackler/rust-openssl/compare/openssl-v0.10.47...openssl-v0.10.48) --- updated-dependencies: - dependency-name: openssl dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* Refs #8570 -- lower cxx version to match our MSRV (#8572)Alex Gaynor2023-03-221-8/+8
|
* handle case where WIN32_LEAN_AND_MEAN may already be defined (#8571)Paul Kehrer2023-03-221-0/+2
|
* Remove unused error bindings (#8568)Alex Gaynor2023-03-221-3/+0
|
* Bump proc-macro2 from 1.0.52 to 1.0.53 in /src/rust (#8565)dependabot[bot]2023-03-221-2/+2
| | | | | | | | | | | | | | | Bumps [proc-macro2](https://github.com/dtolnay/proc-macro2) from 1.0.52 to 1.0.53. - [Release notes](https://github.com/dtolnay/proc-macro2/releases) - [Commits](https://github.com/dtolnay/proc-macro2/compare/1.0.52...1.0.53) --- updated-dependencies: - dependency-name: proc-macro2 dependency-type: indirect update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* Bump iana-time-zone from 0.1.53 to 0.1.54 in /src/rust (#8561)dependabot[bot]2023-03-211-3/+69
| | | | | | | | | | | | | | | | Bumps [iana-time-zone](https://github.com/strawlab/iana-time-zone) from 0.1.53 to 0.1.54. - [Release notes](https://github.com/strawlab/iana-time-zone/releases) - [Changelog](https://github.com/strawlab/iana-time-zone/blob/main/CHANGELOG.md) - [Commits](https://github.com/strawlab/iana-time-zone/compare/v0.1.53...v0.1.54) --- updated-dependencies: - dependency-name: iana-time-zone dependency-type: indirect update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* Added support for handling python buffers in Rust code (#8556)Alex Gaynor2023-03-215-4/+61
| | | This is extra mega cursed, and strictly speaking unsound. It does, however, match the status quo ante, where someone mutating a buffer while its being used in cffi code will basically always be UB.
* Simplify/unify Rust and Python OpenSSL error handling (#8552)Alex Gaynor2023-03-2010-120/+91
|
* Bump openssl from 0.10.46 to 0.10.47 in /src/rust (#8550)dependabot[bot]2023-03-202-5/+5
| | | | | | | | | | | | | | | Bumps [openssl](https://github.com/sfackler/rust-openssl) from 0.10.46 to 0.10.47. - [Release notes](https://github.com/sfackler/rust-openssl/releases) - [Commits](https://github.com/sfackler/rust-openssl/compare/openssl-v0.10.46...openssl-v0.10.47) --- updated-dependencies: - dependency-name: openssl dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* Support handling OpenSSL errors from Rust code (#8530)Alex Gaynor2023-03-1618-141/+221
|
* modify the python path in build_openssl.py instead of build.rs (#8528)Paul Kehrer2023-03-152-16/+7
| | | | | * modify the python path in build_openssl.py instead of build.rs * Remove unused import
* Rename PyAsn1Error, it's getting more general (#8527)Alex Gaynor2023-03-1513-222/+306
|
* Bump pkg-config from 0.3.25 to 0.3.26 in /src/rust (#8526)dependabot[bot]2023-03-151-2/+2
| | | | | | | | | | | | | | | | Bumps [pkg-config](https://github.com/rust-lang/pkg-config-rs) from 0.3.25 to 0.3.26. - [Release notes](https://github.com/rust-lang/pkg-config-rs/releases) - [Changelog](https://github.com/rust-lang/pkg-config-rs/blob/master/CHANGELOG.md) - [Commits](https://github.com/rust-lang/pkg-config-rs/compare/0.3.25...0.3.26) --- updated-dependencies: - dependency-name: pkg-config dependency-type: indirect update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* Ressurect the PoC of OpenSSL from Rust (#7164)Alex Gaynor2023-03-159-8/+302
|
* Bump quote from 1.0.25 to 1.0.26 in /src/rust (#8515)dependabot[bot]2023-03-141-2/+2
| | | | | | | | | | | | | | | Bumps [quote](https://github.com/dtolnay/quote) from 1.0.25 to 1.0.26. - [Release notes](https://github.com/dtolnay/quote/releases) - [Commits](https://github.com/dtolnay/quote/compare/1.0.25...1.0.26) --- updated-dependencies: - dependency-name: quote dependency-type: indirect update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* Bump quote from 1.0.23 to 1.0.25 in /src/rust (#8510)dependabot[bot]2023-03-131-2/+2
| | | | | | | | | | | | | | | Bumps [quote](https://github.com/dtolnay/quote) from 1.0.23 to 1.0.25. - [Release notes](https://github.com/dtolnay/quote/releases) - [Commits](https://github.com/dtolnay/quote/compare/1.0.23...1.0.25) --- updated-dependencies: - dependency-name: quote dependency-type: indirect update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* Bump chrono from 0.4.23 to 0.4.24 in /src/rust (#8509)dependabot[bot]2023-03-122-3/+3
| | | | | | | | | | | | | | | | Bumps [chrono](https://github.com/chronotope/chrono) from 0.4.23 to 0.4.24. - [Release notes](https://github.com/chronotope/chrono/releases) - [Changelog](https://github.com/chronotope/chrono/blob/main/CHANGELOG.md) - [Commits](https://github.com/chronotope/chrono/compare/v0.4.23...v0.4.24) --- updated-dependencies: - dependency-name: chrono dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* Bump proc-macro2 from 1.0.51 to 1.0.52 in /src/rust (#8508)dependabot[bot]2023-03-131-2/+2
| | | | | | | | | | | | | | | Bumps [proc-macro2](https://github.com/dtolnay/proc-macro2) from 1.0.51 to 1.0.52. - [Release notes](https://github.com/dtolnay/proc-macro2/releases) - [Commits](https://github.com/dtolnay/proc-macro2/compare/1.0.51...1.0.52) --- updated-dependencies: - dependency-name: proc-macro2 dependency-type: indirect update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* Stop validating keys in ECDH exchange (#8490)Alex Gaynor2023-03-113-4/+26
| | | | | The theory here is that we're already doing sufficient validation key loading, and this is purely duplicative. Note that there's at least _some_ validationg that was previously occurring only ECDH, the LowOrderPublic check that can be seen in wycheproof.
* Bump libc from 0.2.139 to 0.2.140 in /src/rust (#8491)dependabot[bot]2023-03-101-2/+2
| | | | | | | | | | | | | | | Bumps [libc](https://github.com/rust-lang/libc) from 0.2.139 to 0.2.140. - [Release notes](https://github.com/rust-lang/libc/releases) - [Commits](https://github.com/rust-lang/libc/compare/0.2.139...0.2.140) --- updated-dependencies: - dependency-name: libc dependency-type: indirect update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* Small cleanups: (#8476)Alex Gaynor2023-03-091-18/+22
| | | | - Avoid typing.cast - Consolidate bn_ctx allocations
* replace use of EC_KEY_set_public_key_affine_coordinates (#8475)Paul Kehrer2023-03-092-3/+45
| | | | | | | | | | | | EC_KEY_set_public_key_affine_coordinates calls EC_KEY_check_key, which checks the point isn't at infinity, that it is on the curve (which has already been done by EC_POINT_set_affine_coordinates), and that the private scalar matches the public point. We don't want to do expensive checks twice, so instead we swap to calling EC_POINT_set_affine_coordinates directly and implement a private scalar matches public point check of our own. Also we no longer call deprecated functions.
* Make Union type aliases a documented public API (#8168)Marti Raudsepp2023-03-0716-104/+154
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Rename Union type aliases to CamelCase Many `typing.Union` type aliases were previously using `UPPER_SNAKE_CASE`, but Python's convention is `CamelCase` for these (e.g. https://docs.python.org/3/library/typing.html#type-aliases) * Add utils.deprecated for the old non-underscore type aliases * Added documentation for new type aliases & minor tweaks * Use 'versionadded:: 40.0.0' * Fix CertificatePublicKeyTypes vs CertificateIssuerPublicKeyTypes. Rename CertificatePrivateKeyTypes to CertificateIssuerPrivateKeyTypes * Fix imports (ruff) * Fix one more versionadded * Tweak docs & Reorder: CertificateIssuerPublicKeyTypes before CertificateIssuerPrivateKeyTypes * Fix test mypy errors using cast() * Fix black, oops * Revert "Fix black, oops" This reverts commit 85344e231d697bdc0940e105f7aed729445f9743. * Revert "Fix test mypy errors using cast()" This reverts commit b272d8ca95fbbbc62060663f9e8930a139a7a43e. * Revert type of SubjectKeyIdentifier.from_public_key arg * Changelog tweak
* Remove use of deprecated EC functions (#8459)Alex Gaynor2023-03-064-61/+13
|
* Bump scratch from 1.0.4 to 1.0.5 in /src/rust (#8457)dependabot[bot]2023-03-061-2/+2
| | | | | | | | | | | | | | | Bumps [scratch](https://github.com/dtolnay/scratch) from 1.0.4 to 1.0.5. - [Release notes](https://github.com/dtolnay/scratch/releases) - [Commits](https://github.com/dtolnay/scratch/compare/1.0.4...1.0.5) --- updated-dependencies: - dependency-name: scratch dependency-type: indirect update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* Bump cxx from 1.0.91 to 1.0.92 in /src/rust (#8456)dependabot[bot]2023-03-061-6/+6
| | | | | | | | | | | | | | | Bumps [cxx](https://github.com/dtolnay/cxx) from 1.0.91 to 1.0.92. - [Release notes](https://github.com/dtolnay/cxx/releases) - [Commits](https://github.com/dtolnay/cxx/compare/1.0.91...1.0.92) --- updated-dependencies: - dependency-name: cxx dependency-type: indirect update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* Bump cxx-build from 1.0.91 to 1.0.92 in /src/rust (#8455)dependabot[bot]2023-03-061-2/+2
| | | | | | | | | | | | | | | Bumps [cxx-build](https://github.com/dtolnay/cxx) from 1.0.91 to 1.0.92. - [Release notes](https://github.com/dtolnay/cxx/releases) - [Commits](https://github.com/dtolnay/cxx/compare/1.0.91...1.0.92) --- updated-dependencies: - dependency-name: cxx-build dependency-type: indirect update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* Bump unicode-ident from 1.0.7 to 1.0.8 in /src/rust (#8453)dependabot[bot]2023-03-061-2/+2
| | | | | | | | | | | | | | | Bumps [unicode-ident](https://github.com/dtolnay/unicode-ident) from 1.0.7 to 1.0.8. - [Release notes](https://github.com/dtolnay/unicode-ident/releases) - [Commits](https://github.com/dtolnay/unicode-ident/compare/1.0.7...1.0.8) --- updated-dependencies: - dependency-name: unicode-ident dependency-type: indirect update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* deprecate support for OpenSSL <1.1.1d (#8444)Paul Kehrer2023-03-051-0/+18
| | | | | * deprecate support for OpenSSL <1.1.1d * use an actually exported constant
* Add an ignore for the newest ruff (#8440)Alex Gaynor2023-03-051-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | * Add an ignore for the newest ruff Clearly document why we have each of our ignores * Bump ruff from 0.0.253 to 0.0.254 Bumps [ruff](https://github.com/charliermarsh/ruff) from 0.0.253 to 0.0.254. - [Release notes](https://github.com/charliermarsh/ruff/releases) - [Changelog](https://github.com/charliermarsh/ruff/blob/main/BREAKING_CHANGES.md) - [Commits](https://github.com/charliermarsh/ruff/compare/v0.0.253...v0.0.254) --- updated-dependencies: - dependency-name: ruff dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com> --------- Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* Bump unicode-ident from 1.0.6 to 1.0.7 in /src/rust (#8439)dependabot[bot]2023-03-041-2/+2
| | | | | | | | | | | | | | | Bumps [unicode-ident](https://github.com/dtolnay/unicode-ident) from 1.0.6 to 1.0.7. - [Release notes](https://github.com/dtolnay/unicode-ident/releases) - [Commits](https://github.com/dtolnay/unicode-ident/compare/1.0.6...1.0.7) --- updated-dependencies: - dependency-name: unicode-ident dependency-type: indirect update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* Bump scratch from 1.0.3 to 1.0.4 in /src/rust (#8438)dependabot[bot]2023-03-041-2/+2
| | | | | | | | | | | | | | | Bumps [scratch](https://github.com/dtolnay/scratch) from 1.0.3 to 1.0.4. - [Release notes](https://github.com/dtolnay/scratch/releases) - [Commits](https://github.com/dtolnay/scratch/compare/1.0.3...1.0.4) --- updated-dependencies: - dependency-name: scratch dependency-type: indirect update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* remove final unused bindings from x509_vfy (#8431)Alex Gaynor2023-03-041-7/+0
|
* remove one last unused ssl function (#8430)Alex Gaynor2023-03-041-2/+0
|
* remove unused ssl bindings (#8428)Alex Gaynor2023-03-041-11/+0
|
* Update to the new wycheproof (#8403)Alex Gaynor2023-02-281-1/+4
|