Lines Matching refs:pol
73 const lws_ss_policy_t *pol, *lastpol = NULL; in main() local
151 pol = lws_ss_policy_get(context); in main()
153 while (pol) { in main()
160 md = pol->metadata; in main()
168 md = pol->metadata; in main()
174 purify_csymbol(pol->streamtype, buf, in main()
211 if (pol->retry_bo) { in main()
214 if (a->orig == (const char *)pol->retry_bo) in main()
229 a->orig = (const char *)pol->retry_bo; in main()
234 for (n = 0; n < pol->retry_bo->retry_ms_table_count; n++) in main()
236 pol->retry_bo->retry_ms_table[n]); in main()
239 pol->retry_bo->retry_ms_table_count; in main()
247 pol->retry_bo->retry_ms_table_count); in main()
249 pol->retry_bo->conceal_count); in main()
251 pol->retry_bo->secs_since_valid_ping); in main()
253 pol->retry_bo->secs_since_valid_hangup); in main()
255 pol->retry_bo->jitter_percent); in main()
266 if (pol->trust.store) { in main()
269 if (a->orig == (const char *)pol->trust.store) in main()
284 a->orig = (const char *)pol->trust.store; in main()
292 for (n = 0; n < pol->trust.store->count; n++) { in main()
293 if (!pol->trust.store->ssx509[n]) in main()
297 if (a1->orig == (const char *)pol->trust.store->ssx509[n]) in main()
313 a1->orig = (const char *)pol->trust.store->ssx509[n]; in main()
317 purify_csymbol(pol->trust.store->ssx509[n]->vhost_name, in main()
320 for (m = 0; m < (int)pol->trust.store->ssx509[n]->ca_der_len; m++) { in main()
324 printf("0x%02X, ", pol->trust.store->ssx509[n]->ca_der[m]); in main()
330 purify_csymbol(pol->trust.store->ssx509[n]->vhost_name, in main()
332 printf("\t.vhost_name = \"%s\",\n", pol->trust.store->ssx509[n]->vhost_name); in main()
334 purify_csymbol(pol->trust.store->ssx509[n]->vhost_name, in main()
336 printf("\t.ca_der_len = %zu,\n", pol->trust.store->ssx509[n]->ca_der_len); in main()
339 est += sizeof(lws_ss_x509_t) + pol->trust.store->ssx509[n]->ca_der_len; in main()
346 purify_csymbol(pol->trust.store->name, in main()
349 printf("\t.name = \"%s\",\n", pol->trust.store->name); in main()
350 printf("\t.count = %d,\n", pol->trust.store->count); in main()
353 for (n = pol->trust.store->count - 1; n >= 0 ; n--) in main()
355 pol->trust.store->ssx509[n]->vhost_name); in main()
364 pol = pol->next; in main()
370 pol = lws_ss_policy_get(context); in main()
373 while (pol) { in main()
376 purify_csymbol(pol->streamtype, buf, sizeof(buf))); in main()
380 switch (pol->protocol) { in main()
385 if (!pol->u.http.count_respmap) in main()
395 for (n = 0; n < pol->u.http.count_respmap; n++) { in main()
397 pol->u.http.respmap[n].resp, in main()
398 pol->u.http.respmap[n].state); in main()
406 pol = pol->next; in main()
452 pol = lws_ss_policy_get(context); in main()
457 while (pol) { in main()
459 est += sizeof(*pol); in main()
462 purify_csymbol(pol->streamtype, buf, sizeof(buf))); in main()
469 printf("\t.streamtype = \"%s\",\n", pol->streamtype); in main()
470 if (pol->endpoint) in main()
471 printf("\t.endpoint = \"%s\",\n", pol->endpoint); in main()
472 if (pol->rideshare_streamtype) in main()
474 pol->rideshare_streamtype); in main()
475 if (pol->payload_fmt) in main()
477 pol->payload_fmt); in main()
478 if (pol->socks5_proxy) in main()
480 pol->socks5_proxy); in main()
482 if (pol->auth) in main()
484 purify_csymbol(pol->auth->name, buf, sizeof(buf))); in main()
487 lws_ss_metadata_t *nv = pol->metadata, *last = NULL; in main()
493 if (pol->metadata) in main()
495 purify_csymbol(pol->streamtype, buf, sizeof(buf)), in main()
500 switch (pol->protocol) { in main()
507 if (pol->u.http.method) in main()
509 pol->u.http.method); in main()
510 if (pol->u.http.url) in main()
512 pol->u.http.url); in main()
513 if (pol->u.http.multipart_name) in main()
515 pol->u.http.multipart_name); in main()
516 if (pol->u.http.multipart_filename) in main()
518 pol->u.http.multipart_filename); in main()
519 if (pol->u.http.multipart_content_type) in main()
521 pol->u.http.multipart_content_type); in main()
522 if (pol->u.http.auth_preamble) in main()
524 pol->u.http.auth_preamble); in main()
526 if (pol->u.http.respmap) { in main()
530 pol->u.http.count_respmap); in main()
533 if (pol->u.http.blob_header[0]) { in main()
535 for (n = 0; n < (int)LWS_ARRAY_SIZE(pol->u.http.blob_header); n++) in main()
536 if (pol->u.http.blob_header[n]) in main()
538 pol->u.http.blob_header[n]); in main()
543 if (pol->protocol == LWSSSP_WS) { in main()
545 if (pol->u.http.u.ws.subprotocol) in main()
547 pol->u.http.u.ws.subprotocol); in main()
548 printf("\t\t\t\t\t.binary = %u\n", pol->u.http.u.ws.binary); in main()
552 if (pol->u.http.resp_expect) in main()
553 printf("\t\t\t.resp_expect = %u,\n", pol->u.http.resp_expect); in main()
554 if (pol->u.http.fail_redirect) in main()
555 printf("\t\t\t.fail_redirect = %u,\n", pol->u.http.fail_redirect); in main()
564 if (pol->u.mqtt.topic) in main()
566 pol->u.mqtt.topic); in main()
567 if (pol->u.mqtt.subscribe) in main()
569 pol->u.mqtt.subscribe); in main()
570 if (pol->u.mqtt.will_topic) in main()
572 pol->u.mqtt.will_topic); in main()
573 if (pol->u.mqtt.will_message) in main()
575 pol->u.mqtt.will_message); in main()
577 if (pol->u.mqtt.keep_alive) in main()
579 pol->u.mqtt.keep_alive); in main()
580 if (pol->u.mqtt.qos) in main()
582 pol->u.mqtt.qos); in main()
583 if (pol->u.mqtt.clean_start) in main()
585 pol->u.mqtt.clean_start); in main()
586 if (pol->u.mqtt.will_qos) in main()
588 pol->u.mqtt.will_qos); in main()
589 if (pol->u.mqtt.will_retain) in main()
591 pol->u.mqtt.will_retain); in main()
598 pol->protocol); in main()
607 if (pol->retry_bo) { in main()
610 if (a->orig == (const char *)pol->retry_bo) in main()
621 if (pol->timeout_ms) in main()
622 printf("\t.timeout_ms = %u,\n", pol->timeout_ms); in main()
623 if (pol->flags) in main()
624 printf("\t.flags = 0x%x,\n", pol->flags); in main()
625 if (pol->flags) in main()
626 printf("\t.priority = 0x%x,\n", (unsigned int)pol->priority); in main()
627 if (pol->port) in main()
628 printf("\t.port = %u,\n", pol->port); in main()
629 if (pol->metadata_count) in main()
630 printf("\t.metadata_count = %u,\n", pol->metadata_count); in main()
631 printf("\t.protocol = %u,\n", pol->protocol); in main()
632 if (pol->client_cert) in main()
633 printf("\t.client_cert = %u,\n", pol->client_cert); in main()
635 if (pol->trust.store) in main()
637 purify_csymbol(pol->trust.store->name, in main()
640 if (pol->aws_region) in main()
641 printf("\t.aws_region= \"%s\",\n", pol->aws_region); in main()
642 if (pol->aws_service) in main()
643 printf("\t.aws_service= \"%s\",\n", pol->aws_service); in main()
649 if (pol->next) in main()
654 lastpol = pol; in main()
656 pol = pol->next; in main()