commit 592c70648babf6484925f810e147deca3e50bf9e
parent 026525d584cc7c790965b787e4ebdcce8e3d4f80
Author: Christian Grothoff <grothoff@gnunet.org>
Date: Wed, 8 Jul 2026 12:17:59 +0200
-typos
Diffstat:
8 files changed, 10 insertions(+), 11 deletions(-)
diff --git a/src/microhttpd/daemon.c b/src/microhttpd/daemon.c
@@ -1145,7 +1145,7 @@ internal_get_fdset2 (struct MHD_Daemon *daemon,
_ ("Maximum socket in select set: %d\n"),
*max_fd);
#endif
-#endif /* HTTPS_SUPPORT && UPGRADE_SUPPORT */
+#endif
return result;
}
diff --git a/src/microhttpd/md5.h b/src/microhttpd/md5.h
@@ -49,7 +49,7 @@
#define MD5_HASH_SIZE_WORDS 4
/**
- * Size of MD5 resulting digest in bytes.
+ * Size of MD5 resulting digest in words.
* This is the final digest size, not intermediate hash.
*/
#define MD5_DIGEST_SIZE_WORDS MD5_HASH_SIZE_WORDS
diff --git a/src/microhttpd/mhd_md5_wrap.h b/src/microhttpd/mhd_md5_wrap.h
@@ -92,7 +92,7 @@
/* Sanity checks */
#if ! defined(MHD_MD5_HAS_FINISH_RESET) && ! defined(MHD_MD5_HAS_FINISH)
-#error Required at least one of MHD_MD5_finish_reset(), MHD_MD5_finish_reset()
+#error Required at least one of MHD_MD5_finish_reset(), MHD_MD5_finish()
#endif /* ! MHD_MD5_HAS_FINISH_RESET && ! MHD_MD5_HAS_FINISH */
#endif /* MHD_MD5_WRAP_H */
diff --git a/src/microhttpd/mhd_sha256_wrap.h b/src/microhttpd/mhd_sha256_wrap.h
@@ -28,7 +28,6 @@
#define MHD_SHA256_WRAP_H 1
#include "mhd_options.h"
-#include "mhd_options.h"
#ifndef MHD_SHA256_SUPPORT
#error This file must be used only when SHA-256 is enabled
#endif
@@ -48,7 +47,7 @@
#ifndef SHA256_DIGEST_STRING_SIZE
/**
- * Size of MD5 digest string in chars including termination NUL.
+ * Size of SHA256 digest string in chars including termination NUL.
*/
#define SHA256_DIGEST_STRING_SIZE ((SHA256_DIGEST_SIZE) * 2 + 1)
#endif /* ! SHA256_DIGEST_STRING_SIZE */
@@ -78,7 +77,7 @@
*/
#define MHD_SHA256_reset(ctx) MHD_SHA256_init(ctx)
/**
- * Finalise MD5 calculation, return digest, reset hash calculation.
+ * Finalise SHA256 calculation, return digest, reset hash calculation.
*/
#define MHD_SHA256_finish_reset(ctx,digest) MHD_SHA256_finish(ctx,digest), \
MHD_SHA256_reset(ctx)
@@ -94,7 +93,7 @@
/* Sanity checks */
#if ! defined(MHD_SHA256_HAS_FINISH_RESET) && ! defined(MHD_SHA256_HAS_FINISH)
-#error Required MHD_SHA256_finish_reset() or MHD_SHA256_finish_reset()
+#error Required MHD_SHA256_finish_reset() or MHD_SHA256_finish()
#endif /* ! MHD_SHA256_HAS_FINISH_RESET && ! MHD_SHA256_HAS_FINISH */
#endif /* MHD_SHA256_WRAP_H */
diff --git a/src/microhttpd/sha1.h b/src/microhttpd/sha1.h
@@ -71,7 +71,7 @@
struct sha1_ctx
{
uint32_t H[_SHA1_DIGEST_LENGTH]; /**< Intermediate hash value / digest at end of calculation */
- uint8_t buffer[SHA1_BLOCK_SIZE]; /**< SHA256 input data buffer */
+ uint8_t buffer[SHA1_BLOCK_SIZE]; /**< SHA1 input data buffer */
uint64_t count; /**< number of bytes, mod 2^64 */
};
diff --git a/src/microhttpd/sha256.c b/src/microhttpd/sha256.c
@@ -466,7 +466,7 @@ MHD_SHA256_update (struct Sha256Ctx *ctx,
/**
* Finalise SHA256 calculation, return digest.
*
- * @param ctx_ must be a `struct Sha256Ctx *`
+ * @param ctx must be a `struct Sha256Ctx *`
* @param[out] digest set to the hash, must be #SHA256_DIGEST_SIZE bytes
*/
void
diff --git a/src/microhttpd/sha256_ext.c b/src/microhttpd/sha256_ext.c
@@ -18,7 +18,7 @@
*/
/**
- * @file microhttpd/sha256_ext.h
+ * @file microhttpd/sha256_ext.c
* @brief Wrapper for SHA-256 calculation performed by TLS library
* @author Karlson2k (Evgeny Grin)
*/
diff --git a/src/microhttpd/sha512_256.h b/src/microhttpd/sha512_256.h
@@ -50,7 +50,7 @@
#define SHA512_256_HASH_SIZE_WORDS 8
/**
- * Size of SHA-512/256 resulting digest in bytes.
+ * Size of SHA-512/256 resulting digest in words.
* This is the final digest size, not intermediate hash.
*/
#define SHA512_256_DIGEST_SIZE_WORDS (SHA512_256_HASH_SIZE_WORDS / 2)