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

Function pk_filename

modules/md/md_store.c:263–275  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

261} md_load_ctx;
262
263static const char *pk_filename(const char *keyname, const char *base, apr_pool_t *p)
264{
265 char *s, *t;
266 /* We also run on various filesystems with difference upper/lower preserve matching
267 * rules. Normalize the names we use, since private key specifications are basically
268 * user input. */
269 s = (keyname && apr_cstr_casecmp("rsa", keyname))?
270 apr_pstrcat(p, base, ".", keyname, ".pem", NULL)
271 : apr_pstrcat(p, base, ".pem", NULL);
272 for (t = s; *t; t++ )
273 *t = (char)apr_tolower(*t);
274 return s;
275}
276
277const char *md_pkey_filename(md_pkey_spec_t *spec, apr_pool_t *p)
278{

Callers 2

md_pkey_filenameFunction · 0.85
md_chain_filenameFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected