From b7ea69bdff3b58e3a0a15de26cd317d0e959df00 Mon Sep 17 00:00:00 2001 From: Stefan Metzmacher Date: Wed, 26 Oct 2022 10:34:47 +0200 Subject: lib/krb5_wrap: remove unused keep_old_entries argument from smb_krb5_kt_add_entry() Signed-off-by: Stefan Metzmacher Reviewed-by: Jeremy Allison --- lib/krb5_wrap/krb5_samba.c | 9 +++------ lib/krb5_wrap/krb5_samba.h | 3 +-- 2 files changed, 4 insertions(+), 8 deletions(-) (limited to 'lib/krb5_wrap') diff --git a/lib/krb5_wrap/krb5_samba.c b/lib/krb5_wrap/krb5_samba.c index 4afec815b0d..31938435e26 100644 --- a/lib/krb5_wrap/krb5_samba.c +++ b/lib/krb5_wrap/krb5_samba.c @@ -1829,8 +1829,6 @@ out: * this is only set to false for encryption types * which do not support salting like RC4. * - * @param[in] keep_old_entries Whether to keep or delete old keytab entries. - * * @retval 0 on Success * * @return A corresponding KRB5 error code. @@ -1844,8 +1842,7 @@ krb5_error_code smb_krb5_kt_add_entry(krb5_context context, const char *salt_principal, krb5_enctype enctype, krb5_data *password, - bool no_salt, - bool keep_old_entries) + bool no_salt) { krb5_error_code ret; krb5_keytab_entry kt_entry; @@ -1868,8 +1865,8 @@ krb5_error_code smb_krb5_kt_add_entry(krb5_context context, enctype, princ_s, princ, - false, - keep_old_entries); + false, /* flush */ + false); /* keep_old_entries */ if (ret) { goto out; } diff --git a/lib/krb5_wrap/krb5_samba.h b/lib/krb5_wrap/krb5_samba.h index d082ed43f03..d11f715d929 100644 --- a/lib/krb5_wrap/krb5_samba.h +++ b/lib/krb5_wrap/krb5_samba.h @@ -226,8 +226,7 @@ krb5_error_code smb_krb5_kt_add_entry(krb5_context context, const char *salt_principal, krb5_enctype enctype, krb5_data *password, - bool no_salt, - bool keep_old_entries); + bool no_salt); krb5_error_code smb_krb5_get_credentials(krb5_context context, krb5_ccache ccache, -- cgit v1.2.1