Implement memset_s() and use it instead of zero_bytes().
A new constant, SUDO_CONV_REPL_MAX, is defined by the plugin API as the max conversation reply length. This constant can be used as a max value for memset_s() when clearing passwords filled in by the conversation function.
This commit is contained in:
@@ -384,6 +384,9 @@ size_t strlcpy(char *, const char *, size_t);
|
||||
#ifndef HAVE_MEMRCHR
|
||||
void *memrchr(const void *, int, size_t);
|
||||
#endif
|
||||
#ifndef HAVE_MEMSET_S
|
||||
errno_t memset_s(void *, rsize_t, int, rsize_t);
|
||||
#endif
|
||||
#ifndef HAVE_MKDTEMP
|
||||
char *mkdtemp(char *);
|
||||
#endif
|
||||
|
Reference in New Issue
Block a user