Lines Matching refs:printf

107 	printf("/*\n * Autogenerated from the following JSON policy\n */\n\n#if 0\n");
117 printf("%.*s", n, buf);
127 printf("\n\n Original JSON size: %zu\n#endif\n\n", json_size);
165 printf("\nstatic const lws_ss_metadata_t ");
179 printf("%s = {\n", curr);
181 printf("\t.next = (void *)&%s, \n", prev);
183 printf("\t.name = \"%s\",\n", (const char *)md->name);
185 printf("\t.value__may_own_heap = (void *)\"%s\",\n",
187 printf("\t.value_length = 0x%x,\n",
192 printf("\t.length = %d,\n", idx++); // md->length);
193 printf("\t.value_is_http_token = 0x%x,\n",
195 printf("}");
197 printf(",\n");
204 printf(";\n\n");
232 printf("static const uint32_t _rbo_bo_%zu[] = {\n",
235 printf(" %u, ", (unsigned int)
241 printf("\n};\nstatic const "
244 printf("\t.retry_ms_table = _rbo_bo_%zu,\n",
246 printf("\t.retry_ms_table_count = %u,\n",
248 printf("\t.conceal_count = %u,\n",
250 printf("\t.secs_since_valid_ping = %u,\n",
252 printf("\t.secs_since_valid_hangup = %u,\n",
254 printf("\t.jitter_percent = %u,\n",
256 printf("};\n");
316 printf("static const uint8_t _ss_der_%s[] = {\n",
322 printf("\t/* 0x%3x */ ", m);
324 printf("0x%02X, ", pol->trust.store->ssx509[n]->ca_der[m]);
326 printf("\n");
329 printf("\n};\nstatic const lws_ss_x509_t _ss_x509_%s = {\n",
332 printf("\t.vhost_name = \"%s\",\n", pol->trust.store->ssx509[n]->vhost_name);
333 printf("\t.ca_der = _ss_der_%s,\n",
336 printf("\t.ca_der_len = %zu,\n", pol->trust.store->ssx509[n]->ca_der_len);
337 printf("};\n");
345 printf("static const lws_ss_trust_store_t _ss_ts_%s = {\n",
349 printf("\t.name = \"%s\",\n", pol->trust.store->name);
350 printf("\t.count = %d,\n", pol->trust.store->count);
351 printf("\t.ssx509 = {\n");
354 printf("\t\t&_ss_x509_%s,\n",
357 printf("\t}\n};\n");
389 printf("\nstatic const lws_ss_http_respmap_t ");
391 printf(",\n");
394 printf("%s_http_respmap[] = {\n", curr);
396 printf("\t{ %d, 0x%x },\n",
402 printf("}");
410 printf(";\n");
418 printf("\nstatic const lws_ss_auth_t ");
425 printf("%s = {\n", curr);
427 printf("\t.next = (void *)&%s,\n", prev);
429 printf("\t.name = \"%s\",\n", auth->name);
430 printf("\t.type= \"%s\",\n", auth->type);
431 printf("\t.streamtype = \"%s\",\n", auth->streamtype);
432 printf("\t.blob_index = %d,\n", auth->blob_index);
433 printf("}");
435 printf(",");
437 printf(";");
438 printf("\n");
446 printf("\n");
454 printf("\nstatic const lws_ss_policy_t ");
464 printf("%s = {\n", curr);
467 printf("\t.next = (void *)&%s,\n", prev);
469 printf("\t.streamtype = \"%s\",\n", pol->streamtype);
471 printf("\t.endpoint = \"%s\",\n", pol->endpoint);
473 printf("\t.rideshare_streamtype = \"%s\",\n",
476 printf("\t.payload_fmt = \"%s\",\n",
479 printf("\t.socks5_proxy = \"%s\",\n",
483 printf("\t.auth = &_ssau_%s,\n",
494 printf("\t.metadata = (void *)&_md_%s_%s,\n",
505 printf("\t.u = {\n\t\t.http = {\n");
508 printf("\t\t\t.method = \"%s\",\n",
511 printf("\t\t\t.url = \"%s\",\n",
514 printf("\t\t\t.multipart_name = \"%s\",\n",
517 printf("\t\t\t.multipart_filename = \"%s\",\n",
520 printf("\t\t\t.multipart_content_type = \"%s\",\n",
523 printf("\t\t\t.auth_preamble = \"%s\",\n",
527 printf("\t\t\t.respmap = (void *)&%s_http_respmap,\n",
529 printf("\t\t\t.count_respmap = %d,\n",
534 printf("\t\t\t.blob_header = {\n");
537 printf("\t\t\t\t\"%s\",\n",
540 printf("\t\t\t},\n");
544 printf("\t\t\t.u = {\n\t\t\t\t.ws = {\n");
546 printf("\t\t\t\t\t.subprotocol = \"%s\",\n",
548 printf("\t\t\t\t\t.binary = %u\n", pol->u.http.u.ws.binary);
549 printf("\t\t\t\t}\n\t\t\t},\n");
553 printf("\t\t\t.resp_expect = %u,\n", pol->u.http.resp_expect);
555 printf("\t\t\t.fail_redirect = %u,\n", pol->u.http.fail_redirect);
557 printf("\t\t}\n\t},\n");
562 printf("\t.u = {\n\t\t.mqtt = {\n");
565 printf("\t\t\t.topic = \"%s\",\n",
568 printf("\t\t\t.subscribe = \"%s\",\n",
571 printf("\t\t\t.will_topic = \"%s\",\n",
574 printf("\t\t\t.will_message = \"%s\",\n",
577 printf("\t\t\t.will_qos = %u,\n",
580 printf("\t\t\t.will_retain = %u,\n",
583 printf("\t\t\t.birth_topic = \"%s\",\n",
586 printf("\t\t\t.birth_message = \"%s\",\n",
589 printf("\t\t\t.birth_qos = %u,\n",
592 printf("\t\t\t.birth_retain = %u,\n",
595 printf("\t\t\t.keep_alive = %u,\n",
598 printf("\t\t\t.qos = %u,\n",
601 printf("\t\t\t.clean_start = %u,\n",
604 printf("\t\t\t.aws_iot = %u,\n",
607 printf("\t\t\t.retain = %u,\n",
609 printf("\t\t}\n\t},\n");
634 printf("\t.retry_bo = &_rbo_%zu,\n", a->offset);
638 printf("\t.timeout_ms = %u,\n", pol->timeout_ms);
640 printf("\t.flags = 0x%x,\n", pol->flags);
642 printf("\t.priority = 0x%x,\n", (unsigned int)pol->priority);
644 printf("\t.port = %u,\n", pol->port);
646 printf("\t.metadata_count = %u,\n", pol->metadata_count);
647 printf("\t.protocol = %u,\n", pol->protocol);
649 printf("\t.client_cert = %u,\n", pol->client_cert);
652 printf("\t.trust = {.store = &_ss_ts_%s},\n",
657 printf("\t.aws_region= \"%s\",\n", pol->aws_region);
659 printf("\t.aws_service= \"%s\",\n", pol->aws_service);
664 printf("}");
666 printf(",\n");
675 printf(";\n");
677 printf("#define _ss_static_policy_entry _ssp_%s\n",
682 printf("/* estimated footprint %zu (when sizeof void * = %zu) */\n",