aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2022-06-26 15:24:24 +0200
committerChristian Grothoff <christian@grothoff.org>2022-06-26 15:24:24 +0200
commitd629ada1a20018c1cbc7f7e0badf0f8eca9b0fd7 (patch)
treed5e3998c8e915eb017adf8a5b3dd1e1253ed4189 /src
parent8e4eba0e70690673643c0945bf6433f766a2bf65 (diff)
downloadlibmicrohttpd-d629ada1a20018c1cbc7f7e0badf0f8eca9b0fd7.tar.gz
libmicrohttpd-d629ada1a20018c1cbc7f7e0badf0f8eca9b0fd7.zip
-fix typos
Diffstat (limited to 'src')
-rw-r--r--src/include/microhttpd_ws.h2
-rw-r--r--src/microhttpd/digestauth.c12
-rw-r--r--src/microhttpd_ws/test_websocket.c2
3 files changed, 8 insertions, 8 deletions
diff --git a/src/include/microhttpd_ws.h b/src/include/microhttpd_ws.h
index 27da0553..a1322388 100644
--- a/src/include/microhttpd_ws.h
+++ b/src/include/microhttpd_ws.h
@@ -23,7 +23,7 @@
23 */ 23 */
24/* 24/*
25 * *** WARNING! *** 25 * *** WARNING! ***
26 * * The websockets interface is currenly in "experimental" stage. * 26 * * The websockets interface is currently in "experimental" stage. *
27 * * It does not work on architectures with endianness different from * 27 * * It does not work on architectures with endianness different from *
28 * * big endian and little endian and may have some portability issues.* 28 * * big endian and little endian and may have some portability issues.*
29 * * API and ABI are not yet stable. * 29 * * API and ABI are not yet stable. *
diff --git a/src/microhttpd/digestauth.c b/src/microhttpd/digestauth.c
index 1e25fa4a..35c2deb5 100644
--- a/src/microhttpd/digestauth.c
+++ b/src/microhttpd/digestauth.c
@@ -651,7 +651,7 @@ get_rq_dauth_params (struct MHD_Connection *connection)
651/** 651/**
652 * Extract timestamp from the given nonce. 652 * Extract timestamp from the given nonce.
653 * @param nonce the nonce to check 653 * @param nonce the nonce to check
654 * @param noncelen the lenght of the nonce, zero for autodetect 654 * @param noncelen the length of the nonce, zero for autodetect
655 * @param[out] ptimestamp the pointer to store extracted timestamp 655 * @param[out] ptimestamp the pointer to store extracted timestamp
656 * @return true if timestamp was extracted, 656 * @return true if timestamp was extracted,
657 * false if nonce does not have valid timestamp. 657 * false if nonce does not have valid timestamp.
@@ -709,7 +709,7 @@ fast_simple_hash (const uint8_t *data,
709 * 709 *
710 * @param arr_size the size of nonce_nc array 710 * @param arr_size the size of nonce_nc array
711 * @param nonce the pointer that referenced a zero-terminated array of nonce 711 * @param nonce the pointer that referenced a zero-terminated array of nonce
712 * @param noncelen the lenth of @a nonce, in characters 712 * @param noncelen the length of @a nonce, in characters
713 * @return #MHD_YES if successful, #MHD_NO if invalid (or we have no NC array) 713 * @return #MHD_YES if successful, #MHD_NO if invalid (or we have no NC array)
714 */ 714 */
715static size_t 715static size_t
@@ -1065,7 +1065,7 @@ is_slot_available (const struct MHD_NonceNc *const nn,
1065 * @param connection the MHD connection structure 1065 * @param connection the MHD connection structure
1066 * @param timestamp the current timestamp 1066 * @param timestamp the current timestamp
1067 * @param realm the string of characters that describes the realm of auth 1067 * @param realm the string of characters that describes the realm of auth
1068 * @param realm_len the lenght of the @a realm 1068 * @param realm_len the length of the @a realm
1069 * @param da the digest algorithm to use 1069 * @param da the digest algorithm to use
1070 * @param[out] nonce the pointer to a character array for the nonce to put in, 1070 * @param[out] nonce the pointer to a character array for the nonce to put in,
1071 * must provide NONCE_STD_LEN(da->digest_size)+1 bytes 1071 * must provide NONCE_STD_LEN(da->digest_size)+1 bytes
@@ -1377,7 +1377,7 @@ get_buffer_for_size (char tmp1[_MHD_STATIC_UNQ_BUFFER_SIZE],
1377enum _MHD_GetUnqResult 1377enum _MHD_GetUnqResult
1378{ 1378{
1379 _MHD_UNQ_OK = 0, /**< Got unquoted string */ 1379 _MHD_UNQ_OK = 0, /**< Got unquoted string */
1380 _MHD_UNQ_TOO_LARGE = -7, /**< The string is too large to unqoute */ 1380 _MHD_UNQ_TOO_LARGE = -7, /**< The string is too large to unquote */
1381 _MHD_UNQ_OUT_OF_MEM = 3 /**< Out of memory error */ 1381 _MHD_UNQ_OUT_OF_MEM = 3 /**< Out of memory error */
1382}; 1382};
1383 1383
@@ -1536,8 +1536,8 @@ digest_auth_check_all_inner (struct MHD_Connection *connection,
1536 uint64_t nci; 1536 uint64_t nci;
1537 char *qmark; 1537 char *qmark;
1538 const struct MHD_RqDAuth *params; 1538 const struct MHD_RqDAuth *params;
1539 char tmp1[_MHD_STATIC_UNQ_BUFFER_SIZE]; /**< Temporal buffer in stack for unqouting */ 1539 char tmp1[_MHD_STATIC_UNQ_BUFFER_SIZE]; /**< Temporal buffer in stack for unquoting */
1540 char **const ptmp2 = pbuf; /**< Temporal malloc'ed buffer for unqouting */ 1540 char **const ptmp2 = pbuf; /**< Temporal malloc'ed buffer for unquoting */
1541 size_t tmp2_size; /**< The size of @a tmp2 buffer */ 1541 size_t tmp2_size; /**< The size of @a tmp2 buffer */
1542 struct _MHD_str_w_len unquoted; 1542 struct _MHD_str_w_len unquoted;
1543 struct _MHD_mstr_w_len unq_copy; 1543 struct _MHD_mstr_w_len unq_copy;
diff --git a/src/microhttpd_ws/test_websocket.c b/src/microhttpd_ws/test_websocket.c
index 00fd8e03..b824b9ce 100644
--- a/src/microhttpd_ws/test_websocket.c
+++ b/src/microhttpd_ws/test_websocket.c
@@ -9838,7 +9838,7 @@ test_check_upgrade_header ()
9838 (unsigned int) __LINE__); 9838 (unsigned int) __LINE__);
9839 ++failed; 9839 ++failed;
9840 } 9840 }
9841 /* Edge test (success): All allowed token characters plus /, then websocket keyowrd */ 9841 /* Edge test (success): All allowed token characters plus /, then websocket keyword */
9842 ret = MHD_websocket_check_upgrade_header ( 9842 ret = MHD_websocket_check_upgrade_header (
9843 "!#$%&'*+-.^_`|~0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz/,websocket"); 9843 "!#$%&'*+-.^_`|~0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz/,websocket");
9844 if (MHD_WEBSOCKET_STATUS_OK != ret) 9844 if (MHD_WEBSOCKET_STATUS_OK != ret)