Mercurial > dropbear
view dbhelpers.c @ 1902:4a6725ac957c
Revert "Don't include sk keys at all in KEX list"
This reverts git commit f972813ecdc7bb981d25b5a63638bd158f1c8e72.
The sk algorithms need to remain in the sigalgs list so that they
are included in the server-sig-algs ext-info message sent by
the server. RFC8308 for server-sig-algs requires that all algorithms are
listed (though OpenSSH client 8.4p1 tested doesn't require that)
author | Matt Johnston <matt@ucc.asn.au> |
---|---|
date | Thu, 24 Mar 2022 13:42:08 +0800 |
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 }