summaryrefslogtreecommitdiffstats
path: root/plugin/eurephia.c
diff options
context:
space:
mode:
authorDavid Sommerseth <dazo@users.sourceforge.net>2008-11-01 20:11:16 +0100
committerDavid Sommerseth <dazo@users.sourceforge.net>2008-11-01 20:11:16 +0100
commit88ed82644a4b2cbe122dea3fbabb7b2fdf9a2748 (patch)
treec6186fc8016eb4774fdbd0f79d39ff58012ef660 /plugin/eurephia.c
parentfd1a8fb7c37a305af3929f872cbd208f4f6cfa00 (diff)
downloadeurephia-88ed82644a4b2cbe122dea3fbabb7b2fdf9a2748.tar.gz
eurephia-88ed82644a4b2cbe122dea3fbabb7b2fdf9a2748.tar.xz
eurephia-88ed82644a4b2cbe122dea3fbabb7b2fdf9a2748.zip
BUGFIX: Fixed wrong attempt count reset during eurephia_tlsverify(...)v0.9.2_beta
The attempt counter for certificates was reset too early. It was reset on successful TLS verification. But the only place these counters should be reset is after successful authentication in eurephia_userauth(...)
Diffstat (limited to 'plugin/eurephia.c')
-rw-r--r--plugin/eurephia.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/plugin/eurephia.c b/plugin/eurephia.c
index 0e8e39c..78b8d7a 100644
--- a/plugin/eurephia.c
+++ b/plugin/eurephia.c
@@ -287,9 +287,6 @@ int eurephia_tlsverify(eurephiaCTX *ctx, const char **env, const char *depth)
eurephia_log(ctx, LOG_INFO, (depth == 0 ? 0 : 1),
"Found certid %i for user: %s/%s/%s",
result, ci->org, ci->common_name, ci->email);
-
- // Reset attempt counter for certificate if it is okey
- eDBregister_attempt(ctx, attempt_CERTIFICATE, ATTEMPT_RESET, tls_digest);
} else {
eurephia_log(ctx, LOG_WARNING, 0,
"Unknown certificate for: %s/%s/%s (depth %s, digest: %s)",