[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
CVS shishi/lib
From: |
shishi-commit |
Subject: |
CVS shishi/lib |
Date: |
Fri, 03 Dec 2004 04:23:41 +0100 |
Update of /home/cvs/shishi/lib
In directory dopio:/tmp/cvs-serv3125
Modified Files:
crypto-3des.c
Log Message:
Fix mem leak.
Don't hard code constant.
--- /home/cvs/shishi/lib/crypto-3des.c 2004/04/18 10:31:36 1.33
+++ /home/cvs/shishi/lib/crypto-3des.c 2004/12/03 03:23:41 1.34
@@ -247,16 +247,16 @@
return res;
res = des3_random_to_key (handle, nfold, nfoldlen, key);
- if (res != SHISHI_OK)
- return res;
+ if (res == SHISHI_OK)
+ /* key = DK (tmpKey, Constant) */
+ res = shishi_dk (handle, key, SHISHI_DK_CONSTANT,
+ strlen (SHISHI_DK_CONSTANT), outkey);
+
+ shishi_key_done (key);
- /* key = DK (tmpKey, KerberosConstant) */
- res = shishi_dk (handle, key, "kerberos", strlen ("kerberos"), outkey);
if (res != SHISHI_OK)
return res;
- shishi_key_done (key);
-
if (VERBOSECRYPTO (handle))
{
printf ("des3_string_to_key (string, salt)\n");
- CVS shishi/lib, shishi-commit, 2004/12/01
- CVS shishi/lib, shishi-commit, 2004/12/01
- CVS shishi/lib, shishi-commit, 2004/12/01
- CVS shishi/lib, shishi-commit, 2004/12/01
- CVS shishi/lib, shishi-commit, 2004/12/01
- CVS shishi/lib, shishi-commit, 2004/12/01
- CVS shishi/lib, shishi-commit, 2004/12/01
- CVS shishi/lib, shishi-commit, 2004/12/02
- CVS shishi/lib,
shishi-commit <=
- CVS shishi/lib, shishi-commit, 2004/12/02
- CVS shishi/lib, shishi-commit, 2004/12/02
- CVS shishi/lib, shishi-commit, 2004/12/18