gsasl-commit
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

CVS gsasl/lib/digest-md5


From: gsasl-commit
Subject: CVS gsasl/lib/digest-md5
Date: Sun, 19 Dec 2004 19:03:28 +0100

Update of /home/cvs/gsasl/lib/digest-md5
In directory dopio:/tmp/cvs-serv2491

Modified Files:
        digesthmac.c 
Log Message:
Zero terminate.


--- /home/cvs/gsasl/lib/digest-md5/digesthmac.c 2004/12/19 17:42:03     1.2
+++ /home/cvs/gsasl/lib/digest-md5/digesthmac.c 2004/12/19 18:03:28     1.3
@@ -64,7 +64,7 @@
   "Digest H(A1) to server-to-client sealing key magic constant"
 #define DERIVE_SERVER_CONFIDENTIALITY_KEY_STRING_LEN 59
 
-/* Compute in 32 bytes large array OUTPUT the DIGEST-MD5 response
+/* Compute in 33 bytes large array OUTPUT the DIGEST-MD5 response
    value.  SECRET holds the 16 bytes MD5 hash SS, i.e.,
    H(username:realm:passwd).  NONCE is a zero terminated string with
    the server nonce.  NC is the nonce-count, typically 1 for initial
@@ -310,6 +310,7 @@
       output[2 * i + 1] = HEXCHAR (hash[i]);
       output[2 * i + 0] = HEXCHAR (hash[i] >> 4);
     }
+  output[32] = '\0';
 
   return 0;
 }





reply via email to

[Prev in Thread] Current Thread [Next in Thread]