Add a last-ditch memwipe() implementation for nss+old glibc
commit8cd091a8d3133e9e5363bc4a673011178e54ab5d
authorNick Mathewson <nickm@torproject.org>
Wed, 5 Sep 2018 20:34:01 +0000 (5 16:34 -0400)
committerNick Mathewson <nickm@torproject.org>
Wed, 5 Sep 2018 20:34:01 +0000 (5 16:34 -0400)
tree2393169f9a7d5d7cc590ddcaebdd29a9b310ea9f
parent06c14f920900f99935e0cf6072aeb50231464eba
Add a last-ditch memwipe() implementation for nss+old glibc

On new glibc versions, there's an explicit_bzero().  With openssl,
there's openssl_memwipe().

When no other approach works, use memwipe() and a memory barrier.
src/lib/crypt_ops/crypto_util.c