* The functions sigs below are not provided by krb5.h, but are available
* in the library.
*/
-#if !defined(HEIMDAL_KRB5)
+#if !defined(HEIMDAL_KRB5) && KRB5_IS_THREAD_SAFE
krb5_error_code
krb5_set_default_in_tkt_ktypes(krb5_context context, const krb5_enctype *etypes);
krb5_verify_init_creds_opt_init(inst->vic_options);
krb5_verify_init_creds_opt_set_ap_req_nofail(inst->vic_options, true);
+# ifdef KRB5_IS_THREAD_SAFE
/*
* Explicitly set enctypes to work around bug in krb5_copy_context
*/
krb5_set_default_tgs_ktypes(inst->context, enctypes);
krb5_free_ktypes(inst->context, enctypes);
}
+# endif
#endif
return 0;