summaryrefslogtreecommitdiff
path: root/src/OpenSSL/_util.py
Commit message (Collapse)AuthorAgeFilesLines
* Add inline type annotations (#1089)lovetox2022-05-201-7/+9
| | | | | | | | | | | | | | | | | * crypto: Add type annotations * Don’t redefine var mypy complains about the redefinition * _util: Add type annotations * rand: Add type annotations * Prepare package & CI for running mypy * fix toxenv name Co-authored-by: Maximilian Hils <github@maximilianhils.com>
* Rename path_string to path_bytes since that's what it actually does (#1067)Alex Gaynor2021-12-201-7/+7
|
* Remove native, it's behavior is confusing (#1069)Alex Gaynor2021-12-201-18/+1
| | | Instead just decode stuff at the call-sites -- 100% of which were passing bytes
* Accept pathlib.Path as a valid path (#1027)Salvo 'LtWorf' Tomaselli2021-12-191-7/+8
| | | | | And also whatever supports the protocol. Way more pythonic now!
* Remove call to init_static_locks (#1066)Alex Gaynor2021-12-151-1/+0
| | | It has been a no-op (when called from an _instance_ of Binding) since 3.3
* py27 going, going, gone (#1047)Paul Kehrer2021-10-041-24/+8
| | | | | | | | | | | * py27 going, going, gone * black * more black * ok then * forgot to remove pypy2
* cleanup from_buffer now that we just use cffi natively (#989)masterAlex Gaynor2021-01-161-3/+0
|
* newer pypy (#928)Paul Kehrer2020-08-031-12/+1
| | | | | | | * newer pypy * missed one * we don't support ancient cffi any more
* Paint it Black by the Rolling Stones (#920)Alex Gaynor2020-07-231-6/+14
|
* Random cleanup around our usage of binary_type (#879)Alex Gaynor2019-11-181-4/+4
|
* use _ffi.from_buffer() to support bytearray (#852)Daniel Holth2019-11-181-0/+14
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * use _ffi.from_buffer(buf) in send, to support bytearray * add bytearray test * update CHANGELOG.rst * move from_buffer before 'buffer too long' check * context-managed from_buffer + black * don't shadow buf in send() * test return count for sendall * test sending an array * fix test * also use from_buffer in bio_write * de-format _util.py * formatting * add simple bio_write tests * wrap line
* Fix for Python 4 (#862)Hugo van Kemenade2019-08-291-8/+8
| | | | | | * Fix for Python 4 * Fix for Python 4
* Don't zero memory when we don't have to. (#578)Cory Benfield2016-11-281-0/+6
|
* Pluck more unrelated bits from #422Hynek Schlawack2016-03-131-2/+1
|
* Assert against True explicitlyHynek Schlawack2016-03-111-1/+1
|
* Fix set_cipher_list on modern OpenSSLHynek Schlawack2016-03-111-2/+19
| | | | Also port forward a few changes from #422.
* Move package into srcHynek Schlawack2015-10-171-0/+125
Prevents accidental imports when running tests.