aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMattias Andrée <m@maandree.se>2026-02-22 14:48:26 +0100
committerMattias Andrée <m@maandree.se>2026-02-22 14:48:26 +0100
commit94a12a8ffe9f82d9a54142b5b66a75dd1ec9fd8f (patch)
tree8536857aa95126a38dc94b2d612fbcf25b359982
parentUpdate e-mail (diff)
downloadsecauth-94a12a8ffe9f82d9a54142b5b66a75dd1ec9fd8f.tar.gz
secauth-94a12a8ffe9f82d9a54142b5b66a75dd1ec9fd8f.tar.bz2
secauth-94a12a8ffe9f82d9a54142b5b66a75dd1ec9fd8f.tar.xz
m fixesHEADmaster
Signed-off-by: Mattias Andrée <m@maandree.se>
-rw-r--r--README8
-rw-r--r--config.mk4
-rw-r--r--libsecauth_format_spec.c2
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;
}