1
0
mirror of https://github.com/samba-team/samba.git synced 2025-12-07 20:23:50 +03:00

r3342: More MIT/Heimdal fixes to allow an enctype to be explicitly set in a krb5_creds

struct.
Jeremy.
This commit is contained in:
Jeremy Allison
2004-10-28 23:50:14 +00:00
committed by Gerald (Jerry) Carter
parent 682b746ab6
commit c9b8049012
2 changed files with 35 additions and 0 deletions

View File

@@ -251,6 +251,17 @@
}
#endif
void kerberos_set_creds_enctype(krb5_creds *pcreds, int enctype)
{
#if defined(HAVE_KRB5_KEYBLOCK_IN_CREDS)
KRB5_KEY_TYPE((&pcreds->keyblock)) = enctype;
#elif defined(HAVE_KRB5_SESSION_IN_CREDS)
KRB5_KEY_TYPE((&pcreds->session)) = enctype;
#else
#error UNKNOWN_KEYBLOCK_MEMBER_IN_KRB5_CREDS_STRUCT
#endif
}
static BOOL ads_cleanup_expired_creds(krb5_context context,
krb5_ccache ccache,
krb5_creds *credsp)