[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH] srptool, fix problem where passwords never match
From: |
Matthias Koenig |
Subject: |
[PATCH] srptool, fix problem where passwords never match |
Date: |
Mon, 30 Jun 2008 10:21:43 +0200 |
User-agent: |
Gnus/5.110006 (No Gnus v0.6) Emacs/22.2 (gnu/linux) |
Hi,
this fixes a problem in srptool, where the passwords never match
(--verify check) on some architectures (I think I have observed
this only on i386). It is for 1.6.1, but still applies to 2.4.0.
Matthias
Index: gnutls-1.6.1/src/crypt.c
===================================================================
--- gnutls-1.6.1.orig/src/crypt.c
+++ gnutls-1.6.1/src/crypt.c
@@ -220,6 +220,7 @@ _verify_passwd_int (const char *username
/* encode the verifier into _salt */
salt_size = sizeof (_salt);
+ memset(_salt, '\0', salt_size);
if (gnutls_srp_base64_encode (&new_verifier, _salt, &salt_size) < 0)
{
fprintf (stderr, "Encoding error\n");
- [PATCH] srptool, fix problem where passwords never match,
Matthias Koenig <=