diff options
| author | Philip Kaufmann <[email protected]> | 2012-11-08 19:38:49 +0100 |
|---|---|---|
| committer | Luke Dashjr <[email protected]> | 2012-11-12 23:53:55 +0000 |
| commit | 65cee0bbbdea49c08bc84be7824ab004cc19f57e (patch) | |
| tree | 8fe2481dabbacbba47d5ffbc89e32785af5306b5 /src/script.cpp | |
| parent | fix some double-spaces in strings (diff) | |
| download | discoin-65cee0bbbdea49c08bc84be7824ab004cc19f57e.tar.xz discoin-65cee0bbbdea49c08bc84be7824ab004cc19f57e.zip | |
don't use memset() in privacy/security relevant code parts
As memset() can be optimized out by a compiler it should not be used in
privacy/security relevant code parts. OpenSSL provides the safe
OPENSSL_cleanse() function in crypto.h, which perfectly does the job of
clean and overwrite data.
For details see: http://www.viva64.com/en/b/0178/
- change memset() to OPENSSL_cleanse() where appropriate
- change a hard-coded number from netbase.cpp into a sizeof()
Diffstat (limited to 'src/script.cpp')
0 files changed, 0 insertions, 0 deletions