krb5_cc_dup
code = krb5_cc_dup(context, req_ccache, &cred->ccache);
code = krb5_cc_dup(context, ccache, &ctx->ccache);