diff options
author | David Carlier <dcarlier@afilias.info> | 2019-05-29 10:58:11 (GMT) |
---|---|---|
committer | Inada Naoki <songofacandy@gmail.com> | 2019-05-29 10:58:11 (GMT) |
commit | d8b755167235e0621814eb5ac39163b3db6879bb (patch) | |
tree | 91f0f085d333ff12e72ff785b5b653ccc596922c /Modules/_blake2/impl | |
parent | 4dd3e3f9bbd320f0dd556688e04db0a6b55a7b52 (diff) | |
download | cpython-d8b755167235e0621814eb5ac39163b3db6879bb.zip cpython-d8b755167235e0621814eb5ac39163b3db6879bb.tar.gz cpython-d8b755167235e0621814eb5ac39163b3db6879bb.tar.bz2 |
bpo-33164: blake2 fix for HP-UX (GH-13633)
Diffstat (limited to 'Modules/_blake2/impl')
-rw-r--r-- | Modules/_blake2/impl/blake2-impl.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Modules/_blake2/impl/blake2-impl.h b/Modules/_blake2/impl/blake2-impl.h index 5bebd83..9d2fbb7 100644 --- a/Modules/_blake2/impl/blake2-impl.h +++ b/Modules/_blake2/impl/blake2-impl.h @@ -140,6 +140,9 @@ static inline void secure_zero_memory(void *v, size_t n) { #if defined(_WIN32) || defined(WIN32) SecureZeroMemory(v, n); +#elif defined(__hpux) + static void *(*const volatile memset_v)(void *, int, size_t) = &memset; + memset_v(v, 0, n); #else // prioritize first the general C11 call #if defined(HAVE_MEMSET_S) |