diff options
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/explicit_bzero.c | 27 | ||||
| -rw-r--r-- | lib/gnulib.mk.in | 13 |
2 files changed, 1 insertions, 39 deletions
diff --git a/lib/explicit_bzero.c b/lib/explicit_bzero.c deleted file mode 100644 index fc309f81d61..00000000000 --- a/lib/explicit_bzero.c +++ /dev/null | |||
| @@ -1,27 +0,0 @@ | |||
| 1 | /* Erasure of sensitive data, generic implementation. | ||
| 2 | Copyright (C) 2016-2022 Free Software Foundation, Inc. | ||
| 3 | |||
| 4 | This file is free software: you can redistribute it and/or modify | ||
| 5 | it under the terms of the GNU Lesser General Public License as | ||
| 6 | published by the Free Software Foundation; either version 2.1 of the | ||
| 7 | License, or (at your option) any later version. | ||
| 8 | |||
| 9 | This file is distributed in the hope that it will be useful, | ||
| 10 | but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
| 11 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
| 12 | GNU Lesser General Public License for more details. | ||
| 13 | |||
| 14 | You should have received a copy of the GNU Lesser General Public License | ||
| 15 | along with this program. If not, see <https://www.gnu.org/licenses/>. */ | ||
| 16 | |||
| 17 | #include <config.h> | ||
| 18 | |||
| 19 | #include <string.h> | ||
| 20 | |||
| 21 | /* Set LEN bytes of S to 0. The compiler will not delete a call to | ||
| 22 | this function, even if S is dead after the call. */ | ||
| 23 | void | ||
| 24 | explicit_bzero (void *s, size_t len) | ||
| 25 | { | ||
| 26 | memset_explicit (s, 0, len); | ||
| 27 | } | ||
diff --git a/lib/gnulib.mk.in b/lib/gnulib.mk.in index a3ab50f396f..fcbf5bde2db 100644 --- a/lib/gnulib.mk.in +++ b/lib/gnulib.mk.in | |||
| @@ -93,7 +93,6 @@ | |||
| 93 | # dup2 \ | 93 | # dup2 \ |
| 94 | # environ \ | 94 | # environ \ |
| 95 | # execinfo \ | 95 | # execinfo \ |
| 96 | # explicit_bzero \ | ||
| 97 | # faccessat \ | 96 | # faccessat \ |
| 98 | # fchmodat \ | 97 | # fchmodat \ |
| 99 | # fcntl \ | 98 | # fcntl \ |
| @@ -126,6 +125,7 @@ | |||
| 126 | # memmem-simple \ | 125 | # memmem-simple \ |
| 127 | # mempcpy \ | 126 | # mempcpy \ |
| 128 | # memrchr \ | 127 | # memrchr \ |
| 128 | # memset_explicit \ | ||
| 129 | # minmax \ | 129 | # minmax \ |
| 130 | # mkostemp \ | 130 | # mkostemp \ |
| 131 | # mktime \ | 131 | # mktime \ |
| @@ -264,7 +264,6 @@ GL_COND_OBJ_DIRFD_CONDITION = @GL_COND_OBJ_DIRFD_CONDITION@ | |||
| 264 | GL_COND_OBJ_DUP2_CONDITION = @GL_COND_OBJ_DUP2_CONDITION@ | 264 | GL_COND_OBJ_DUP2_CONDITION = @GL_COND_OBJ_DUP2_CONDITION@ |
| 265 | GL_COND_OBJ_EUIDACCESS_CONDITION = @GL_COND_OBJ_EUIDACCESS_CONDITION@ | 265 | GL_COND_OBJ_EUIDACCESS_CONDITION = @GL_COND_OBJ_EUIDACCESS_CONDITION@ |
| 266 | GL_COND_OBJ_EXECINFO_CONDITION = @GL_COND_OBJ_EXECINFO_CONDITION@ | 266 | GL_COND_OBJ_EXECINFO_CONDITION = @GL_COND_OBJ_EXECINFO_CONDITION@ |
| 267 | GL_COND_OBJ_EXPLICIT_BZERO_CONDITION = @GL_COND_OBJ_EXPLICIT_BZERO_CONDITION@ | ||
| 268 | GL_COND_OBJ_FACCESSAT_CONDITION = @GL_COND_OBJ_FACCESSAT_CONDITION@ | 267 | GL_COND_OBJ_FACCESSAT_CONDITION = @GL_COND_OBJ_FACCESSAT_CONDITION@ |
| 269 | GL_COND_OBJ_FCHMODAT_CONDITION = @GL_COND_OBJ_FCHMODAT_CONDITION@ | 268 | GL_COND_OBJ_FCHMODAT_CONDITION = @GL_COND_OBJ_FCHMODAT_CONDITION@ |
| 270 | GL_COND_OBJ_FCNTL_CONDITION = @GL_COND_OBJ_FCNTL_CONDITION@ | 269 | GL_COND_OBJ_FCNTL_CONDITION = @GL_COND_OBJ_FCNTL_CONDITION@ |
| @@ -1860,16 +1859,6 @@ EXTRA_DIST += execinfo.in.h | |||
| 1860 | endif | 1859 | endif |
| 1861 | ## end gnulib module execinfo | 1860 | ## end gnulib module execinfo |
| 1862 | 1861 | ||
| 1863 | ## begin gnulib module explicit_bzero | ||
| 1864 | ifeq (,$(OMIT_GNULIB_MODULE_explicit_bzero)) | ||
| 1865 | |||
| 1866 | ifneq (,$(GL_COND_OBJ_EXPLICIT_BZERO_CONDITION)) | ||
| 1867 | libgnu_a_SOURCES += explicit_bzero.c | ||
| 1868 | endif | ||
| 1869 | |||
| 1870 | endif | ||
| 1871 | ## end gnulib module explicit_bzero | ||
| 1872 | |||
| 1873 | ## begin gnulib module faccessat | 1862 | ## begin gnulib module faccessat |
| 1874 | ifeq (,$(OMIT_GNULIB_MODULE_faccessat)) | 1863 | ifeq (,$(OMIT_GNULIB_MODULE_faccessat)) |
| 1875 | 1864 | ||