mirror of
https://github.com/samba-team/samba.git
synced 2024-12-22 13:34:15 +03:00
lib/krb5_wrap: remove unused keep_old_entries argument from smb_krb5_kt_seek_and_delete_old_entries()
Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
This commit is contained in:
parent
b7ea69bdff
commit
7958e18b8a
@ -1638,8 +1638,6 @@ krb5_error_code smb_krb5_kt_get_name(TALLOC_CTX *mem_ctx,
|
||||
*
|
||||
* @param[in] flush Whether to flush the complete keytab.
|
||||
*
|
||||
* @param[in] keep_old_entries Keep the entry with the previous kvno.
|
||||
*
|
||||
* @retval 0 on Sucess
|
||||
*
|
||||
* @return An appropriate KRB5 error code.
|
||||
@ -1650,8 +1648,7 @@ krb5_error_code smb_krb5_kt_seek_and_delete_old_entries(krb5_context context,
|
||||
krb5_enctype enctype,
|
||||
const char *princ_s,
|
||||
krb5_principal princ,
|
||||
bool flush,
|
||||
bool keep_old_entries)
|
||||
bool flush)
|
||||
{
|
||||
krb5_error_code ret;
|
||||
krb5_kt_cursor cursor;
|
||||
@ -1741,13 +1738,6 @@ krb5_error_code smb_krb5_kt_seek_and_delete_old_entries(krb5_context context,
|
||||
continue;
|
||||
}
|
||||
|
||||
if (keep_old_entries) {
|
||||
DEBUG(5, (__location__ ": Saving old (kvno %d) "
|
||||
"entry for principal: %s.\n",
|
||||
kvno, princ_s));
|
||||
continue;
|
||||
}
|
||||
|
||||
if (!flush &&
|
||||
((kt_entry.vno & 0xff) == (kvno & 0xff)) &&
|
||||
(kt_entry_enctype != enctype))
|
||||
@ -1865,8 +1855,7 @@ krb5_error_code smb_krb5_kt_add_entry(krb5_context context,
|
||||
enctype,
|
||||
princ_s,
|
||||
princ,
|
||||
false, /* flush */
|
||||
false); /* keep_old_entries */
|
||||
false); /* flush */
|
||||
if (ret) {
|
||||
goto out;
|
||||
}
|
||||
|
@ -217,8 +217,7 @@ krb5_error_code smb_krb5_kt_seek_and_delete_old_entries(krb5_context context,
|
||||
krb5_enctype enctype,
|
||||
const char *princ_s,
|
||||
krb5_principal princ,
|
||||
bool flush,
|
||||
bool keep_old_entries);
|
||||
bool flush);
|
||||
krb5_error_code smb_krb5_kt_add_entry(krb5_context context,
|
||||
krb5_keytab keytab,
|
||||
krb5_kvno kvno,
|
||||
|
@ -496,8 +496,7 @@ int ads_keytab_flush(ADS_STRUCT *ads)
|
||||
ENCTYPE_NULL,
|
||||
NULL,
|
||||
NULL,
|
||||
true,
|
||||
false);
|
||||
true); /* flush */
|
||||
if (ret) {
|
||||
goto out;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user