| 130 | } |
| 131 | |
| 132 | static 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 | |
| 150 | static apr_status_t mk_pubcert(void *baton, apr_pool_t *p, apr_pool_t *ptemp, |
| 151 | const char *dir, const char *name, |
nothing calls this directly
no test coverage detected