(krb5_is_thread_safe): return TRUE is the library was compiled with
multithreading support. If not, application must global lock the library, it it uses threads that call kerberos functions at the same time. git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@14470 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
@@ -644,3 +644,13 @@ krb5_get_fcache_version(krb5_context context, int *version)
|
||||
*version = context->fcache_vno;
|
||||
return 0;
|
||||
}
|
||||
|
||||
krb5_boolean KRB5_LIB_FUNCTION
|
||||
krb5_is_thread_safe(void)
|
||||
{
|
||||
#ifdef ENABLE_PTHREAD_SUPPORT
|
||||
return TRUE;
|
||||
#else
|
||||
return FALSE;
|
||||
#endif
|
||||
}
|
||||
|
Reference in New Issue
Block a user