/**
   * Resolve a credential cache name.
   *
   * [krb5_cc_resolve]  (https://web.mit.edu/kerberos/krb5-1.16/doc/appdev/refs/api/krb5_cc_resolve.html)
   *
   * # Arguments
   *
   *  * context: the Krb5Context instance
   *  * name: the credential cache name to be resolved
   *
   */
Resolve a credential cache name.

# Arguments

the Krb5Context instance
name: the credential cache name to be resolved
Resolve a credential cache name . # Arguments the Krb5Context instance name : the credential cache name to be resolved
pub fn resolve(context: &'a Krb5Context, name: &str) -> Result<Krb5CCache<'a>, Krb5Error> {
    let name = string_to_c_string(name)?;
    let mut ccache_ptr: MaybeUninit<krb5_ccache> = MaybeUninit::zeroed();
    let code: krb5_error_code = unsafe { krb5_cc_resolve(context.context, name, ccache_ptr.as_mut_ptr()) };
    krb5_error_code_escape_hatch(context, code)?;
    let cursor = Krb5CCache {
      context,
      ccache: unsafe { ccache_ptr.assume_init() },
    };
    Ok(cursor)
  }
pub fn resolve ( context : & ' a Krb5Context , name : & str ) -> Result < Krb5CCache < ' a > , Krb5Error > { let name = string_to_c_string ( name ) ? ; let mut ccache_ptr : MaybeUninit < krb5_ccache > = MaybeUninit :: zeroed ( ) ; let code : krb5_error_code = unsafe { krb5_cc_resolve ( context . context , name , ccache_ptr . as_mut_ptr ( ) ) } ; krb5_error_code_escape_hatch ( context , code ) ? ; let cursor = Krb5CCache { context , ccache : unsafe { ccache_ptr . assume_init ( ) } , } ; Ok ( cursor ) }
Resolve a credential cache name.
Resolve a credential cache name .
context
&'a Krb5Context
<not_specific>
name
&str
<not_specific>