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

Function md_pkeys_spec_contains_ec

modules/md/md_crypt.c:338–348  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

336}
337
338int md_pkeys_spec_contains_ec(md_pkeys_spec_t *pks, const char *curve)
339{
340 md_pkey_spec_t *spec;
341 int i;
342 for (i = 0; i < pks->specs->nelts; ++i) {
343 spec = APR_ARRAY_IDX(pks->specs, i, md_pkey_spec_t*);
344 if (MD_PKEY_TYPE_EC == spec->type
345 && !apr_cstr_casecmp(curve, spec->params.ec.curve)) return 1;
346 }
347 return 0;
348}
349
350void md_pkeys_spec_add_ec(md_pkeys_spec_t *pks, const char *curve)
351{

Callers 1

md_config_set_pkeysFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected