Lines Matching refs:pol
303 const lws_ss_policy_t *pol, char doref) in lws_ss_policy_ref_trust_store() argument
311 if (!pol->trust.store) { in lws_ss_policy_ref_trust_store()
329 v = lws_get_vhost_by_name(context, pol->trust.store->name); in lws_ss_policy_ref_trust_store()
336 i.vhost_name = pol->trust.store->name; in lws_ss_policy_ref_trust_store()
339 i.client_ssl_ca_mem = pol->trust.store->ssx509[0]->ca_der; in lws_ss_policy_ref_trust_store()
341 pol->trust.store->ssx509[0]->ca_der_len; in lws_ss_policy_ref_trust_store()
345 i.vhost_name, pol->trust.store->ssx509[0]->vhost_name); in lws_ss_policy_ref_trust_store()
355 for (n = 1; v && n < pol->trust.store->count; n++) { in lws_ss_policy_ref_trust_store()
357 pol->trust.store->ssx509[n]->vhost_name); in lws_ss_policy_ref_trust_store()
360 pol->trust.store->ssx509[n]->ca_der, in lws_ss_policy_ref_trust_store()
361 pol->trust.store->ssx509[n]->ca_der_len)) { in lws_ss_policy_ref_trust_store()
381 const lws_ss_policy_t *pol) in lws_ss_policy_unref_trust_store() argument
386 if (pol->trust.store) in lws_ss_policy_unref_trust_store()
387 name = pol->trust.store->name; in lws_ss_policy_unref_trust_store()
412 const lws_ss_policy_t *pol; in lws_ss_policy_set() local
524 pol = context->pss_policies; in lws_ss_policy_set()
525 while (pol) { in lws_ss_policy_set()
526 if (!(pol->flags & LWSSSPOLF_SERVER)) { in lws_ss_policy_set()
527 v = lws_ss_policy_ref_trust_store(context, pol, in lws_ss_policy_set()
533 pol = pol->next; in lws_ss_policy_set()