diff mbox series

Mangoose : fix comment about used hash algo

Message ID 20221010101023.50939-1-ayoub.zaki@embetrix.com
State Accepted
Headers show
Series Mangoose : fix comment about used hash algo | expand

Commit Message

Ayoub Zaki Oct. 10, 2022, 10:10 a.m. UTC
Signed-off-by: Ayoub Zaki <ayoub.zaki@embetrix.com>
---
 mongoose/mongoose_interface.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Stefano Babic Oct. 11, 2022, 11:11 a.m. UTC | #1
Hi Ayoub,

Mangoose ==> Mongoose, fixing by applying it - thanks !

Best regards,
Stefano Babic

On 10.10.22 12:10, Ayoub Zaki wrote:
> Signed-off-by: Ayoub Zaki <ayoub.zaki@embetrix.com>
> ---
>   mongoose/mongoose_interface.c | 2 +-
>   1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/mongoose/mongoose_interface.c b/mongoose/mongoose_interface.c
> index 4efb51c..71c394f 100644
> --- a/mongoose/mongoose_interface.c
> +++ b/mongoose/mongoose_interface.c
> @@ -222,7 +222,7 @@ static int mg_check_digest_auth(struct mg_str method, struct mg_str uri,
>   	/*
>   	 * Read passwords file line by line. If should have htdigest format,
>   	 * i.e. each line should be a colon-separated sequence:
> -	 * USER_NAME:DOMAIN_NAME:HA1_HASH_OF_USER_DOMAIN_AND_PASSWORD
> +	 * USER_NAME:DOMAIN_NAME:MD5_HASH_OF_USER_DOMAIN_AND_PASSWORD
>   	 */
>   	while (fgets(buf, sizeof(buf), fp) != NULL) {
>   		if (sscanf(buf, "%[^:]:%[^:]:%s", f_user, f_domain, f_ha1) == 3 &&
diff mbox series

Patch

diff --git a/mongoose/mongoose_interface.c b/mongoose/mongoose_interface.c
index 4efb51c..71c394f 100644
--- a/mongoose/mongoose_interface.c
+++ b/mongoose/mongoose_interface.c
@@ -222,7 +222,7 @@  static int mg_check_digest_auth(struct mg_str method, struct mg_str uri,
 	/*
 	 * Read passwords file line by line. If should have htdigest format,
 	 * i.e. each line should be a colon-separated sequence:
-	 * USER_NAME:DOMAIN_NAME:HA1_HASH_OF_USER_DOMAIN_AND_PASSWORD
+	 * USER_NAME:DOMAIN_NAME:MD5_HASH_OF_USER_DOMAIN_AND_PASSWORD
 	 */
 	while (fgets(buf, sizeof(buf), fp) != NULL) {
 		if (sscanf(buf, "%[^:]:%[^:]:%s", f_user, f_domain, f_ha1) == 3 &&