diff options
author | wsnipex <wsnipex@a1.net> | 2023-01-23 07:55:59 +0100 |
---|---|---|
committer | wsnipex <wsnipex@a1.net> | 2023-01-23 21:41:27 +0100 |
commit | d19e7ce7fcf5700d1e05aa21f63aa5e67e7c7cbe (patch) | |
tree | 0c7adf3d42fcd89af57858be48eb663c3c64abb2 /tools | |
parent | 1f3d0a8c7c17b3f66ac32726ec9561b7ccda77ad (diff) |
[depends] pycryptodome: fix revert-ctype.pythonapi-use.patch
Diffstat (limited to 'tools')
-rw-r--r-- | tools/depends/target/pythonmodule-pycryptodome/02-revert-ctype.pythonapi-use.patch | 16 |
1 files changed, 14 insertions, 2 deletions
diff --git a/tools/depends/target/pythonmodule-pycryptodome/02-revert-ctype.pythonapi-use.patch b/tools/depends/target/pythonmodule-pycryptodome/02-revert-ctype.pythonapi-use.patch index 8a9be2fa53..5881b516c0 100644 --- a/tools/depends/target/pythonmodule-pycryptodome/02-revert-ctype.pythonapi-use.patch +++ b/tools/depends/target/pythonmodule-pycryptodome/02-revert-ctype.pythonapi-use.patch @@ -1,6 +1,18 @@ --- a/lib/Crypto/Util/_raw_api.py +++ b/lib/Crypto/Util/_raw_api.py -@@ -200,8 +203,8 @@ +@@ -170,11 +170,6 @@ + null_pointer = None + cached_architecture = [] + +- def c_ubyte(c): +- if not (0 <= c < 256): +- raise OverflowError() +- return ctypes.c_ubyte(c) +- + def load_lib(name, cdecl): + if not cached_architecture: + # platform.architecture() creates a subprocess, so caching the +@@ -200,8 +195,8 @@ _c_ssize_t = ctypes.c_ssize_t _PyBUF_SIMPLE = 0 @@ -11,7 +23,7 @@ _py_object = ctypes.py_object _c_ssize_p = ctypes.POINTER(_c_ssize_t) -@@ -229,15 +230,9 @@ +@@ -229,15 +224,9 @@ def c_uint8_ptr(data): if byte_string(data) or isinstance(data, _Array): return data |