-static void mag_set_KRB5CCANME(request_rec *req, char *ccname)
-{
- apr_status_t status;
- apr_finfo_t finfo;
- char *value;
-
- status = apr_stat(&finfo, ccname, APR_FINFO_MIN, req->pool);
- if (status != APR_SUCCESS && status != APR_INCOMPLETE) {
- /* set the file cache anyway, but warn */
- ap_log_rerror(APLOG_MARK, APLOG_ERR|APLOG_NOERRNO, 0, req,
- "KRB5CCNAME file (%s) lookup failed!", ccname);
- }
-
- value = apr_psprintf(req->pool, "FILE:%s", ccname);
- apr_table_set(req->subprocess_env, "KRB5CCNAME", value);
-}
-