Mercurial > dropbear
view dbhelpers.c @ 1635:c9b5017b0a7b
drop obsolete definition for MAX_KEXHASHBUF (#65)
The last code to make use of MAX_KEXHASHBUF was removed in 2005:
https://github.com/mkj/dropbear/commit/736f370dce614b717193f45d084e9e009de723ce
Signed-off-by: Andre McCurdy <[email protected]>
author | Andre McCurdy <armccurdy@gmail.com> |
---|---|
date | Wed, 20 Mar 2019 08:01:41 -0700 |
parents | e75dab5bec71 |
children |
line wrap: on
line source
#include "dbhelpers.h" #include "includes.h" /* Erase data */ void m_burn(void *data, unsigned int len) { #if defined(HAVE_MEMSET_S) memset_s(data, len, 0x0, len); #elif defined(HAVE_EXPLICIT_BZERO) explicit_bzero(data, len); #else /* This must be volatile to avoid compiler optimisation */ volatile void *p = data; memset((void*)p, 0x0, len); #endif }