Commit Graph

37 Commits

Author SHA1 Message Date
Sebastian Rittau
8664482849 Bump OpenSSL to 24.1.* (#11816)
Mark a few classes and functions as deprecated

Closes: #11812
2024-04-24 07:58:52 -07:00
Sebastian Rittau
7d56cd9a6c Remove remaining bare Incompletes (#11768)
Enable Y065
2024-04-16 06:26:14 -07:00
Shantanu
88fa182253 Use PEP 570 syntax in third party stubs (#11554) 2024-03-10 14:11:43 +01:00
Thanos
1f3cf143a5 pyOpenSSL: Add DTLS_* constants (#11486) 2024-02-27 18:12:25 -08:00
Sebastian Rittau
ed97b42ee2 [pyOpenSSL] Update to 24.0.* (#11338) 2024-01-29 14:09:40 +01:00
Sebastian Rittau
b6eaadcfe5 Update typing_extensions imports in third-party stubs (#11245) 2024-01-05 15:40:13 +01:00
github-actions[bot]
c74c8b0507 Bump pyOpenSSL to 23.3.* (#10936)
Release: https://pypi.org/pypi/pyOpenSSL/23.3.0
Homepage: https://pyopenssl.org/
Repository: https://github.com/pyca/pyopenssl
Diff: https://github.com/pyca/pyopenssl/compare/23.2.0...23.3.0

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

---
Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
2023-10-29 10:01:38 +00:00
Jonathan Vanasco
4c1e94d8e0 Add missing constants to OpenSSL/crypto.pyi (#10345)
Adds typing for missing constants `TYPE_DH` and `TYPE_EC`

See https://github.com/pyca/pyopenssl/blob/main/src/OpenSSL/crypto.py#L94-L95
2023-06-21 20:21:17 +01:00
Sebastian Rittau
8f17863f0c [pyOpenSSL] Fix return type of SSLeay_version (#10037)
Closes: #10024
2023-04-12 15:01:30 +01:00
Alex Waygood
6fd7e36e80 Add default values for third-party stubs beginning with 'P' (#9957) 2023-03-27 18:58:53 +01:00
github-actions[bot]
65f188442c Update pyOpenSSL to 23.1.* (#9939)
Release: https://pypi.org/pypi/pyOpenSSL/23.1.0
Homepage: https://pyopenssl.org/
Diff: https://github.com/pyca/pyopenssl/compare/23.0.0...23.1.0

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

Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
2023-03-25 00:49:23 +00:00
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
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
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