From 94a12a8ffe9f82d9a54142b5b66a75dd1ec9fd8f Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Sun, 22 Feb 2026 14:48:26 +0100 Subject: m fixes MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- README | 8 ++++---- config.mk | 4 ++-- libsecauth_format_spec.c | 2 +- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/README b/README index 8f171ff..262e8fa 100644 --- a/README +++ b/README @@ -1,7 +1,7 @@ secauth is a protocol for authentication. It is not a secure alternative to encrypted -communcation, nor is it a password hashing algorithm, +communication, nor is it a password hashing algorithm, but is used between the two. If used correctly, secauth ensures the server owner, @@ -11,9 +11,9 @@ gives the user a lower bound for the security with which the server is treating the password. Additionally, if an attacker breaks the communication -encryption, he will not access to the user's plain-text -password and the information he gets access to is not -reusable. +encryption, he will not get access to the user's +plain-text password and the information he get access +to is not reusable. (The configurations in the demos are in no way recommended, they are just portable and weak (fast) diff --git a/config.mk b/config.mk index 03a64d3..f2160bb 100644 --- a/config.mk +++ b/config.mk @@ -1,8 +1,8 @@ PREFIX = /usr MANPREFIX = $(PREFIX)/share/man -CC = cc +CC = c99 CPPFLAGS = -D_DEFAULT_SOURCE -D_BSD_SOURCE -D_XOPEN_SOURCE=700 -CFLAGS = -std=c99 -Wall -O2 +CFLAGS = -Wall -O2 LDFLAGS = -s -lcrypt diff --git a/libsecauth_format_spec.c b/libsecauth_format_spec.c index 09fa600..81e497c 100644 --- a/libsecauth_format_spec.c +++ b/libsecauth_format_spec.c @@ -25,5 +25,5 @@ libsecauth_format_spec(struct libsecauth_spec *spec, char *buffer, size_t buffer client_rounds, server_rounds, spec->posthash ? "{$" : "", spec->posthash ? spec->posthash : "", spec->posthash ? "$}" : "", expected_with_dollars ? "{$" : "", spec->expected ? spec->expected : "" , expected_with_dollars ? "$}" : ""); - return i > 0 ? (size_t)(i + 1) : 0; + return i > 0 ? (size_t)i + 1u : 0; } -- cgit v1.2.3-70-g09d2