static INLINE void kerberos_set_krb_opts(krb5_context ctx, krb5_get_init_creds_opt* gic_opt,
                                         const SEC_WINPR_KERBEROS_SETTINGS* krb_settings)
{
	if (krb_settings->lifeTime)
		krb5_get_init_creds_opt_set_tkt_life(gic_opt, krb_settings->lifeTime);
	if (krb_settings->renewLifeTime)
		krb5_get_init_creds_opt_set_renew_life(gic_opt, krb_settings->renewLifeTime);
	if (krb_settings->withPac)
		krb5_get_init_creds_opt_set_pac_request(ctx, gic_opt, TRUE);
	if (krb_settings->armorCache)
		krb5_get_init_creds_opt_set_fast_ccache_name(ctx, gic_opt, krb_settings->armorCache);
	if (krb_settings->pkinitX509Identity)
		krb5_get_init_creds_opt_set_pa(ctx, gic_opt, "X509_user_identity",
		                               krb_settings->pkinitX509Identity);
	if (krb_settings->pkinitX509Anchors)
		krb5_get_init_creds_opt_set_pa(ctx, gic_opt, "X509_anchors",
		                               krb_settings->pkinitX509Anchors);
}
static INLINE void kerberos_set_krb_opts(krb5_context ctx, krb5_get_init_creds_opt* gic_opt,
                                         const SEC_WINPR_KERBEROS_SETTINGS* krb_settings)
{
	if (krb_settings->lifeTime)
		krb5_get_init_creds_opt_set_tkt_life(gic_opt, krb_settings->lifeTime);
	if (krb_settings->renewLifeTime)
		krb5_get_init_creds_opt_set_renew_life(gic_opt, krb_settings->renewLifeTime);
	if (krb_settings->withPac)
		krb5_get_init_creds_opt_set_pac_request(ctx, gic_opt, TRUE);
	if (krb_settings->armorCache)
		krb5_get_init_creds_opt_set_fast_ccache_name(ctx, gic_opt, krb_settings->armorCache);
	if (krb_settings->pkinitX509Identity)
		krb5_get_init_creds_opt_set_pa(ctx, gic_opt, "X509_user_identity",
		                               krb_settings->pkinitX509Identity);
	if (krb_settings->pkinitX509Anchors)
		krb5_get_init_creds_opt_set_pa(ctx, gic_opt, "X509_anchors",
		                               krb_settings->pkinitX509Anchors);
}