aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorPaul Eggert2022-12-18 00:21:30 -0800
committerPaul Eggert2022-12-18 00:24:14 -0800
commit185bfc1af717046391e8b787e29f44f9768d00a7 (patch)
treed1dc3da7bc9b8270c9254fe15500ac948bc3dffb /src
parentbda755bf92b5fa0dfe25da173b30e1002e95b774 (diff)
downloademacs-185bfc1af717046391e8b787e29f44f9768d00a7.tar.gz
emacs-185bfc1af717046391e8b787e29f44f9768d00a7.zip
Remove Gnulib explicit_bzero module
It’s no longer needed, as it is now merely a thin layer around C23-style memset_explicit and we might as well just call the C23 standard function; that’s more forward-looking. * admin/merge-gnulib (GNULIB_MODULES): Remove explicit_bzero, and add memset_explicit. * lib/explicit_bzero.c, m4/explicit_bzero.m4: Remove these files, which were copied from Gnulib. * lib/gnulib.mk.in, m4/gnulib-comp.m4: Regenerate. * src/gnutls.c (gnutls_symmetric_aead): Use memset_explicit instead of explicit_bzero.
Diffstat (limited to 'src')
-rw-r--r--src/gnutls.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gnutls.c b/src/gnutls.c
index 7f0aaf85a41..4093865cae5 100644
--- a/src/gnutls.c
+++ b/src/gnutls.c
@@ -2282,7 +2282,7 @@ gnutls_symmetric_aead (bool encrypting, gnutls_cipher_algorithm_t gca,
2282 Lisp_Object output; 2282 Lisp_Object output;
2283 if (GNUTLS_E_SUCCESS <= ret) 2283 if (GNUTLS_E_SUCCESS <= ret)
2284 output = make_unibyte_string (storage, storage_length); 2284 output = make_unibyte_string (storage, storage_length);
2285 explicit_bzero (storage, storage_length); 2285 memset_explicit (storage, 0, storage_length);
2286 gnutls_aead_cipher_deinit (acipher); 2286 gnutls_aead_cipher_deinit (acipher);
2287 2287
2288 if (ret < GNUTLS_E_SUCCESS) 2288 if (ret < GNUTLS_E_SUCCESS)