diff options
author | silvioprog <silvioprog@gmail.com> | 2020-03-31 15:08:34 -0300 |
---|---|---|
committer | silvioprog <silvioprog@gmail.com> | 2020-03-31 15:08:34 -0300 |
commit | bcffdf809fabc09ff8f0a6ef6af601062191a2b4 (patch) | |
tree | 771d4408c8daa05136c722cd4729549862271ac7 /src | |
parent | 6702e6202368720d7a381669c03eedc318f225ca (diff) | |
download | libmicrohttpd-bcffdf809fabc09ff8f0a6ef6af601062191a2b4.tar.gz libmicrohttpd-bcffdf809fabc09ff8f0a6ef6af601062191a2b4.zip |
Applied several spelling fixes. (#6142)
Diffstat (limited to 'src')
26 files changed, 66 insertions, 66 deletions
diff --git a/src/examples/demo.c b/src/examples/demo.c index c7ad4b30..6b2b20f6 100644 --- a/src/examples/demo.c +++ b/src/examples/demo.c | |||
@@ -204,7 +204,7 @@ static magic_t magic; | |||
204 | 204 | ||
205 | 205 | ||
206 | /** | 206 | /** |
207 | * Mark the given response as HTML for the brower. | 207 | * Mark the given response as HTML for the browser. |
208 | * | 208 | * |
209 | * @param response response to mark | 209 | * @param response response to mark |
210 | */ | 210 | */ |
diff --git a/src/examples/demo_https.c b/src/examples/demo_https.c index 7cd98b68..591c4fc0 100644 --- a/src/examples/demo_https.c +++ b/src/examples/demo_https.c | |||
@@ -207,7 +207,7 @@ static magic_t magic; | |||
207 | 207 | ||
208 | 208 | ||
209 | /** | 209 | /** |
210 | * Mark the given response as HTML for the brower. | 210 | * Mark the given response as HTML for the browser. |
211 | * | 211 | * |
212 | * @param response response to mark | 212 | * @param response response to mark |
213 | */ | 213 | */ |
diff --git a/src/examples/msgs_i18n.c b/src/examples/msgs_i18n.c index e5f92bb5..56f9f501 100644 --- a/src/examples/msgs_i18n.c +++ b/src/examples/msgs_i18n.c | |||
@@ -24,7 +24,7 @@ | |||
24 | */ | 24 | */ |
25 | 25 | ||
26 | /* | 26 | /* |
27 | * suposing you are in Brazil: | 27 | * supposing you are in Brazil: |
28 | * | 28 | * |
29 | * # generate the PO file | 29 | * # generate the PO file |
30 | * $ msginit --input=po/libmicrohttpd.pot --locale=pt_BR --output=libmicrohttpd.po | 30 | * $ msginit --input=po/libmicrohttpd.pot --locale=pt_BR --output=libmicrohttpd.po |
diff --git a/src/examples/post_example.c b/src/examples/post_example.c index 885cdb1a..166d8f22 100644 --- a/src/examples/post_example.c +++ b/src/examples/post_example.c | |||
@@ -551,7 +551,7 @@ post_iterator (void *cls, | |||
551 | * can be set with the MHD_OPTION_NOTIFY_COMPLETED). | 551 | * can be set with the MHD_OPTION_NOTIFY_COMPLETED). |
552 | * Initially, <tt>*con_cls</tt> will be NULL. | 552 | * Initially, <tt>*con_cls</tt> will be NULL. |
553 | * @return MHS_YES if the connection was handled successfully, | 553 | * @return MHS_YES if the connection was handled successfully, |
554 | * MHS_NO if the socket must be closed due to a serios | 554 | * MHS_NO if the socket must be closed due to a serious |
555 | * error while handling the request | 555 | * error while handling the request |
556 | */ | 556 | */ |
557 | static int | 557 | static int |
diff --git a/src/include/microhttpd.h b/src/include/microhttpd.h index 109afa5b..5bf33547 100644 --- a/src/include/microhttpd.h +++ b/src/include/microhttpd.h | |||
@@ -43,7 +43,7 @@ | |||
43 | * | 43 | * |
44 | * MHD understands POST data and is able to decode certain formats | 44 | * MHD understands POST data and is able to decode certain formats |
45 | * (at the moment only "application/x-www-form-urlencoded" and | 45 | * (at the moment only "application/x-www-form-urlencoded" and |
46 | * "mulitpart/formdata"). Unsupported encodings and large POST | 46 | * "multipart/formdata"). Unsupported encodings and large POST |
47 | * submissions may require the application to manually process | 47 | * submissions may require the application to manually process |
48 | * the stream, which is provided to the main application (and thus can be | 48 | * the stream, which is provided to the main application (and thus can be |
49 | * processed, just not conveniently by MHD). | 49 | * processed, just not conveniently by MHD). |
@@ -132,7 +132,7 @@ typedef intptr_t ssize_t; | |||
132 | * Current version of the library. | 132 | * Current version of the library. |
133 | * 0x01093001 = 1.9.30-1. | 133 | * 0x01093001 = 1.9.30-1. |
134 | */ | 134 | */ |
135 | #define MHD_VERSION 0x00097001 | 135 | #define MHD_VERSION 0x00097002 |
136 | 136 | ||
137 | /** | 137 | /** |
138 | * MHD-internal return code for "YES". | 138 | * MHD-internal return code for "YES". |
@@ -522,7 +522,7 @@ MHD_get_reason_phrase_for (unsigned int code); | |||
522 | /** | 522 | /** |
523 | * Flag to be or-ed with MHD_HTTP status code for | 523 | * Flag to be or-ed with MHD_HTTP status code for |
524 | * SHOUTcast. This will cause the response to begin | 524 | * SHOUTcast. This will cause the response to begin |
525 | * with the SHOUTcast "ICY" line instad of "HTTP". | 525 | * with the SHOUTcast "ICY" line instead of "HTTP". |
526 | * @ingroup specialized | 526 | * @ingroup specialized |
527 | */ | 527 | */ |
528 | #define MHD_ICY_FLAG ((uint32_t) (((uint32_t) 1) << 31)) | 528 | #define MHD_ICY_FLAG ((uint32_t) (((uint32_t) 1) << 31)) |
@@ -1562,7 +1562,7 @@ enum MHD_OPTION | |||
1562 | * of the buffer pointed to by the second argument in bytes. | 1562 | * of the buffer pointed to by the second argument in bytes. |
1563 | * Note that the application must ensure that the buffer of the | 1563 | * Note that the application must ensure that the buffer of the |
1564 | * second argument remains allocated and unmodified while the | 1564 | * second argument remains allocated and unmodified while the |
1565 | * deamon is running. | 1565 | * daemon is running. |
1566 | */ | 1566 | */ |
1567 | MHD_OPTION_DIGEST_AUTH_RANDOM = 17, | 1567 | MHD_OPTION_DIGEST_AUTH_RANDOM = 17, |
1568 | 1568 | ||
@@ -1628,7 +1628,7 @@ enum MHD_OPTION | |||
1628 | * If present and set to true, allow reusing address:port socket | 1628 | * If present and set to true, allow reusing address:port socket |
1629 | * (by using SO_REUSEPORT on most platform, or platform-specific ways). | 1629 | * (by using SO_REUSEPORT on most platform, or platform-specific ways). |
1630 | * If present and set to false, disallow reusing address:port socket | 1630 | * If present and set to false, disallow reusing address:port socket |
1631 | * (does nothing on most plaform, but uses SO_EXCLUSIVEADDRUSE on Windows). | 1631 | * (does nothing on most platform, but uses SO_EXCLUSIVEADDRUSE on Windows). |
1632 | * This option must be followed by a `unsigned int` argument. | 1632 | * This option must be followed by a `unsigned int` argument. |
1633 | */ | 1633 | */ |
1634 | MHD_OPTION_LISTENING_ADDRESS_REUSE = 25, | 1634 | MHD_OPTION_LISTENING_ADDRESS_REUSE = 25, |
@@ -2038,7 +2038,7 @@ enum MHD_ConnectionInfoType | |||
2038 | 2038 | ||
2039 | /** | 2039 | /** |
2040 | * Values of this enum are used to specify what | 2040 | * Values of this enum are used to specify what |
2041 | * information about a deamon is desired. | 2041 | * information about a daemon is desired. |
2042 | */ | 2042 | */ |
2043 | enum MHD_DaemonInfoType | 2043 | enum MHD_DaemonInfoType |
2044 | { | 2044 | { |
@@ -2099,8 +2099,8 @@ enum MHD_DaemonInfoType | |||
2099 | * an error message and `abort()`. | 2099 | * an error message and `abort()`. |
2100 | * | 2100 | * |
2101 | * @param cls user specified value | 2101 | * @param cls user specified value |
2102 | * @param file where the error occured | 2102 | * @param file where the error occurred |
2103 | * @param line where the error occured | 2103 | * @param line where the error occurred |
2104 | * @param reason error detail, may be NULL | 2104 | * @param reason error detail, may be NULL |
2105 | * @ingroup logging | 2105 | * @ingroup logging |
2106 | */ | 2106 | */ |
@@ -2160,7 +2160,7 @@ typedef int | |||
2160 | * can be set with the #MHD_OPTION_NOTIFY_COMPLETED). | 2160 | * can be set with the #MHD_OPTION_NOTIFY_COMPLETED). |
2161 | * Initially, `*con_cls` will be NULL. | 2161 | * Initially, `*con_cls` will be NULL. |
2162 | * @return #MHD_YES if the connection was handled successfully, | 2162 | * @return #MHD_YES if the connection was handled successfully, |
2163 | * #MHD_NO if the socket must be closed due to a serios | 2163 | * #MHD_NO if the socket must be closed due to a serious |
2164 | * error while handling the request | 2164 | * error while handling the request |
2165 | */ | 2165 | */ |
2166 | typedef int | 2166 | typedef int |
@@ -3340,7 +3340,7 @@ MHD_create_response_for_upgrade (MHD_UpgradeHandler upgrade_handler, | |||
3340 | * Destroy a response object and associated resources. Note that | 3340 | * Destroy a response object and associated resources. Note that |
3341 | * libmicrohttpd may keep some of the resources around if the response | 3341 | * libmicrohttpd may keep some of the resources around if the response |
3342 | * is still in the queue for some clients, so the memory may not | 3342 | * is still in the queue for some clients, so the memory may not |
3343 | * necessarily be freed immediatley. | 3343 | * necessarily be freed immediately. |
3344 | * | 3344 | * |
3345 | * @param response response to destroy | 3345 | * @param response response to destroy |
3346 | * @ingroup response | 3346 | * @ingroup response |
@@ -3576,7 +3576,7 @@ MHD_digest_auth_check2 (struct MHD_Connection *connection, | |||
3576 | * Uses #MHD_DIGEST_ALG_MD5 (for now, for backwards-compatibility). | 3576 | * Uses #MHD_DIGEST_ALG_MD5 (for now, for backwards-compatibility). |
3577 | * Note that this MAY change to #MHD_DIGEST_ALG_AUTO in the future. | 3577 | * Note that this MAY change to #MHD_DIGEST_ALG_AUTO in the future. |
3578 | * If you want to be sure you get MD5, use #MHD_digest_auth_check2() | 3578 | * If you want to be sure you get MD5, use #MHD_digest_auth_check2() |
3579 | * and specifiy MD5 explicitly. | 3579 | * and specify MD5 explicitly. |
3580 | * | 3580 | * |
3581 | * @param connection The MHD connection structure | 3581 | * @param connection The MHD connection structure |
3582 | * @param realm The realm presented to the client | 3582 | * @param realm The realm presented to the client |
diff --git a/src/include/microhttpd2.h b/src/include/microhttpd2.h index 1262c7a8..7c1b5187 100644 --- a/src/include/microhttpd2.h +++ b/src/include/microhttpd2.h | |||
@@ -536,7 +536,7 @@ enum MHD_StatusCode | |||
536 | MHD_SC_TLS_DISABLED = 50000, | 536 | MHD_SC_TLS_DISABLED = 50000, |
537 | 537 | ||
538 | /** | 538 | /** |
539 | * The application attempted to setup TLS paramters before | 539 | * The application attempted to setup TLS parameters before |
540 | * enabling TLS. | 540 | * enabling TLS. |
541 | */ | 541 | */ |
542 | MHD_SC_TLS_BACKEND_UNINITIALIZED = 50003, | 542 | MHD_SC_TLS_BACKEND_UNINITIALIZED = 50003, |
@@ -1469,7 +1469,7 @@ enum MHD_Method | |||
1469 | * @param method the HTTP method used (#MHD_HTTP_METHOD_GET, | 1469 | * @param method the HTTP method used (#MHD_HTTP_METHOD_GET, |
1470 | * #MHD_HTTP_METHOD_PUT, etc.) | 1470 | * #MHD_HTTP_METHOD_PUT, etc.) |
1471 | * @return action how to proceed, NULL | 1471 | * @return action how to proceed, NULL |
1472 | * if the socket must be closed due to a serios | 1472 | * if the socket must be closed due to a serious |
1473 | * error while handling the request | 1473 | * error while handling the request |
1474 | */ | 1474 | */ |
1475 | typedef const struct MHD_Action * | 1475 | typedef const struct MHD_Action * |
@@ -2005,7 +2005,7 @@ MHD_NONNULL (1); | |||
2005 | * If present true, allow reusing address:port socket (by using | 2005 | * If present true, allow reusing address:port socket (by using |
2006 | * SO_REUSEPORT on most platform, or platform-specific ways). If | 2006 | * SO_REUSEPORT on most platform, or platform-specific ways). If |
2007 | * present and set to false, disallow reusing address:port socket | 2007 | * present and set to false, disallow reusing address:port socket |
2008 | * (does nothing on most plaform, but uses SO_EXCLUSIVEADDRUSE on | 2008 | * (does nothing on most platform, but uses SO_EXCLUSIVEADDRUSE on |
2009 | * Windows). | 2009 | * Windows). |
2010 | * Ineffective in conjunction with #MHD_daemon_listen_socket(). | 2010 | * Ineffective in conjunction with #MHD_daemon_listen_socket(). |
2011 | * | 2011 | * |
@@ -2124,7 +2124,7 @@ MHD_NONNULL (1); | |||
2124 | 2124 | ||
2125 | /** | 2125 | /** |
2126 | * Use SHOUTcast. This will cause the response to begin | 2126 | * Use SHOUTcast. This will cause the response to begin |
2127 | * with the SHOUTcast "ICY" line instad of "HTTP". | 2127 | * with the SHOUTcast "ICY" line instead of "HTTP". |
2128 | * | 2128 | * |
2129 | * @param daemon daemon to set SHOUTcast option for | 2129 | * @param daemon daemon to set SHOUTcast option for |
2130 | */ | 2130 | */ |
@@ -2566,7 +2566,7 @@ MHD_NONNULL (1); | |||
2566 | /** | 2566 | /** |
2567 | * Set random values to be used by the Digest Auth module. Note that | 2567 | * Set random values to be used by the Digest Auth module. Note that |
2568 | * the application must ensure that @a buf remains allocated and | 2568 | * the application must ensure that @a buf remains allocated and |
2569 | * unmodified while the deamon is running. | 2569 | * unmodified while the daemon is running. |
2570 | * | 2570 | * |
2571 | * @param daemon daemon to configure | 2571 | * @param daemon daemon to configure |
2572 | * @param buf_size number of bytes in @a buf | 2572 | * @param buf_size number of bytes in @a buf |
@@ -3886,7 +3886,7 @@ MHD_NONNULL (1,3); | |||
3886 | 3886 | ||
3887 | /** | 3887 | /** |
3888 | * Values of this enum are used to specify what | 3888 | * Values of this enum are used to specify what |
3889 | * information about a deamon is desired. | 3889 | * information about a daemon is desired. |
3890 | */ | 3890 | */ |
3891 | enum MHD_DaemonInformationType | 3891 | enum MHD_DaemonInformationType |
3892 | { | 3892 | { |
@@ -3996,8 +3996,8 @@ MHD_NONNULL (1,3); | |||
3996 | * an error message and `abort()`. | 3996 | * an error message and `abort()`. |
3997 | * | 3997 | * |
3998 | * @param cls user specified value | 3998 | * @param cls user specified value |
3999 | * @param file where the error occured | 3999 | * @param file where the error occurred |
4000 | * @param line where the error occured | 4000 | * @param line where the error occurred |
4001 | * @param reason error detail, may be NULL | 4001 | * @param reason error detail, may be NULL |
4002 | * @ingroup logging | 4002 | * @ingroup logging |
4003 | */ | 4003 | */ |
diff --git a/src/lib/connection_add.c b/src/lib/connection_add.c index be75946d..878380ae 100644 --- a/src/lib/connection_add.c +++ b/src/lib/connection_add.c | |||
@@ -1044,7 +1044,7 @@ MHD_accept_connection_ (struct MHD_Daemon *daemon) | |||
1044 | { | 1044 | { |
1045 | const int err = MHD_socket_get_error_ (); | 1045 | const int err = MHD_socket_get_error_ (); |
1046 | 1046 | ||
1047 | /* This could be a common occurance with multiple worker threads */ | 1047 | /* This could be a common occurrence with multiple worker threads */ |
1048 | if (MHD_SCKT_ERR_IS_ (err, | 1048 | if (MHD_SCKT_ERR_IS_ (err, |
1049 | MHD_SCKT_EINVAL_)) | 1049 | MHD_SCKT_EINVAL_)) |
1050 | return MHD_SC_DAEMON_ALREADY_SHUTDOWN; /* can happen during shutdown, let's hope this is the cause... */ | 1050 | return MHD_SC_DAEMON_ALREADY_SHUTDOWN; /* can happen during shutdown, let's hope this is the cause... */ |
diff --git a/src/lib/connection_call_handlers.c b/src/lib/connection_call_handlers.c index 148e6345..fa79952b 100644 --- a/src/lib/connection_call_handlers.c +++ b/src/lib/connection_call_handlers.c | |||
@@ -158,7 +158,7 @@ MHD_conn_init_static_ (void) | |||
158 | 158 | ||
159 | 159 | ||
160 | /** | 160 | /** |
161 | * A serious error occured, close the | 161 | * A serious error occurred, close the |
162 | * connection (and notify the application). | 162 | * connection (and notify the application). |
163 | * | 163 | * |
164 | * @param connection connection to close with error | 164 | * @param connection connection to close with error |
diff --git a/src/lib/daemon_destroy.c b/src/lib/daemon_destroy.c index 41e5c057..e40ff520 100644 --- a/src/lib/daemon_destroy.c +++ b/src/lib/daemon_destroy.c | |||
@@ -30,7 +30,7 @@ | |||
30 | /** | 30 | /** |
31 | * Stop all worker threads from the worker pool. | 31 | * Stop all worker threads from the worker pool. |
32 | * | 32 | * |
33 | * @param daemon master daemon controling the workers | 33 | * @param daemon master daemon controlling the workers |
34 | */ | 34 | */ |
35 | static void | 35 | static void |
36 | stop_workers (struct MHD_Daemon *daemon) | 36 | stop_workers (struct MHD_Daemon *daemon) |
diff --git a/src/lib/daemon_options.c b/src/lib/daemon_options.c index 04c9cb2f..fa84fe83 100644 --- a/src/lib/daemon_options.c +++ b/src/lib/daemon_options.c | |||
@@ -233,7 +233,7 @@ MHD_daemon_listen_backlog (struct MHD_Daemon *daemon, | |||
233 | * If present true, allow reusing address:port socket (by using | 233 | * If present true, allow reusing address:port socket (by using |
234 | * SO_REUSEPORT on most platform, or platform-specific ways). If | 234 | * SO_REUSEPORT on most platform, or platform-specific ways). If |
235 | * present and set to false, disallow reusing address:port socket | 235 | * present and set to false, disallow reusing address:port socket |
236 | * (does nothing on most plaform, but uses SO_EXCLUSIVEADDRUSE on | 236 | * (does nothing on most platform, but uses SO_EXCLUSIVEADDRUSE on |
237 | * Windows). | 237 | * Windows). |
238 | * Ineffective in conjunction with #MHD_daemon_listen_socket(). | 238 | * Ineffective in conjunction with #MHD_daemon_listen_socket(). |
239 | * | 239 | * |
@@ -248,7 +248,7 @@ MHD_daemon_listen_allow_address_reuse (struct MHD_Daemon *daemon) | |||
248 | 248 | ||
249 | /** | 249 | /** |
250 | * Use SHOUTcast. This will cause the response to begin | 250 | * Use SHOUTcast. This will cause the response to begin |
251 | * with the SHOUTcast "ICY" line instad of "HTTP". | 251 | * with the SHOUTcast "ICY" line instead of "HTTP". |
252 | * | 252 | * |
253 | * @param daemon daemon to set SHOUTcast option for | 253 | * @param daemon daemon to set SHOUTcast option for |
254 | */ | 254 | */ |
@@ -452,7 +452,7 @@ MHD_daemon_tls_mem_dhparams (struct MHD_Daemon *daemon, | |||
452 | 452 | ||
453 | /** | 453 | /** |
454 | * Memory pointer for the certificate (ca.pem) to be used by the | 454 | * Memory pointer for the certificate (ca.pem) to be used by the |
455 | * HTTPS daemon for client authentification. | 455 | * HTTPS daemon for client authentication. |
456 | * | 456 | * |
457 | * @param daemon daemon to configure tls for | 457 | * @param daemon daemon to configure tls for |
458 | * @param mem_trust memory pointer to the certificate | 458 | * @param mem_trust memory pointer to the certificate |
@@ -707,7 +707,7 @@ MHD_daemon_unescape_cb (struct MHD_Daemon *daemon, | |||
707 | /** | 707 | /** |
708 | * Set random values to be used by the Digest Auth module. Note that | 708 | * Set random values to be used by the Digest Auth module. Note that |
709 | * the application must ensure that @a buf remains allocated and | 709 | * the application must ensure that @a buf remains allocated and |
710 | * unmodified while the deamon is running. | 710 | * unmodified while the daemon is running. |
711 | * | 711 | * |
712 | * @param daemon daemon to configure | 712 | * @param daemon daemon to configure |
713 | * @param buf_size number of bytes in @a buf | 713 | * @param buf_size number of bytes in @a buf |
diff --git a/src/lib/internal.h b/src/lib/internal.h index 6c43fc20..c9971999 100644 --- a/src/lib/internal.h +++ b/src/lib/internal.h | |||
@@ -1410,7 +1410,7 @@ struct MHD_Daemon | |||
1410 | struct MHD_itc_ itc; | 1410 | struct MHD_itc_ itc; |
1411 | 1411 | ||
1412 | /** | 1412 | /** |
1413 | * Which threading mode do we use? Postive | 1413 | * Which threading mode do we use? Positive |
1414 | * numbers indicate the number of worker threads to be used. | 1414 | * numbers indicate the number of worker threads to be used. |
1415 | * Values larger than 1 imply a thread pool. | 1415 | * Values larger than 1 imply a thread pool. |
1416 | */ | 1416 | */ |
diff --git a/src/microhttpd/connection.c b/src/microhttpd/connection.c index 77ccfbfb..80a9bff0 100644 --- a/src/microhttpd/connection.c +++ b/src/microhttpd/connection.c | |||
@@ -835,7 +835,7 @@ MHD_connection_finish_forward_ (struct MHD_Connection *connection) | |||
835 | 835 | ||
836 | 836 | ||
837 | /** | 837 | /** |
838 | * A serious error occured, close the | 838 | * A serious error occurred, close the |
839 | * connection (and notify the application). | 839 | * connection (and notify the application). |
840 | * | 840 | * |
841 | * @param connection connection to close with error | 841 | * @param connection connection to close with error |
diff --git a/src/microhttpd/daemon.c b/src/microhttpd/daemon.c index 4f7c2108..f7c138aa 100644 --- a/src/microhttpd/daemon.c +++ b/src/microhttpd/daemon.c | |||
@@ -3223,7 +3223,7 @@ MHD_accept_connection (struct MHD_Daemon *daemon) | |||
3223 | { | 3223 | { |
3224 | const int err = MHD_socket_get_error_ (); | 3224 | const int err = MHD_socket_get_error_ (); |
3225 | 3225 | ||
3226 | /* This could be a common occurance with multiple worker threads */ | 3226 | /* This could be a common occurrence with multiple worker threads */ |
3227 | if (MHD_SCKT_ERR_IS_ (err, | 3227 | if (MHD_SCKT_ERR_IS_ (err, |
3228 | MHD_SCKT_EINVAL_)) | 3228 | MHD_SCKT_EINVAL_)) |
3229 | return MHD_NO; /* can happen during shutdown */ | 3229 | return MHD_NO; /* can happen during shutdown */ |
diff --git a/src/microhttpd/digestauth.c b/src/microhttpd/digestauth.c index b6a684a4..e5c66d56 100644 --- a/src/microhttpd/digestauth.c +++ b/src/microhttpd/digestauth.c | |||
@@ -1140,7 +1140,7 @@ digest_auth_check_all (struct MHD_Connection *connection, | |||
1140 | * Uses #MHD_DIGEST_ALG_MD5 (for now, for backwards-compatibility). | 1140 | * Uses #MHD_DIGEST_ALG_MD5 (for now, for backwards-compatibility). |
1141 | * Note that this MAY change to #MHD_DIGEST_ALG_AUTO in the future. | 1141 | * Note that this MAY change to #MHD_DIGEST_ALG_AUTO in the future. |
1142 | * If you want to be sure you get MD5, use #MHD_digest_auth_check2 | 1142 | * If you want to be sure you get MD5, use #MHD_digest_auth_check2 |
1143 | * and specifiy MD5 explicitly. | 1143 | * and specify MD5 explicitly. |
1144 | * | 1144 | * |
1145 | * @param connection The MHD connection structure | 1145 | * @param connection The MHD connection structure |
1146 | * @param realm The realm presented to the client | 1146 | * @param realm The realm presented to the client |
@@ -1278,7 +1278,7 @@ MHD_digest_auth_check_digest2 (struct MHD_Connection *connection, | |||
1278 | 1278 | ||
1279 | mhd_assert (NULL != digest); | 1279 | mhd_assert (NULL != digest); |
1280 | if (da.digest_size != digest_size) | 1280 | if (da.digest_size != digest_size) |
1281 | MHD_PANIC (_ ("digest size missmatch")); /* API violation! */ | 1281 | MHD_PANIC (_ ("digest size mismatch")); /* API violation! */ |
1282 | return digest_auth_check_all (connection, | 1282 | return digest_auth_check_all (connection, |
1283 | &da, | 1283 | &da, |
1284 | realm, | 1284 | realm, |
diff --git a/src/microhttpd/internal.h b/src/microhttpd/internal.h index ad16535e..96e24780 100644 --- a/src/microhttpd/internal.h +++ b/src/microhttpd/internal.h | |||
@@ -1546,7 +1546,7 @@ struct MHD_Daemon | |||
1546 | volatile bool shutdown; | 1546 | volatile bool shutdown; |
1547 | 1547 | ||
1548 | /** | 1548 | /** |
1549 | * Has this deamon been quiesced via #MHD_quiesce_daemon()? | 1549 | * Has this daemon been quiesced via #MHD_quiesce_daemon()? |
1550 | * If so, we should no longer use the @e listen_fd (including | 1550 | * If so, we should no longer use the @e listen_fd (including |
1551 | * removing it from the @e epoll_fd when possible). | 1551 | * removing it from the @e epoll_fd when possible). |
1552 | */ | 1552 | */ |
diff --git a/src/microhttpd/memorypool.h b/src/microhttpd/memorypool.h index 6f5d539d..2d1fd119 100644 --- a/src/microhttpd/memorypool.h +++ b/src/microhttpd/memorypool.h | |||
@@ -44,7 +44,7 @@ | |||
44 | struct MemoryPool; | 44 | struct MemoryPool; |
45 | 45 | ||
46 | /** | 46 | /** |
47 | * Initilise values for memory pools | 47 | * Initialize values for memory pools |
48 | */ | 48 | */ |
49 | void | 49 | void |
50 | MHD_init_mem_pools_ (void); | 50 | MHD_init_mem_pools_ (void); |
diff --git a/src/microhttpd/mhd_bithelpers.h b/src/microhttpd/mhd_bithelpers.h index 34e49d15..e023bf12 100644 --- a/src/microhttpd/mhd_bithelpers.h +++ b/src/microhttpd/mhd_bithelpers.h | |||
@@ -100,7 +100,7 @@ | |||
100 | #define _MHD_PUT_64BIT_LE(addr, value64) \ | 100 | #define _MHD_PUT_64BIT_LE(addr, value64) \ |
101 | ((*(uint64_t*) (addr)) = _MHD_BYTES_SWAP64 (value64)) | 101 | ((*(uint64_t*) (addr)) = _MHD_BYTES_SWAP64 (value64)) |
102 | #else /* _MHD_BYTE_ORDER != _MHD_BIG_ENDIAN */ | 102 | #else /* _MHD_BYTE_ORDER != _MHD_BIG_ENDIAN */ |
103 | /* Endianess was not detected or non-standard like PDP-endian */ | 103 | /* Endianness was not detected or non-standard like PDP-endian */ |
104 | #define _MHD_PUT_64BIT_LE(addr, value64) do { \ | 104 | #define _MHD_PUT_64BIT_LE(addr, value64) do { \ |
105 | ((uint8_t*) (addr))[0] = (uint8_t) ((uint64_t) (value64)); \ | 105 | ((uint8_t*) (addr))[0] = (uint8_t) ((uint64_t) (value64)); \ |
106 | ((uint8_t*) (addr))[1] = (uint8_t) (((uint64_t) (value64)) >> 8); \ | 106 | ((uint8_t*) (addr))[1] = (uint8_t) (((uint64_t) (value64)) >> 8); \ |
@@ -124,7 +124,7 @@ | |||
124 | #define _MHD_PUT_32BIT_LE(addr, value32) \ | 124 | #define _MHD_PUT_32BIT_LE(addr, value32) \ |
125 | ((*(uint32_t*) (addr)) = _MHD_BYTES_SWAP32 (value32)) | 125 | ((*(uint32_t*) (addr)) = _MHD_BYTES_SWAP32 (value32)) |
126 | #else /* _MHD_BYTE_ORDER != _MHD_BIG_ENDIAN */ | 126 | #else /* _MHD_BYTE_ORDER != _MHD_BIG_ENDIAN */ |
127 | /* Endianess was not detected or non-standard like PDP-endian */ | 127 | /* Endianness was not detected or non-standard like PDP-endian */ |
128 | #define _MHD_PUT_32BIT_LE(addr, value32) do { \ | 128 | #define _MHD_PUT_32BIT_LE(addr, value32) do { \ |
129 | ((uint8_t*) (addr))[0] = (uint8_t) ((uint32_t) (value32)); \ | 129 | ((uint8_t*) (addr))[0] = (uint8_t) ((uint32_t) (value32)); \ |
130 | ((uint8_t*) (addr))[1] = (uint8_t) (((uint32_t) (value32)) >> 8); \ | 130 | ((uint8_t*) (addr))[1] = (uint8_t) (((uint32_t) (value32)) >> 8); \ |
@@ -144,7 +144,7 @@ | |||
144 | #define _MHD_GET_32BIT_LE(addr) \ | 144 | #define _MHD_GET_32BIT_LE(addr) \ |
145 | _MHD_BYTES_SWAP32 (*(const uint32_t*) (addr)) | 145 | _MHD_BYTES_SWAP32 (*(const uint32_t*) (addr)) |
146 | #else /* _MHD_BYTE_ORDER != _MHD_BIG_ENDIAN */ | 146 | #else /* _MHD_BYTE_ORDER != _MHD_BIG_ENDIAN */ |
147 | /* Endianess was not detected or non-standard like PDP-endian */ | 147 | /* Endianness was not detected or non-standard like PDP-endian */ |
148 | #define _MHD_GET_32BIT_LE(addr) \ | 148 | #define _MHD_GET_32BIT_LE(addr) \ |
149 | ( ( (uint32_t) (((const uint8_t*) addr)[0])) \ | 149 | ( ( (uint32_t) (((const uint8_t*) addr)[0])) \ |
150 | | (((uint32_t) (((const uint8_t*) addr)[1])) << 8) \ | 150 | | (((uint32_t) (((const uint8_t*) addr)[1])) << 8) \ |
@@ -164,7 +164,7 @@ | |||
164 | #define _MHD_PUT_64BIT_BE(addr, value64) \ | 164 | #define _MHD_PUT_64BIT_BE(addr, value64) \ |
165 | ((*(uint64_t*) (addr)) = _MHD_BYTES_SWAP64 (value64)) | 165 | ((*(uint64_t*) (addr)) = _MHD_BYTES_SWAP64 (value64)) |
166 | #else /* _MHD_BYTE_ORDER != _MHD_LITTLE_ENDIAN */ | 166 | #else /* _MHD_BYTE_ORDER != _MHD_LITTLE_ENDIAN */ |
167 | /* Endianess was not detected or non-standard like PDP-endian */ | 167 | /* Endianness was not detected or non-standard like PDP-endian */ |
168 | #define _MHD_PUT_64BIT_BE(addr, value64) do { \ | 168 | #define _MHD_PUT_64BIT_BE(addr, value64) do { \ |
169 | ((uint8_t*) (addr))[7] = (uint8_t) ((uint64_t) (value64)); \ | 169 | ((uint8_t*) (addr))[7] = (uint8_t) ((uint64_t) (value64)); \ |
170 | ((uint8_t*) (addr))[6] = (uint8_t) (((uint64_t) (value64)) >> 8); \ | 170 | ((uint8_t*) (addr))[6] = (uint8_t) (((uint64_t) (value64)) >> 8); \ |
@@ -188,7 +188,7 @@ | |||
188 | #define _MHD_PUT_32BIT_BE(addr, value32) \ | 188 | #define _MHD_PUT_32BIT_BE(addr, value32) \ |
189 | ((*(uint32_t*) (addr)) = _MHD_BYTES_SWAP32 (value32)) | 189 | ((*(uint32_t*) (addr)) = _MHD_BYTES_SWAP32 (value32)) |
190 | #else /* _MHD_BYTE_ORDER != _MHD_LITTLE_ENDIAN */ | 190 | #else /* _MHD_BYTE_ORDER != _MHD_LITTLE_ENDIAN */ |
191 | /* Endianess was not detected or non-standard like PDP-endian */ | 191 | /* Endianness was not detected or non-standard like PDP-endian */ |
192 | #define _MHD_PUT_32BIT_BE(addr, value32) do { \ | 192 | #define _MHD_PUT_32BIT_BE(addr, value32) do { \ |
193 | ((uint8_t*) (addr))[3] = (uint8_t) ((uint32_t) (value32)); \ | 193 | ((uint8_t*) (addr))[3] = (uint8_t) ((uint32_t) (value32)); \ |
194 | ((uint8_t*) (addr))[2] = (uint8_t) (((uint32_t) (value32)) >> 8); \ | 194 | ((uint8_t*) (addr))[2] = (uint8_t) (((uint32_t) (value32)) >> 8); \ |
@@ -208,7 +208,7 @@ | |||
208 | #define _MHD_GET_32BIT_BE(addr) \ | 208 | #define _MHD_GET_32BIT_BE(addr) \ |
209 | _MHD_BYTES_SWAP32 (*(const uint32_t*) (addr)) | 209 | _MHD_BYTES_SWAP32 (*(const uint32_t*) (addr)) |
210 | #else /* _MHD_BYTE_ORDER != _MHD_LITTLE_ENDIAN */ | 210 | #else /* _MHD_BYTE_ORDER != _MHD_LITTLE_ENDIAN */ |
211 | /* Endianess was not detected or non-standard like PDP-endian */ | 211 | /* Endianness was not detected or non-standard like PDP-endian */ |
212 | #define _MHD_GET_32BIT_BE(addr) \ | 212 | #define _MHD_GET_32BIT_BE(addr) \ |
213 | ( (((uint32_t) (((const uint8_t*) addr)[0])) << 24) \ | 213 | ( (((uint32_t) (((const uint8_t*) addr)[0])) << 24) \ |
214 | | (((uint32_t) (((const uint8_t*) addr)[1])) << 16) \ | 214 | | (((uint32_t) (((const uint8_t*) addr)[1])) << 16) \ |
diff --git a/src/microhttpd/mhd_send.c b/src/microhttpd/mhd_send.c index b0c0842b..cc75bbde 100644 --- a/src/microhttpd/mhd_send.c +++ b/src/microhttpd/mhd_send.c | |||
@@ -86,11 +86,11 @@ pre_cork_setsockopt (struct MHD_Connection *connection, | |||
86 | #endif | 86 | #endif |
87 | break; | 87 | break; |
88 | case EFAULT: | 88 | case EFAULT: |
89 | /* wopsie, should at leats log this, FIXME: maybe die */ | 89 | /* wopsie, should at least log this, FIXME: maybe die */ |
90 | #ifdef HAVE_MESSAGES | 90 | #ifdef HAVE_MESSAGES |
91 | MHD_DLOG (connection->daemon, | 91 | MHD_DLOG (connection->daemon, |
92 | _ ( | 92 | _ ( |
93 | "The addresss pointed to by optval is not a valid part of the process address space: %s\n"), | 93 | "The address pointed to by optval is not a valid part of the process address space: %s\n"), |
94 | MHD_socket_last_strerr_ ()); | 94 | MHD_socket_last_strerr_ ()); |
95 | #endif | 95 | #endif |
96 | break; | 96 | break; |
@@ -173,11 +173,11 @@ post_cork_setsockopt (struct MHD_Connection *connection, | |||
173 | #endif | 173 | #endif |
174 | break; | 174 | break; |
175 | case EFAULT: | 175 | case EFAULT: |
176 | /* wopsie, should at leats log this, FIXME: maybe die */ | 176 | /* wopsie, should at least log this, FIXME: maybe die */ |
177 | #ifdef HAVE_MESSAGES | 177 | #ifdef HAVE_MESSAGES |
178 | MHD_DLOG (connection->daemon, | 178 | MHD_DLOG (connection->daemon, |
179 | _ ( | 179 | _ ( |
180 | "The addresss pointed to by optval is not a valid part of the process address space: %s\n"), | 180 | "The address pointed to by optval is not a valid part of the process address space: %s\n"), |
181 | MHD_socket_last_strerr_ ()); | 181 | MHD_socket_last_strerr_ ()); |
182 | #endif | 182 | #endif |
183 | break; | 183 | break; |
diff --git a/src/microhttpd/test_md5.c b/src/microhttpd/test_md5.c index 2825c09f..9d3ff63f 100644 --- a/src/microhttpd/test_md5.c +++ b/src/microhttpd/test_md5.c | |||
@@ -243,16 +243,16 @@ bin2hex (const uint8_t *bin, | |||
243 | static int | 243 | static int |
244 | check_result (const char *test_name, | 244 | check_result (const char *test_name, |
245 | unsigned int check_num, | 245 | unsigned int check_num, |
246 | const uint8_t calcualted[MD5_DIGEST_SIZE], | 246 | const uint8_t calculated[MD5_DIGEST_SIZE], |
247 | const uint8_t expected[MD5_DIGEST_SIZE]) | 247 | const uint8_t expected[MD5_DIGEST_SIZE]) |
248 | { | 248 | { |
249 | int failed = memcmp (calcualted, expected, MD5_DIGEST_SIZE); | 249 | int failed = memcmp (calculated, expected, MD5_DIGEST_SIZE); |
250 | check_num++; /* Print 1-based numbers */ | 250 | check_num++; /* Print 1-based numbers */ |
251 | if (failed) | 251 | if (failed) |
252 | { | 252 | { |
253 | char calc_str[MD5_DIGEST_STRING_LENGTH]; | 253 | char calc_str[MD5_DIGEST_STRING_LENGTH]; |
254 | char expc_str[MD5_DIGEST_STRING_LENGTH]; | 254 | char expc_str[MD5_DIGEST_STRING_LENGTH]; |
255 | bin2hex (calcualted, MD5_DIGEST_SIZE, calc_str); | 255 | bin2hex (calculated, MD5_DIGEST_SIZE, calc_str); |
256 | bin2hex (expected, MD5_DIGEST_SIZE, expc_str); | 256 | bin2hex (expected, MD5_DIGEST_SIZE, expc_str); |
257 | fprintf (stderr, | 257 | fprintf (stderr, |
258 | "FAILED: %s check %u: calculated digest %s, expected digest %s.\n", | 258 | "FAILED: %s check %u: calculated digest %s, expected digest %s.\n", |
@@ -262,7 +262,7 @@ check_result (const char *test_name, | |||
262 | else if (verbose) | 262 | else if (verbose) |
263 | { | 263 | { |
264 | char calc_str[MD5_DIGEST_STRING_LENGTH]; | 264 | char calc_str[MD5_DIGEST_STRING_LENGTH]; |
265 | bin2hex (calcualted, MD5_DIGEST_SIZE, calc_str); | 265 | bin2hex (calculated, MD5_DIGEST_SIZE, calc_str); |
266 | printf ( | 266 | printf ( |
267 | "PASSED: %s check %u: calculated digest %s match expected digest.\n", | 267 | "PASSED: %s check %u: calculated digest %s match expected digest.\n", |
268 | test_name, check_num, calc_str); | 268 | test_name, check_num, calc_str); |
diff --git a/src/microhttpd/test_sha256.c b/src/microhttpd/test_sha256.c index 54cdf027..7ad5f399 100644 --- a/src/microhttpd/test_sha256.c +++ b/src/microhttpd/test_sha256.c | |||
@@ -289,16 +289,16 @@ bin2hex (const uint8_t *bin, | |||
289 | static int | 289 | static int |
290 | check_result (const char *test_name, | 290 | check_result (const char *test_name, |
291 | unsigned int check_num, | 291 | unsigned int check_num, |
292 | const uint8_t calcualted[SHA256_DIGEST_SIZE], | 292 | const uint8_t calculated[SHA256_DIGEST_SIZE], |
293 | const uint8_t expected[SHA256_DIGEST_SIZE]) | 293 | const uint8_t expected[SHA256_DIGEST_SIZE]) |
294 | { | 294 | { |
295 | int failed = memcmp (calcualted, expected, SHA256_DIGEST_SIZE); | 295 | int failed = memcmp (calculated, expected, SHA256_DIGEST_SIZE); |
296 | check_num++; /* Print 1-based numbers */ | 296 | check_num++; /* Print 1-based numbers */ |
297 | if (failed) | 297 | if (failed) |
298 | { | 298 | { |
299 | char calc_str[SHA256_DIGEST_STRING_SIZE]; | 299 | char calc_str[SHA256_DIGEST_STRING_SIZE]; |
300 | char expc_str[SHA256_DIGEST_STRING_SIZE]; | 300 | char expc_str[SHA256_DIGEST_STRING_SIZE]; |
301 | bin2hex (calcualted, SHA256_DIGEST_SIZE, calc_str); | 301 | bin2hex (calculated, SHA256_DIGEST_SIZE, calc_str); |
302 | bin2hex (expected, SHA256_DIGEST_SIZE, expc_str); | 302 | bin2hex (expected, SHA256_DIGEST_SIZE, expc_str); |
303 | fprintf (stderr, | 303 | fprintf (stderr, |
304 | "FAILED: %s check %u: calculated digest %s, expected digest %s.\n", | 304 | "FAILED: %s check %u: calculated digest %s, expected digest %s.\n", |
@@ -308,7 +308,7 @@ check_result (const char *test_name, | |||
308 | else if (verbose) | 308 | else if (verbose) |
309 | { | 309 | { |
310 | char calc_str[SHA256_DIGEST_STRING_SIZE]; | 310 | char calc_str[SHA256_DIGEST_STRING_SIZE]; |
311 | bin2hex (calcualted, SHA256_DIGEST_SIZE, calc_str); | 311 | bin2hex (calculated, SHA256_DIGEST_SIZE, calc_str); |
312 | printf ( | 312 | printf ( |
313 | "PASSED: %s check %u: calculated digest %s match expected digest.\n", | 313 | "PASSED: %s check %u: calculated digest %s match expected digest.\n", |
314 | test_name, check_num, calc_str); | 314 | test_name, check_num, calc_str); |
diff --git a/src/microhttpd/test_upgrade.c b/src/microhttpd/test_upgrade.c index 404c2854..7c76d221 100644 --- a/src/microhttpd/test_upgrade.c +++ b/src/microhttpd/test_upgrade.c | |||
@@ -279,7 +279,7 @@ wr_create_from_plain_sckt (MHD_socket plain_sk) | |||
279 | * Connect socket to specified address. | 279 | * Connect socket to specified address. |
280 | * @param s socket to use | 280 | * @param s socket to use |
281 | * @param addr address to connect | 281 | * @param addr address to connect |
282 | * @param length of sturcture pointed by @a addr | 282 | * @param length of structure pointed by @a addr |
283 | * @return zero on success, -1 otherwise. | 283 | * @return zero on success, -1 otherwise. |
284 | */ | 284 | */ |
285 | static int | 285 | static int |
@@ -840,7 +840,7 @@ upgrade_cb (void *cls, | |||
840 | * can be set with the #MHD_OPTION_NOTIFY_COMPLETED). | 840 | * can be set with the #MHD_OPTION_NOTIFY_COMPLETED). |
841 | * Initially, `*con_cls` will be NULL. | 841 | * Initially, `*con_cls` will be NULL. |
842 | * @return #MHD_YES if the connection was handled successfully, | 842 | * @return #MHD_YES if the connection was handled successfully, |
843 | * #MHD_NO if the socket must be closed due to a serios | 843 | * #MHD_NO if the socket must be closed due to a serious |
844 | * error while handling the request | 844 | * error while handling the request |
845 | */ | 845 | */ |
846 | static int | 846 | static int |
diff --git a/src/microhttpd/test_upgrade_large.c b/src/microhttpd/test_upgrade_large.c index a17293db..89eba4b7 100644 --- a/src/microhttpd/test_upgrade_large.c +++ b/src/microhttpd/test_upgrade_large.c | |||
@@ -289,7 +289,7 @@ wr_create_from_plain_sckt (MHD_socket plain_sk) | |||
289 | * Connect socket to specified address. | 289 | * Connect socket to specified address. |
290 | * @param s socket to use | 290 | * @param s socket to use |
291 | * @param addr address to connect | 291 | * @param addr address to connect |
292 | * @param length of sturcture pointed by @a addr | 292 | * @param length of structure pointed by @a addr |
293 | * @return zero on success, -1 otherwise. | 293 | * @return zero on success, -1 otherwise. |
294 | */ | 294 | */ |
295 | static int | 295 | static int |
@@ -864,7 +864,7 @@ upgrade_cb (void *cls, | |||
864 | * can be set with the #MHD_OPTION_NOTIFY_COMPLETED). | 864 | * can be set with the #MHD_OPTION_NOTIFY_COMPLETED). |
865 | * Initially, `*con_cls` will be NULL. | 865 | * Initially, `*con_cls` will be NULL. |
866 | * @return #MHD_YES if the connection was handled successfully, | 866 | * @return #MHD_YES if the connection was handled successfully, |
867 | * #MHD_NO if the socket must be closed due to a serios | 867 | * #MHD_NO if the socket must be closed due to a serious |
868 | * error while handling the request | 868 | * error while handling the request |
869 | */ | 869 | */ |
870 | static int | 870 | static int |
diff --git a/src/testcurl/https/test_empty_response.c b/src/testcurl/https/test_empty_response.c index 6f29fbe5..cfd75e8f 100644 --- a/src/testcurl/https/test_empty_response.c +++ b/src/testcurl/https/test_empty_response.c | |||
@@ -20,7 +20,7 @@ | |||
20 | 20 | ||
21 | /** | 21 | /** |
22 | * @file test_empty_response.c | 22 | * @file test_empty_response.c |
23 | * @brief Testcase for libmicrohttpd HTTPS GET operations with emtpy reply | 23 | * @brief Testcase for libmicrohttpd HTTPS GET operations with empty reply |
24 | * @author Christian Grothoff | 24 | * @author Christian Grothoff |
25 | */ | 25 | */ |
26 | #include "platform.h" | 26 | #include "platform.h" |
diff --git a/src/testcurl/https/test_https_get_parallel.c b/src/testcurl/https/test_https_get_parallel.c index e4040874..aa7f8d58 100644 --- a/src/testcurl/https/test_https_get_parallel.c +++ b/src/testcurl/https/test_https_get_parallel.c | |||
@@ -60,7 +60,7 @@ https_transfer_thread_adapter (void *args) | |||
60 | struct https_test_data *cargs = args; | 60 | struct https_test_data *cargs = args; |
61 | int ret; | 61 | int ret; |
62 | 62 | ||
63 | /* time spread incomming requests */ | 63 | /* time spread incoming requests */ |
64 | usleep ((useconds_t) 10.0 * ((double) rand ()) / ((double) RAND_MAX)); | 64 | usleep ((useconds_t) 10.0 * ((double) rand ()) / ((double) RAND_MAX)); |
65 | ret = test_https_transfer (NULL, cargs->port, | 65 | ret = test_https_transfer (NULL, cargs->port, |
66 | cargs->cipher_suite, cargs->proto_version); | 66 | cargs->cipher_suite, cargs->proto_version); |
@@ -98,7 +98,7 @@ test_single_client (void *cls, int port, const char *cipher_suite, | |||
98 | * | 98 | * |
99 | * @return: 0 upon all client requests returning '0', -1 otherwise. | 99 | * @return: 0 upon all client requests returning '0', -1 otherwise. |
100 | * | 100 | * |
101 | * TODO : make client_count a parameter - numver of curl client threads to spawn | 101 | * TODO : make client_count a parameter - number of curl client threads to spawn |
102 | */ | 102 | */ |
103 | static int | 103 | static int |
104 | test_parallel_clients (void *cls, int port, const char *cipher_suite, | 104 | test_parallel_clients (void *cls, int port, const char *cipher_suite, |
diff --git a/src/testcurl/https/test_https_get_parallel_threads.c b/src/testcurl/https/test_https_get_parallel_threads.c index 3fc0e189..470072cb 100644 --- a/src/testcurl/https/test_https_get_parallel_threads.c +++ b/src/testcurl/https/test_https_get_parallel_threads.c | |||
@@ -61,7 +61,7 @@ https_transfer_thread_adapter (void *args) | |||
61 | struct https_test_data *cargs = args; | 61 | struct https_test_data *cargs = args; |
62 | int ret; | 62 | int ret; |
63 | 63 | ||
64 | /* time spread incomming requests */ | 64 | /* time spread incoming requests */ |
65 | usleep ((useconds_t) 10.0 * ((double) rand ()) / ((double) RAND_MAX)); | 65 | usleep ((useconds_t) 10.0 * ((double) rand ()) / ((double) RAND_MAX)); |
66 | ret = test_https_transfer (cargs->cls, cargs->port, | 66 | ret = test_https_transfer (cargs->cls, cargs->port, |
67 | cargs->cipher_suite, cargs->proto_version); | 67 | cargs->cipher_suite, cargs->proto_version); |
@@ -76,7 +76,7 @@ https_transfer_thread_adapter (void *args) | |||
76 | * | 76 | * |
77 | * @return: 0 upon all client requests returning '0', -1 otherwise. | 77 | * @return: 0 upon all client requests returning '0', -1 otherwise. |
78 | * | 78 | * |
79 | * TODO : make client_count a parameter - numver of curl client threads to spawn | 79 | * TODO : make client_count a parameter - number of curl client threads to spawn |
80 | */ | 80 | */ |
81 | static int | 81 | static int |
82 | test_single_client (void *cls, int port, const char *cipher_suite, | 82 | test_single_client (void *cls, int port, const char *cipher_suite, |
@@ -99,7 +99,7 @@ test_single_client (void *cls, int port, const char *cipher_suite, | |||
99 | * | 99 | * |
100 | * @return: 0 upon all client requests returning '0', -1 otherwise. | 100 | * @return: 0 upon all client requests returning '0', -1 otherwise. |
101 | * | 101 | * |
102 | * TODO : make client_count a parameter - numver of curl client threads to spawn | 102 | * TODO : make client_count a parameter - number of curl client threads to spawn |
103 | */ | 103 | */ |
104 | static int | 104 | static int |
105 | test_parallel_clients (void *cls, int port, const char *cipher_suite, | 105 | test_parallel_clients (void *cls, int port, const char *cipher_suite, |
diff --git a/src/testcurl/https/tls_test_common.c b/src/testcurl/https/tls_test_common.c index f68f5979..c0c6a4f8 100644 --- a/src/testcurl/https/tls_test_common.c +++ b/src/testcurl/https/tls_test_common.c | |||
@@ -401,7 +401,7 @@ test_https_transfer (void *cls, | |||
401 | goto cleanup; | 401 | goto cleanup; |
402 | } | 402 | } |
403 | 403 | ||
404 | /* compare test file & daemon responce */ | 404 | /* compare test file & daemon response */ |
405 | if ( (len != strlen (test_data)) || | 405 | if ( (len != strlen (test_data)) || |
406 | (memcmp (cbc.buf, | 406 | (memcmp (cbc.buf, |
407 | test_data, | 407 | test_data, |