pub fn new_unique(context: &'a Krb5Context, cctype: &str) -> Result<Krb5CCache<'a>, Krb5Error> {
    let cctype = string_to_c_string(cctype)?;

    let mut ccache_ptr: MaybeUninit<krb5_ccache> = MaybeUninit::zeroed();

    let code: krb5_error_code =
      unsafe { krb5_cc_new_unique(context.context, cctype, std::ptr::null(), ccache_ptr.as_mut_ptr()) };

    krb5_error_code_escape_hatch(context, code)?;

    let cursor = Krb5CCache {
      context,
      ccache: unsafe { ccache_ptr.assume_init() },
    };

    Ok(cursor)
  }
/**
   * Create a new credential cache of the specified type with a unique name.
   *
   * [krb5_cc_new_unique](https://web.mit.edu/kerberos/krb5-1.16/doc/appdev/refs/api/krb5_cc_new_unique.html)
   *
   * # Arguments
   *
   *  * context: the Krb5Context instance
   *  * cctype: the credential cache [type name](https://web.mit.edu/kerberos/krb5-1.12/doc/basic/ccache_def.html#ccache-types)
   *
   */
Create a new credential cache of the specified type with a unique name.

# Arguments

the Krb5Context instance
cctype: the credential cache [type name]
Create a new credential cache of the specified type with a unique name . # Arguments the Krb5Context instance cctype : the credential cache [ type name ]
pub fn new_unique(context: &'a Krb5Context, cctype: &str) -> Result<Krb5CCache<'a>, Krb5Error> {
    let cctype = string_to_c_string(cctype)?;
    let mut ccache_ptr: MaybeUninit<krb5_ccache> = MaybeUninit::zeroed();
    let code: krb5_error_code =
      unsafe { krb5_cc_new_unique(context.context, cctype, std::ptr::null(), 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 new_unique ( context : & ' a Krb5Context , cctype : & str ) -> Result < Krb5CCache < ' a > , Krb5Error > { let cctype = string_to_c_string ( cctype ) ? ; let mut ccache_ptr : MaybeUninit < krb5_ccache > = MaybeUninit :: zeroed ( ) ; let code : krb5_error_code = unsafe { krb5_cc_new_unique ( context . context , cctype , std :: ptr :: null ( ) , ccache_ptr . as_mut_ptr ( ) ) } ; krb5_error_code_escape_hatch ( context , code ) ? ; let cursor = Krb5CCache { context , ccache : unsafe { ccache_ptr . assume_init ( ) } , } ; Ok ( cursor ) }
Create a new credential cache of the specified type with a unique name.
Create a new credential cache of the specified type with a unique name .
context
&'a Krb5Context
cctype
&str