0.0.4
This commit is contained in:
parent
478acaa036
commit
7d05409e84
Binary file not shown.
124
build/.ninja_log
124
build/.ninja_log
@ -2973,3 +2973,127 @@
|
|||||||
1227 5129 1585324164 bakalarka.elf 8fe1dd3d033f6afa
|
1227 5129 1585324164 bakalarka.elf 8fe1dd3d033f6afa
|
||||||
5129 5414 1585324164 .bin_timestamp 715a021d8f39a8be
|
5129 5414 1585324164 .bin_timestamp 715a021d8f39a8be
|
||||||
5414 25344 0 CMakeFiles/flash d83eebc13dccbe41
|
5414 25344 0 CMakeFiles/flash d83eebc13dccbe41
|
||||||
|
20 163 0 esp-idf/partition_table/CMakeFiles/partition_table fb7f74782daa0374
|
||||||
|
164 205 1585139896 bootloader-prefix/src/bootloader-stamp/bootloader-build c9d3074ff32525e5
|
||||||
|
164 205 1585139896 bootloader/bootloader.elf c9d3074ff32525e5
|
||||||
|
164 205 1585139896 bootloader/bootloader.bin c9d3074ff32525e5
|
||||||
|
164 205 1585139896 bootloader/bootloader.map c9d3074ff32525e5
|
||||||
|
20 314 1585332151 esp-idf/https_server/CMakeFiles/__idf_https_server.dir/https_server.c.obj adaeb60f8b50b574
|
||||||
|
314 357 1585332151 esp-idf/https_server/libhttps_server.a 6d743a94847b6a8d
|
||||||
|
357 2279 1585332153 esp-idf/esp32/ld/esp32.project.ld 95952199604882f3
|
||||||
|
2279 12393 1585332163 bakalarka.elf 8fe1dd3d033f6afa
|
||||||
|
12393 12945 1585332164 .bin_timestamp 715a021d8f39a8be
|
||||||
|
25 142 0 esp-idf/partition_table/CMakeFiles/partition_table fb7f74782daa0374
|
||||||
|
142 224 1585139896 bootloader-prefix/src/bootloader-stamp/bootloader-build c9d3074ff32525e5
|
||||||
|
142 224 1585139896 bootloader/bootloader.elf c9d3074ff32525e5
|
||||||
|
142 224 1585139896 bootloader/bootloader.bin c9d3074ff32525e5
|
||||||
|
142 224 1585139896 bootloader/bootloader.map c9d3074ff32525e5
|
||||||
|
25 277 1585332299 esp-idf/https_server/CMakeFiles/__idf_https_server.dir/https_server.c.obj adaeb60f8b50b574
|
||||||
|
277 307 1585332299 esp-idf/https_server/libhttps_server.a 6d743a94847b6a8d
|
||||||
|
308 1693 1585332300 esp-idf/esp32/ld/esp32.project.ld 95952199604882f3
|
||||||
|
1693 8458 1585332307 bakalarka.elf 8fe1dd3d033f6afa
|
||||||
|
8459 8875 1585332307 .bin_timestamp 715a021d8f39a8be
|
||||||
|
16 119 0 esp-idf/partition_table/CMakeFiles/partition_table fb7f74782daa0374
|
||||||
|
119 148 1585139896 bootloader-prefix/src/bootloader-stamp/bootloader-build c9d3074ff32525e5
|
||||||
|
119 148 1585139896 bootloader/bootloader.elf c9d3074ff32525e5
|
||||||
|
119 148 1585139896 bootloader/bootloader.bin c9d3074ff32525e5
|
||||||
|
119 148 1585139896 bootloader/bootloader.map c9d3074ff32525e5
|
||||||
|
148 19932 0 CMakeFiles/flash d83eebc13dccbe41
|
||||||
|
16 111 0 esp-idf/partition_table/CMakeFiles/partition_table fb7f74782daa0374
|
||||||
|
111 134 1585139896 bootloader-prefix/src/bootloader-stamp/bootloader-build c9d3074ff32525e5
|
||||||
|
111 134 1585139896 bootloader/bootloader.elf c9d3074ff32525e5
|
||||||
|
111 134 1585139896 bootloader/bootloader.bin c9d3074ff32525e5
|
||||||
|
111 134 1585139896 bootloader/bootloader.map c9d3074ff32525e5
|
||||||
|
17 184 1585333040 esp-idf/https_server/CMakeFiles/__idf_https_server.dir/https_server.c.obj adaeb60f8b50b574
|
||||||
|
184 201 1585333040 esp-idf/https_server/libhttps_server.a 6d743a94847b6a8d
|
||||||
|
201 1243 1585333041 esp-idf/esp32/ld/esp32.project.ld 95952199604882f3
|
||||||
|
1243 7206 1585333047 bakalarka.elf 8fe1dd3d033f6afa
|
||||||
|
7206 7593 1585333047 .bin_timestamp 715a021d8f39a8be
|
||||||
|
24 141 0 esp-idf/partition_table/CMakeFiles/partition_table fb7f74782daa0374
|
||||||
|
141 173 1585139896 bootloader-prefix/src/bootloader-stamp/bootloader-build c9d3074ff32525e5
|
||||||
|
141 173 1585139896 bootloader/bootloader.elf c9d3074ff32525e5
|
||||||
|
141 173 1585139896 bootloader/bootloader.bin c9d3074ff32525e5
|
||||||
|
141 173 1585139896 bootloader/bootloader.map c9d3074ff32525e5
|
||||||
|
173 20110 0 CMakeFiles/flash d83eebc13dccbe41
|
||||||
|
15 105 0 esp-idf/partition_table/CMakeFiles/partition_table fb7f74782daa0374
|
||||||
|
105 129 1585139896 bootloader-prefix/src/bootloader-stamp/bootloader-build c9d3074ff32525e5
|
||||||
|
105 129 1585139896 bootloader/bootloader.elf c9d3074ff32525e5
|
||||||
|
105 129 1585139896 bootloader/bootloader.bin c9d3074ff32525e5
|
||||||
|
105 129 1585139896 bootloader/bootloader.map c9d3074ff32525e5
|
||||||
|
16 175 1585333174 esp-idf/https_server/CMakeFiles/__idf_https_server.dir/https_server.c.obj adaeb60f8b50b574
|
||||||
|
175 196 1585333174 esp-idf/https_server/libhttps_server.a 6d743a94847b6a8d
|
||||||
|
196 1169 1585333175 esp-idf/esp32/ld/esp32.project.ld 95952199604882f3
|
||||||
|
1169 5667 1585333179 bakalarka.elf 8fe1dd3d033f6afa
|
||||||
|
5667 5959 1585333180 .bin_timestamp 715a021d8f39a8be
|
||||||
|
5959 25650 0 CMakeFiles/flash d83eebc13dccbe41
|
||||||
|
23 165 0 esp-idf/partition_table/CMakeFiles/partition_table fb7f74782daa0374
|
||||||
|
165 221 1585139896 bootloader-prefix/src/bootloader-stamp/bootloader-build c9d3074ff32525e5
|
||||||
|
165 221 1585139896 bootloader/bootloader.elf c9d3074ff32525e5
|
||||||
|
165 221 1585139896 bootloader/bootloader.bin c9d3074ff32525e5
|
||||||
|
165 221 1585139896 bootloader/bootloader.map c9d3074ff32525e5
|
||||||
|
24 341 1585333502 esp-idf/https_server/CMakeFiles/__idf_https_server.dir/https_server.c.obj adaeb60f8b50b574
|
||||||
|
341 371 1585333502 esp-idf/https_server/libhttps_server.a 6d743a94847b6a8d
|
||||||
|
371 1960 1585333503 esp-idf/esp32/ld/esp32.project.ld 95952199604882f3
|
||||||
|
1960 8760 1585333510 bakalarka.elf 8fe1dd3d033f6afa
|
||||||
|
8760 9207 1585333511 .bin_timestamp 715a021d8f39a8be
|
||||||
|
9207 28949 0 CMakeFiles/flash d83eebc13dccbe41
|
||||||
|
26 128 0 esp-idf/partition_table/CMakeFiles/partition_table fb7f74782daa0374
|
||||||
|
128 155 1585139896 bootloader-prefix/src/bootloader-stamp/bootloader-build c9d3074ff32525e5
|
||||||
|
128 155 1585139896 bootloader/bootloader.elf c9d3074ff32525e5
|
||||||
|
128 155 1585139896 bootloader/bootloader.bin c9d3074ff32525e5
|
||||||
|
128 155 1585139896 bootloader/bootloader.map c9d3074ff32525e5
|
||||||
|
26 241 1585334321 esp-idf/https_server/CMakeFiles/__idf_https_server.dir/https_server.c.obj adaeb60f8b50b574
|
||||||
|
241 269 1585334321 esp-idf/https_server/libhttps_server.a 6d743a94847b6a8d
|
||||||
|
269 1341 1585334322 esp-idf/esp32/ld/esp32.project.ld 95952199604882f3
|
||||||
|
1341 8232 1585334329 bakalarka.elf 8fe1dd3d033f6afa
|
||||||
|
8232 8610 1585334330 .bin_timestamp 715a021d8f39a8be
|
||||||
|
8610 28339 0 CMakeFiles/flash d83eebc13dccbe41
|
||||||
|
17 133 0 esp-idf/partition_table/CMakeFiles/partition_table fb7f74782daa0374
|
||||||
|
133 155 1585139896 bootloader-prefix/src/bootloader-stamp/bootloader-build c9d3074ff32525e5
|
||||||
|
133 155 1585139896 bootloader/bootloader.elf c9d3074ff32525e5
|
||||||
|
133 155 1585139896 bootloader/bootloader.bin c9d3074ff32525e5
|
||||||
|
133 155 1585139896 bootloader/bootloader.map c9d3074ff32525e5
|
||||||
|
17 202 1585334645 esp-idf/https_server/CMakeFiles/__idf_https_server.dir/https_server.c.obj adaeb60f8b50b574
|
||||||
|
202 223 1585334645 esp-idf/https_server/libhttps_server.a 6d743a94847b6a8d
|
||||||
|
223 1171 1585334646 esp-idf/esp32/ld/esp32.project.ld 95952199604882f3
|
||||||
|
1171 5292 1585334650 bakalarka.elf 8fe1dd3d033f6afa
|
||||||
|
5292 5645 1585334650 .bin_timestamp 715a021d8f39a8be
|
||||||
|
5645 25173 0 CMakeFiles/flash d83eebc13dccbe41
|
||||||
|
17 116 0 esp-idf/partition_table/CMakeFiles/partition_table fb7f74782daa0374
|
||||||
|
116 141 1585139896 bootloader-prefix/src/bootloader-stamp/bootloader-build c9d3074ff32525e5
|
||||||
|
116 141 1585139896 bootloader/bootloader.elf c9d3074ff32525e5
|
||||||
|
116 141 1585139896 bootloader/bootloader.bin c9d3074ff32525e5
|
||||||
|
116 141 1585139896 bootloader/bootloader.map c9d3074ff32525e5
|
||||||
|
141 19866 0 CMakeFiles/flash d83eebc13dccbe41
|
||||||
|
27 132 0 esp-idf/partition_table/CMakeFiles/partition_table fb7f74782daa0374
|
||||||
|
132 166 1585139896 bootloader-prefix/src/bootloader-stamp/bootloader-build c9d3074ff32525e5
|
||||||
|
132 166 1585139896 bootloader/bootloader.elf c9d3074ff32525e5
|
||||||
|
132 166 1585139896 bootloader/bootloader.bin c9d3074ff32525e5
|
||||||
|
132 166 1585139896 bootloader/bootloader.map c9d3074ff32525e5
|
||||||
|
27 322 1585334878 esp-idf/https_server/CMakeFiles/__idf_https_server.dir/https_server.c.obj adaeb60f8b50b574
|
||||||
|
322 348 1585334878 esp-idf/https_server/libhttps_server.a 6d743a94847b6a8d
|
||||||
|
348 1805 1585334879 esp-idf/esp32/ld/esp32.project.ld 95952199604882f3
|
||||||
|
1805 9100 1585334886 bakalarka.elf 8fe1dd3d033f6afa
|
||||||
|
9101 9921 1585334887 .bin_timestamp 715a021d8f39a8be
|
||||||
|
9921 29727 0 CMakeFiles/flash d83eebc13dccbe41
|
||||||
|
28 144 0 esp-idf/partition_table/CMakeFiles/partition_table fb7f74782daa0374
|
||||||
|
145 177 1585139896 bootloader-prefix/src/bootloader-stamp/bootloader-build c9d3074ff32525e5
|
||||||
|
145 177 1585139896 bootloader/bootloader.elf c9d3074ff32525e5
|
||||||
|
145 177 1585139896 bootloader/bootloader.bin c9d3074ff32525e5
|
||||||
|
145 177 1585139896 bootloader/bootloader.map c9d3074ff32525e5
|
||||||
|
28 354 1585335545 esp-idf/https_server/CMakeFiles/__idf_https_server.dir/https_server.c.obj adaeb60f8b50b574
|
||||||
|
354 385 1585335545 esp-idf/https_server/libhttps_server.a 6d743a94847b6a8d
|
||||||
|
385 1928 1585335546 esp-idf/esp32/ld/esp32.project.ld 95952199604882f3
|
||||||
|
1928 9283 1585335554 bakalarka.elf 8fe1dd3d033f6afa
|
||||||
|
9284 9774 1585335554 .bin_timestamp 715a021d8f39a8be
|
||||||
|
9774 29378 0 CMakeFiles/flash d83eebc13dccbe41
|
||||||
|
27 150 0 esp-idf/partition_table/CMakeFiles/partition_table fb7f74782daa0374
|
||||||
|
150 191 1585139896 bootloader-prefix/src/bootloader-stamp/bootloader-build c9d3074ff32525e5
|
||||||
|
150 191 1585139896 bootloader/bootloader.elf c9d3074ff32525e5
|
||||||
|
150 191 1585139896 bootloader/bootloader.bin c9d3074ff32525e5
|
||||||
|
150 191 1585139896 bootloader/bootloader.map c9d3074ff32525e5
|
||||||
|
19 152 0 esp-idf/partition_table/CMakeFiles/partition_table fb7f74782daa0374
|
||||||
|
152 184 1585139896 bootloader-prefix/src/bootloader-stamp/bootloader-build c9d3074ff32525e5
|
||||||
|
152 184 1585139896 bootloader/bootloader.elf c9d3074ff32525e5
|
||||||
|
152 184 1585139896 bootloader/bootloader.bin c9d3074ff32525e5
|
||||||
|
152 184 1585139896 bootloader/bootloader.map c9d3074ff32525e5
|
||||||
|
Binary file not shown.
37385
build/bakalarka.map
37385
build/bakalarka.map
File diff suppressed because one or more lines are too long
@ -40,7 +40,7 @@ struct pass_args
|
|||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
struct pass_args global_arg;
|
struct pass_args global_arg_task;
|
||||||
|
|
||||||
|
|
||||||
static const char *TAG = "server";
|
static const char *TAG = "server";
|
||||||
@ -58,6 +58,7 @@ static esp_err_t root_get_handler(httpd_req_t *req)
|
|||||||
|
|
||||||
return ESP_OK;
|
return ESP_OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
static esp_err_t echo_post_handler(httpd_req_t *req)
|
static esp_err_t echo_post_handler(httpd_req_t *req)
|
||||||
{
|
{
|
||||||
char buf[3000];
|
char buf[3000];
|
||||||
@ -106,25 +107,30 @@ static esp_err_t echo_post_handler(httpd_req_t *req)
|
|||||||
char* token;
|
char* token;
|
||||||
token = strtok(buffered_out, " ");
|
token = strtok(buffered_out, " ");
|
||||||
strcat(formatted_out,csr_begin);
|
strcat(formatted_out,csr_begin);
|
||||||
strcat(formatted_out,"\n");
|
strcat(formatted_out,"\r\n");
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
while (token != NULL)
|
while (token != NULL)
|
||||||
{
|
{
|
||||||
strcat(formatted_out,token);
|
strcat(formatted_out,token);
|
||||||
strcat(formatted_out,"\n");
|
strcat(formatted_out,"\r\n");
|
||||||
token = strtok(NULL, " ");
|
token = strtok(NULL, " ");
|
||||||
|
|
||||||
}
|
}
|
||||||
strcat(formatted_out,csr_end);
|
strcat(formatted_out,csr_end);
|
||||||
printf("%s",formatted_out);
|
printf("%s",formatted_out);
|
||||||
|
|
||||||
|
int argc = 5;
|
||||||
|
char* argv[] = {"write_cert","request_file=/spiffs/certsignreq.csr","issuer_key=/spiffs/key_file.key","issuer_cert=/spiffs/ca.cert","issuer_cert=/spiffs/serial_num.txt"};
|
||||||
create_file("/spiffs/certsignreq.csr",formatted_out);
|
create_file("/spiffs/certsignreq.csr",formatted_out);
|
||||||
read_file("/spiffs/certsignreq.csr");
|
void task_create_ca(argc,argv);
|
||||||
|
|
||||||
|
//read_file("/spiffs/certsignreq.csr");
|
||||||
httpd_resp_send_chunk(req, out, strlen(out));
|
|
||||||
|
httpd_resp_set_type(req, "application/x-x509-user-cert");
|
||||||
|
//httpd_resp_send_chunk(req, "Hello wrosn\r\nhello",19);
|
||||||
|
|
||||||
|
httpd_resp_send_chunk(req, formatted_out, strlen(formatted_out));
|
||||||
remaining -= ret;
|
remaining -= ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user