![]() |
Macintosh Development |
![]() |
Kerberos v5 Globals Library API Functions |
OSStatus Krb5GlobalsSetDefaultCacheName (char* inName);
Krb5GlobalsSetDefaultCacheName sets the systemwide default cache for the Kerberos 5 library toinName
.If successful, the function returns
noErr
. If it fails to allocate memory for the cache name, it returnsmemFullErr
.UInt32 Krb5GlobalsGetDefaultCacheName (char* inName, UInt32 inLength);
Krb5GlobalsGetDefaultCacheName returns the name of the current systemwide default credentials cache for the Kerberos v5 library.inName
should point to at leastinLength
bytes of memory. Actual length of the cache name is returned.If
inName
isnil
, the length of the cache name is returned.OSStatus Krb5GlobalsSetUniqueDefaultCacheName ();
Krb5GlobalsSetUniqueDefaultCacheName sets the systemwide default credentials cache name for Kerberos v5 library to a unique string (i.e., one that is not the name of any of the existing credentials caches).If successful, the function returns
noErr
. If it fails to allocate memory for the cache name, it returnsmemFullErr
.UInt32 Krb5GlobalsGetDefaultCacheNameModification ();
Krb5GlobalsGetDefaultCacheNameModification returns modification counter for the systemwide default credentials cache name for the Kerberos v5 library. If result of two calls to Krb5GlobalsGetDefaultCacheNameModification is different, the default cache name has changed between them.