diff options
author | Glenn Strauss <gstrauss@gluelogic.com> | 2021-05-22 02:16:23 -0400 |
---|---|---|
committer | Glenn Strauss <gstrauss@gluelogic.com> | 2021-08-27 02:16:52 -0400 |
commit | 08c03cd450a8084fd88f7624655dfecbe52d243d (patch) | |
tree | 8dc4051c778f1345c56dbfd5b9888022073ce53e /src/mod_mbedtls.c | |
parent | 62ccda859258dc194b3d4c147b48da6082683f79 (diff) | |
download | lighttpd-git-08c03cd450a8084fd88f7624655dfecbe52d243d.tar.gz |
[multiple] rename safe_memclear() -> ck_memzero()
Diffstat (limited to 'src/mod_mbedtls.c')
-rw-r--r-- | src/mod_mbedtls.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/mod_mbedtls.c b/src/mod_mbedtls.c index 5b9d9d89..bae3d4e1 100644 --- a/src/mod_mbedtls.c +++ b/src/mod_mbedtls.c @@ -85,12 +85,12 @@ #endif #include "base.h" +#include "ck.h" #include "fdevent.h" #include "http_header.h" #include "http_kv.h" #include "log.h" #include "plugin.h" -#include "safe_memclear.h" typedef struct { /* SNI per host: with COMP_SERVER_SOCKET, COMP_HTTP_SCHEME, COMP_HTTP_HOST */ @@ -817,7 +817,7 @@ mod_mbedtls_x509_crl_parse_file (mbedtls_x509_crl *chain, const char *fn) rc = mbedtls_x509_crl_parse(chain, (unsigned char *)data, (size_t)dlen+1); - if (dlen) safe_memclear(data, (size_t)dlen); + if (dlen) ck_memzero(data, (size_t)dlen); free(data); return rc; @@ -890,7 +890,7 @@ mod_mbedtls_x509_crt_parse_acme (mbedtls_x509_crt *chain, const char *fn) mbedtls_pem_free(&pem); - if (dlen) safe_memclear(data, (size_t)dlen); + if (dlen) ck_memzero(data, (size_t)dlen); free(data); return rc; @@ -909,7 +909,7 @@ mod_mbedtls_x509_crt_parse_file (mbedtls_x509_crt *chain, const char *fn) rc = mbedtls_x509_crt_parse(chain, (unsigned char *)data, (size_t)dlen+1); - if (dlen) safe_memclear(data, (size_t)dlen); + if (dlen) ck_memzero(data, (size_t)dlen); free(data); return rc; @@ -928,7 +928,7 @@ mod_mbedtls_pk_parse_keyfile (mbedtls_pk_context *ctx, const char *fn, const cha (const unsigned char *)pwd, pwd ? strlen(pwd) : 0); - if (dlen) safe_memclear(data, (size_t)dlen); + if (dlen) ck_memzero(data, (size_t)dlen); free(data); return rc; |