Lines Matching defs:pol

73 	const lws_ss_policy_t *pol, *lastpol = NULL;
151 pol = lws_ss_policy_get(context);
153 while (pol) {
160 md = pol->metadata;
168 md = pol->metadata;
174 purify_csymbol(pol->streamtype, buf,
211 if (pol->retry_bo) {
214 if (a->orig == (const char *)pol->retry_bo)
229 a->orig = (const char *)pol->retry_bo;
234 for (n = 0; n < pol->retry_bo->retry_ms_table_count; n++)
236 pol->retry_bo->retry_ms_table[n]);
239 pol->retry_bo->retry_ms_table_count;
247 pol->retry_bo->retry_ms_table_count);
249 pol->retry_bo->conceal_count);
251 pol->retry_bo->secs_since_valid_ping);
253 pol->retry_bo->secs_since_valid_hangup);
255 pol->retry_bo->jitter_percent);
266 if (pol->trust.store) {
269 if (a->orig == (const char *)pol->trust.store)
284 a->orig = (const char *)pol->trust.store;
292 for (n = 0; n < pol->trust.store->count; n++) {
293 if (!pol->trust.store->ssx509[n])
297 if (a1->orig == (const char *)pol->trust.store->ssx509[n])
313 a1->orig = (const char *)pol->trust.store->ssx509[n];
317 purify_csymbol(pol->trust.store->ssx509[n]->vhost_name,
320 for (m = 0; m < (int)pol->trust.store->ssx509[n]->ca_der_len; m++) {
324 printf("0x%02X, ", pol->trust.store->ssx509[n]->ca_der[m]);
330 purify_csymbol(pol->trust.store->ssx509[n]->vhost_name,
332 printf("\t.vhost_name = \"%s\",\n", pol->trust.store->ssx509[n]->vhost_name);
334 purify_csymbol(pol->trust.store->ssx509[n]->vhost_name,
336 printf("\t.ca_der_len = %zu,\n", pol->trust.store->ssx509[n]->ca_der_len);
339 est += sizeof(lws_ss_x509_t) + pol->trust.store->ssx509[n]->ca_der_len;
346 purify_csymbol(pol->trust.store->name,
349 printf("\t.name = \"%s\",\n", pol->trust.store->name);
350 printf("\t.count = %d,\n", pol->trust.store->count);
353 for (n = pol->trust.store->count - 1; n >= 0 ; n--)
355 pol->trust.store->ssx509[n]->vhost_name);
364 pol = pol->next;
370 pol = lws_ss_policy_get(context);
373 while (pol) {
376 purify_csymbol(pol->streamtype, buf, sizeof(buf)));
380 switch (pol->protocol) {
385 if (!pol->u.http.count_respmap)
395 for (n = 0; n < pol->u.http.count_respmap; n++) {
397 pol->u.http.respmap[n].resp,
398 pol->u.http.respmap[n].state);
406 pol = pol->next;
452 pol = lws_ss_policy_get(context);
457 while (pol) {
459 est += sizeof(*pol);
462 purify_csymbol(pol->streamtype, buf, sizeof(buf)));
469 printf("\t.streamtype = \"%s\",\n", pol->streamtype);
470 if (pol->endpoint)
471 printf("\t.endpoint = \"%s\",\n", pol->endpoint);
472 if (pol->rideshare_streamtype)
474 pol->rideshare_streamtype);
475 if (pol->payload_fmt)
477 pol->payload_fmt);
478 if (pol->socks5_proxy)
480 pol->socks5_proxy);
482 if (pol->auth)
484 purify_csymbol(pol->auth->name, buf, sizeof(buf)));
487 lws_ss_metadata_t *nv = pol->metadata, *last = NULL;
493 if (pol->metadata)
495 purify_csymbol(pol->streamtype, buf, sizeof(buf)),
500 switch (pol->protocol) {
507 if (pol->u.http.method)
509 pol->u.http.method);
510 if (pol->u.http.url)
512 pol->u.http.url);
513 if (pol->u.http.multipart_name)
515 pol->u.http.multipart_name);
516 if (pol->u.http.multipart_filename)
518 pol->u.http.multipart_filename);
519 if (pol->u.http.multipart_content_type)
521 pol->u.http.multipart_content_type);
522 if (pol->u.http.auth_preamble)
524 pol->u.http.auth_preamble);
526 if (pol->u.http.respmap) {
530 pol->u.http.count_respmap);
533 if (pol->u.http.blob_header[0]) {
535 for (n = 0; n < (int)LWS_ARRAY_SIZE(pol->u.http.blob_header); n++)
536 if (pol->u.http.blob_header[n])
538 pol->u.http.blob_header[n]);
543 if (pol->protocol == LWSSSP_WS) {
545 if (pol->u.http.u.ws.subprotocol)
547 pol->u.http.u.ws.subprotocol);
548 printf("\t\t\t\t\t.binary = %u\n", pol->u.http.u.ws.binary);
552 if (pol->u.http.resp_expect)
553 printf("\t\t\t.resp_expect = %u,\n", pol->u.http.resp_expect);
554 if (pol->u.http.fail_redirect)
555 printf("\t\t\t.fail_redirect = %u,\n", pol->u.http.fail_redirect);
564 if (pol->u.mqtt.topic)
566 pol->u.mqtt.topic);
567 if (pol->u.mqtt.subscribe)
569 pol->u.mqtt.subscribe);
570 if (pol->u.mqtt.will_topic)
572 pol->u.mqtt.will_topic);
573 if (pol->u.mqtt.will_message)
575 pol->u.mqtt.will_message);
576 if (pol->u.mqtt.will_qos)
578 pol->u.mqtt.will_qos);
579 if (pol->u.mqtt.will_retain)
581 pol->u.mqtt.will_retain);
582 if (pol->u.mqtt.birth_topic)
584 pol->u.mqtt.birth_topic);
585 if (pol->u.mqtt.birth_message)
587 pol->u.mqtt.birth_message);
588 if (pol->u.mqtt.birth_qos)
590 pol->u.mqtt.birth_qos);
591 if (pol->u.mqtt.birth_retain)
593 pol->u.mqtt.birth_retain);
594 if (pol->u.mqtt.keep_alive)
596 pol->u.mqtt.keep_alive);
597 if (pol->u.mqtt.qos)
599 pol->u.mqtt.qos);
600 if (pol->u.mqtt.clean_start)
602 pol->u.mqtt.clean_start);
603 if (pol->u.mqtt.aws_iot)
605 pol->u.mqtt.aws_iot);
606 if (pol->u.mqtt.retain)
608 pol->u.mqtt.retain);
614 pol->protocol);
623 if (pol->retry_bo) {
626 if (a->orig == (const char *)pol->retry_bo)
637 if (pol->timeout_ms)
638 printf("\t.timeout_ms = %u,\n", pol->timeout_ms);
639 if (pol->flags)
640 printf("\t.flags = 0x%x,\n", pol->flags);
641 if (pol->flags)
642 printf("\t.priority = 0x%x,\n", (unsigned int)pol->priority);
643 if (pol->port)
644 printf("\t.port = %u,\n", pol->port);
645 if (pol->metadata_count)
646 printf("\t.metadata_count = %u,\n", pol->metadata_count);
647 printf("\t.protocol = %u,\n", pol->protocol);
648 if (pol->client_cert)
649 printf("\t.client_cert = %u,\n", pol->client_cert);
651 if (pol->trust.store)
653 purify_csymbol(pol->trust.store->name,
656 if (pol->aws_region)
657 printf("\t.aws_region= \"%s\",\n", pol->aws_region);
658 if (pol->aws_service)
659 printf("\t.aws_service= \"%s\",\n", pol->aws_service);
665 if (pol->next)
670 lastpol = pol;
672 pol = pol->next;