1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-22 13:34:15 +03:00

CVE-2020-25719 mit-samba: Make ks_get_principal() internally public

BUG: https://bugzilla.samba.org/show_bug.cgi?id=14561

Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
This commit is contained in:
Andreas Schneider 2021-07-12 12:32:12 +02:00 committed by Jule Anger
parent deccd0dc5e
commit d0fb22ee85
2 changed files with 9 additions and 4 deletions

View File

@ -41,6 +41,11 @@
struct mit_samba_context *ks_get_context(krb5_context kcontext);
krb5_error_code ks_get_principal(krb5_context context,
krb5_const_principal principal,
unsigned int kflags,
krb5_db_entry **kentry);
bool ks_data_eq_string(krb5_data d, const char *s);
krb5_data ks_make_data(void *data, unsigned int len);

View File

@ -36,7 +36,7 @@
#define ADMIN_LIFETIME 60*60*3 /* 3 hours */
#define CHANGEPW_LIFETIME 60*5 /* 5 minutes */
static krb5_error_code ks_get_principal(krb5_context context,
krb5_error_code ks_get_principal(krb5_context context,
krb5_const_principal principal,
unsigned int kflags,
krb5_db_entry **kentry)