From ba4c322ac7877824e23856396a82123843162870 Mon Sep 17 00:00:00 2001 From: Andreas Schneider Date: Tue, 18 Apr 2023 16:00:51 +0200 Subject: [PATCH] s3:libsmb: Also deprecate smbc_init() MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Andreas Schneider Reviewed-by: Pavel Filipenský --- source3/include/libsmbclient.h | 17 +++-------------- 1 file changed, 3 insertions(+), 14 deletions(-) diff --git a/source3/include/libsmbclient.h b/source3/include/libsmbclient.h index 857d1b452c0..6901b0bcdcb 100644 --- a/source3/include/libsmbclient.h +++ b/source3/include/libsmbclient.h @@ -1280,21 +1280,10 @@ SMBCCTX * smbc_init_context(SMBCCTX * context); /**@ingroup misc * Initialize the samba client library. * - * Must be called before using any of the smbclient API function - * - * @param fn The function that will be called to obtaion - * authentication credentials. - * - * @param debug Allows caller to set the debug level. Can be - * changed in smb.conf file. Allows caller to set - * debugging if no smb.conf. - * - * @return 0 on success, < 0 on error with errno set: - * - ENOMEM Out of memory - * - ENOENT The smb.conf file would not load - * + * @deprecated use smbc_init_context() + * @see smbc_init_context() */ - +DEPRECATED_SMBC_INTERFACE int smbc_init(smbc_get_auth_data_fn fn, int debug); /**@ingroup misc -- 2.11.4.GIT