MCPcopy Create free account
hub / github.com/apache/httpd / rename_pkey

Function rename_pkey

modules/md/md_store_fs.c:132–148  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

130}
131
132static apr_status_t rename_pkey(void *baton, apr_pool_t *p, apr_pool_t *ptemp,
133 const char *dir, const char *name,
134 apr_filetype_e ftype)
135{
136 const char *from, *to;
137 apr_status_t rv = APR_SUCCESS;
138
139 (void)baton;
140 (void)ftype;
141 if ( MD_OK(md_util_path_merge(&from, ptemp, dir, name, NULL))
142 && MD_OK(md_util_path_merge(&to, ptemp, dir, MD_FN_PRIVKEY, NULL))) {
143 md_log_perror(MD_LOG_MARK, MD_LOG_TRACE1, 0, p, "renaming %s/%s to %s",
144 dir, name, MD_FN_PRIVKEY);
145 return apr_file_rename(from, to, ptemp);
146 }
147 return rv;
148}
149
150static apr_status_t mk_pubcert(void *baton, apr_pool_t *p, apr_pool_t *ptemp,
151 const char *dir, const char *name,

Callers

nothing calls this directly

Calls 2

md_util_path_mergeFunction · 0.85
md_log_perrorFunction · 0.85

Tested by

no test coverage detected