Commit Graph

30 Commits

Author SHA1 Message Date
Andy Doan
70f0f5488a pyOpenSSL: Introduce PARTIAL_CHAIN constant (#9727) 2023-02-13 18:36:14 +01:00
Avasam
6ac24ed923 Replace Any with Incomplete in many places (#9565) 2023-01-18 19:12:46 +00:00
Alex Waygood
e2d67bf703 Delete stubs for cryptography (#9459)
Typeshed's stubs for `paramiko` and `pyOpenSSL` now depend on the `cryptography` package, which now provides inline types at runtime
2023-01-10 22:16:11 +00:00
github-actions[bot]
69077291fe [stubsabot] Bump pyOpenSSL to 23.0.* (#9446)
Release: https://pypi.org/pypi/pyOpenSSL/23.0.0
Homepage: https://pyopenssl.org/
Diff: https://github.com/pyca/pyopenssl/compare/22.1.0...23.0.0

Stubsabot analysis of the diff between the two releases:
 - Total lines of Python code added: 83.
 - Total lines of Python code deleted: 37.

If stubtest fails for this PR:
- Leave this PR open (as a reminder, and to prevent stubsabot from opening another PR)
- Fix stubtest failures in another PR, then close this PR

Note that you will need to close and re-open the PR in order to trigger CI

Co-authored-by: stubsabot <>
2023-01-03 00:21:40 +00:00
Jelle Zijlstra
cff08b674a isort: Add more to extra_standard_library (#9098) 2022-11-04 22:56:40 -07:00
Nikita Sobolev
ce4668a132 Use Incomplete instead of Any in __getattr__ (#8903) 2022-10-15 18:54:21 +01:00
Sebastian Rittau
61de308e29 Update pyOpenSSL stubs to 22.1.* (#8838) 2022-10-04 05:29:16 -07:00
Nikita Sobolev
aba4bbd13b Add pyopenssl.rand module (#8435) 2022-07-29 09:24:15 +01:00
Nikita Sobolev
d4287a7f08 Add pyopenssl.version module (#8384) 2022-07-24 20:46:54 +01:00
Nikita Sobolev
eb9edf1bd6 Add missing methods to OpenSSL.SSL.Connection (#8374)
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
2022-07-24 16:48:41 +01:00
Shane Harvey
b47d771fc9 pyopenssl: data argument for set_ocsp_server_callback/set_ocsp_client_callback can be non-bytes (#8371) 2022-07-23 12:06:59 +01:00
Nikita Sobolev
60e5d96043 Add ocsp callback setters to OpenSSL.SSL (#8367) 2022-07-22 19:27:28 +01:00
Nikita Sobolev
83c6a48772 Add proto_version setters to OpenSSL.SSL (#8363) 2022-07-22 11:33:46 +02:00
Alex Waygood
74bd0d962b Third-party stubs: audit Callable[<parameters>, None] annotations (#8175) 2022-06-26 13:56:19 +02:00
Alex Waygood
653f2c6ba4 Third-party stubs: import from collections.abc where possible (#7637) 2022-04-16 14:52:57 +01:00
Alex Waygood
740193a8fc Use TypeAlias where possible for type aliases (#7630) 2022-04-15 18:01:00 -07:00
Alex Waygood
3ab250eec8 Use PEP 604 syntax wherever possible (#7493) 2022-03-16 16:01:33 +01:00
lovetox
9aeecb4c35 pyOpenSSL: Adapt to changes in 22.0.0 (#7080) 2022-01-30 00:05:59 +02:00
Alex Waygood
8d5d2520ac Use PEP 585 syntax wherever possible (#6717) 2021-12-28 11:31:43 +01:00
Alex Waygood
c685c2d6c6 Reduce use of deprecated typing aliases (#6358) 2021-11-23 10:56:43 +01:00
Maximilian Hils
ab25042efa Add pyOpenSSL 21 constants (#6273) 2021-11-10 07:59:42 +01:00
Akuli
994b69ef8f Use lowercase tuple where possible (#6170) 2021-10-14 17:18:19 -07:00
Sebastian Rittau
9f86972350 Add star to all non-0.1 versions (#6146) 2021-10-11 13:41:19 -07:00
Sebastian Rittau
32bc2161a1 Unbreak CI (#6093)
* Temporarily remove `cachetools` stubs. They will be added back soon, and meanwhile they will continue to be available on pypi.

* Remove `filelock.logger()` (no longer exists in filelock 3.2)

* Delete `OpenSSL.crypto` from stubtest whitelist

Co-authored-by: Akuli <akuviljanen17@gmail.com>
2021-09-30 14:18:47 +03:00
Jon Dufresne
b50ebafa79 Tighten return type of OpenSSL Connection.get_protocol_name() (#5972)
The method always returns a str. See implementation at:

30e82d4ba5/src/OpenSSL/SSL.py (L2420-L2430)

If version were ever None, it would raise an exception on the .decode()
line.
2021-08-27 10:54:27 -07:00
Akuli
ce11072dbe Big diff: use lower-case list and dict (#5888) 2021-08-08 09:26:35 -07:00
Vasily Zakharov
0baeef09a2 Fixed a bug in OpenSSL.crypto stub (#5796)
Co-authored-by: Vasily Zakharov <v.zakharov@wwpass.com>
2021-07-21 15:58:17 -07:00
Maximilian Hils
f58c9c7e7d Extend pyOpenSSL stubs (#5687) 2021-06-24 12:21:05 +02:00
Vasily Zakharov
4d981f87e3 FixpyOpenSSL stubs to pass stubtest (#5657)
* Fix missing default arguments.
* Fix wrong argument names.
* Add constructor to `_EllipticCurve` and remove `name`.
2021-06-17 23:02:35 +02:00
Sebastian Rittau
a98fceca2f Rename openssl-python to pyOpenSSL (#5649)
Remove stubtest allowlist

Set package version
2021-06-16 08:22:45 -07:00