From: Volker Lendecke Date: Thu, 9 Feb 2023 16:36:46 +0000 (+0100) Subject: lib: Move the dump_data_pw() prototype to the other dump_data_* ones X-Git-Tag: talloc-2.4.1~1438 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e5d1527f74a90e98019fccd839566467bf8dbb7e;p=thirdparty%2Fsamba.git lib: Move the dump_data_pw() prototype to the other dump_data_* ones Signed-off-by: Volker Lendecke Reviewed-by: Jeremy Allison --- diff --git a/lib/util/samba_util.h b/lib/util/samba_util.h index f7e13bc8884..95470a066a3 100644 --- a/lib/util/samba_util.h +++ b/lib/util/samba_util.h @@ -543,14 +543,6 @@ char *smb_xstrndup(const char *s, size_t n); **/ _PUBLIC_ void *smb_memdup(const void *p, size_t size); -/** - * Write a password to the log file. - * - * @note Only actually does something if DEBUG_PASSWORD was defined during - * compile-time. - */ -_PUBLIC_ void dump_data_pw(const char *msg, const uint8_t * data, size_t len); - /** * see if a range of memory is all zero. A NULL pointer is considered * to be all zero diff --git a/lib/util/util.h b/lib/util/util.h index 072f0486234..278fd6b2cfd 100644 --- a/lib/util/util.h +++ b/lib/util/util.h @@ -79,4 +79,12 @@ _PUBLIC_ void dump_data_file_diff(FILE *f, const uint8_t *buf1, size_t len1, const uint8_t *buf2, size_t len2); +/** + * Write a password to the log file. + * + * @note Only actually does something if DEBUG_PASSWORD was defined during + * compile-time. + */ +_PUBLIC_ void dump_data_pw(const char *msg, const uint8_t * data, size_t len); + #endif