diff options
| author | Mattias Andrée <m@maandree.se> | 2026-02-22 14:48:26 +0100 |
|---|---|---|
| committer | Mattias Andrée <m@maandree.se> | 2026-02-22 14:48:26 +0100 |
| commit | 94a12a8ffe9f82d9a54142b5b66a75dd1ec9fd8f (patch) | |
| tree | 8536857aa95126a38dc94b2d612fbcf25b359982 | |
| parent | Update e-mail (diff) | |
| download | secauth-master.tar.gz secauth-master.tar.bz2 secauth-master.tar.xz | |
Signed-off-by: Mattias Andrée <m@maandree.se>
| -rw-r--r-- | README | 8 | ||||
| -rw-r--r-- | config.mk | 4 | ||||
| -rw-r--r-- | libsecauth_format_spec.c | 2 |
3 files changed, 7 insertions, 7 deletions
@@ -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) @@ -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; } |
