Lines Matching +full:- +full:- +full:build +full:- +full:root

2  * Copyright (c) 2013-2017 the CivetWeb developers
4 * License http://opensource.org/licenses/mit-license.php MIT License
54 "HTTP/1.1 200 OK\r\nContent-Type: text/html\r\nConnection: " in ExampleHandler()
117 "HTTP/1.1 200 OK\r\nContent-Type: " in ExitHandler()
130 "HTTP/1.1 200 OK\r\nContent-Type: text/html\r\nConnection: " in AHandler()
143 "HTTP/1.1 200 OK\r\nContent-Type: text/html\r\nConnection: " in ABHandler()
159 "HTTP/1.1 200 OK\r\nContent-Type: text/html\r\nConnection: " in BXHandler()
165 mg_printf(conn, "<p>The actual uri is %s</p>", req_info->local_uri); in BXHandler()
178 "HTTP/1.1 200 OK\r\nContent-Type: text/html\r\nConnection: " in FooHandler()
184 req_info->request_method, in FooHandler()
185 req_info->local_uri, in FooHandler()
186 req_info->http_version); in FooHandler()
199 "HTTP/1.1 200 OK\r\nContent-Type: text/html\r\nConnection: " in CloseHandler()
246 for (; len--; p++) { in bin2str()
351 "HTTP/1.1 200 OK\r\nContent-Type: " in FormHandler()
368 "HTTP/1.1 200 OK\r\nContent-Type: text/html\r\nConnection: " in FileUploadForm()
373 mg_printf(conn, "<meta charset=\"UTF-8\">\n"); in FileUploadForm()
378 "enctype=\"multipart/form-data\">\n", in FileUploadForm()
414 if (context->index < MAX_FILES) { in field_disp_read_on_the_fly()
415 context->index++; in field_disp_read_on_the_fly()
416 strncpy(context->file[context->index - 1].name, filename, 128); in field_disp_read_on_the_fly()
417 context->file[context->index - 1].name[127] = 0; in field_disp_read_on_the_fly()
418 context->file[context->index - 1].length = 0; in field_disp_read_on_the_fly()
419 md5_init(&(context->file[context->index - 1].chksum)); in field_disp_read_on_the_fly()
435 context->file[context->index - 1].length += valuelen; in field_get_checksum()
436 md5_append(&(context->file[context->index - 1].chksum), in field_get_checksum()
465 "Content-Type: text/plain\r\n" in CheckSumHandler()
505 "Set-Cookie: first=%04i-%02i-%02iT%02i:%02i:%02i\r\n", in CookieHandler()
506 ptm->tm_year + 1900, in CookieHandler()
507 ptm->tm_mon + 1, in CookieHandler()
508 ptm->tm_mday, in CookieHandler()
509 ptm->tm_hour, in CookieHandler()
510 ptm->tm_min, in CookieHandler()
511 ptm->tm_sec); in CookieHandler()
514 mg_printf(conn, "Set-Cookie: count=%i\r\n", count + 1); in CookieHandler()
515 mg_printf(conn, "Content-Type: text/html\r\n\r\n"); in CookieHandler()
519 mg_printf(conn, "<p>The actual uri is %s</p>", req_info->local_uri); in CookieHandler()
543 if (0 != strcmp(ri->request_method, "POST")) { in PostResponser()
550 mg_printf(conn, "Content-Type: text/plain\r\n\r\n"); in PostResponser()
553 ri->request_method); in PostResponser()
562 if (ri->content_length >= 0) { in PostResponser()
571 "close\r\nTransfer-Encoding: chunked\r\n"); in PostResponser()
572 mg_printf(conn, "Content-Type: text/plain\r\n\r\n"); in PostResponser()
602 /* Set a random password (4 digit number - bad idea from a security in AuthStartHandler()
604 * and store it in some directory within the document root (extremely in AuthStartHandler()
607 * is just for demonstration - we don't want the browser to store the in AuthStartHandler()
616 "HTTP/1.1 200 OK\r\nContent-Type: text/html\r\nConnection: " in AuthStartHandler()
621 mg_printf(conn, "<meta charset=\"UTF-8\">\n"); in AuthStartHandler()
644 "HTTP/1.1 200 OK\r\nContent-Type: text/html\r\nConnection: " in AuthStartHandler()
649 mg_printf(conn, "<meta charset=\"UTF-8\">\n"); in AuthStartHandler()
666 "HTTP/1.1 200 OK\r\nContent-Type: text/html\r\nConnection: " in WebSocketStartHandler()
671 mg_printf(conn, "<meta charset=\"UTF-8\">\n"); in WebSocketStartHandler()
770 ASSERT(client->conn == conn); in WebSocketReadyHandler()
771 ASSERT(client->state == 1); in WebSocketReadyHandler()
773 client->state = 2; in WebSocketReadyHandler()
785 ASSERT(client->conn == conn); in WebsocketDataHandler()
786 ASSERT(client->state >= 1); in WebsocketDataHandler()
825 ASSERT(client->conn == conn); in WebSocketCloseHandler()
826 ASSERT(client->state >= 1); in WebSocketCloseHandler()
829 client->state = 0; in WebSocketCloseHandler()
830 client->conn = NULL; in WebSocketCloseHandler()
906 dh->p = BN_bin2bn(dh2236_p, sizeof(dh2236_p), NULL); in get_dh2236()
907 dh->g = BN_bin2bn(dh2236_g, sizeof(dh2236_g), NULL); in get_dh2236()
908 if ((dh->p == NULL) || (dh->g == NULL)) { in get_dh2236()
928 return -1; in init_ssl()
930 return -1; in init_ssl()
935 return -1; in init_ssl()
937 return -1; in init_ssl()
980 "ECDHE-RSA-AES256-GCM-SHA384:DES-CBC3-SHA:AES128-SHA:AES128-GCM-SHA256", in main()
982 "DES-CBC3-SHA:AES128-SHA:AES128-GCM-SHA256", in main()
1000 "but civetweb library build without.\n"); in main()
1008 "but civetweb library build without.\n"); in main()
1016 "but civetweb library build without.\n"); in main()
1021 fprintf(stderr, "Cannot start CivetWeb - inconsistent build.\n"); in main()
1035 fprintf(stderr, "Cannot start CivetWeb - mg_start failed.\n"); in main()
1059 /* Add handler for /form (serve a file outside the document root) */ in main()