LIBGCRYPT-1-2-BRANCH libgcrypt/cipher (ChangeLog ac.c serpent.c)
cvs user mo
cvs at cvs.gnupg.org
Sat Apr 16 19:16:14 CEST 2005
Date: Saturday, April 16, 2005 @ 19:32:43
Author: mo
Path: /cvs/libgcrypt/libgcrypt/cipher
Tag: LIBGCRYPT-1-2-BRANCH
Modified: ChangeLog ac.c serpent.c
2005-04-16 Moritz Schulte <moritz at g10code.com>
* ac.c (_gcry_ac_init): New function.
Replace strdup calls with calls to gcry_strdup.
-----------+
ChangeLog | 5 +++++
ac.c | 12 +++++++++---
serpent.c | 2 +-
3 files changed, 15 insertions(+), 4 deletions(-)
Index: libgcrypt/cipher/ChangeLog
diff -u libgcrypt/cipher/ChangeLog:1.211.2.11 libgcrypt/cipher/ChangeLog:1.211.2.12
--- libgcrypt/cipher/ChangeLog:1.211.2.11 Wed Mar 23 09:52:21 2005
+++ libgcrypt/cipher/ChangeLog Sat Apr 16 19:32:43 2005
@@ -1,3 +1,8 @@
+2005-04-16 Moritz Schulte <moritz at g10code.com>
+
+ * ac.c (_gcry_ac_init): New function.
+ Replace strdup calls with calls to gcry_strdup.
+
2005-03-23 Werner Koch <wk at g10code.com>
* rndw32.c (_gcry_rndw32_gather_random_fast): While adding data
Index: libgcrypt/cipher/ac.c
diff -u libgcrypt/cipher/ac.c:1.13.2.1 libgcrypt/cipher/ac.c:1.13.2.2
--- libgcrypt/cipher/ac.c:1.13.2.1 Mon Aug 9 12:39:51 2004
+++ libgcrypt/cipher/ac.c Sat Apr 16 19:32:43 2005
@@ -151,7 +151,7 @@
data_new->data[i].mpi = NULL;
/* Name. */
- data_new->data[i].name = strdup (data->data[i].name);
+ data_new->data[i].name = gcry_strdup (data->data[i].name);
if (! data_new->data[i].name)
err = gpg_err_code_from_errno (errno);
@@ -531,7 +531,7 @@
{
/* Create copies. */
- name_add = strdup (name);
+ name_add = gcry_strdup (name);
if (! name_add)
err = GPG_ERR_ENOMEM;
if (! err)
@@ -666,7 +666,7 @@
{
/* Return copies to the user. */
if (name)
- name_return = strdup (data->data[idx].name);
+ name_return = gcry_strdup (data->data[idx].name);
if (mpi)
mpi_return = gcry_mpi_copy (data->data[idx].mpi);
@@ -1388,3 +1388,9 @@
return gcry_error (err);
}
+
+gcry_err_code_t
+_gcry_ac_init (void)
+{
+ return 0;
+}
Index: libgcrypt/cipher/serpent.c
diff -u libgcrypt/cipher/serpent.c:1.4.2.3 libgcrypt/cipher/serpent.c:1.4.2.4
--- libgcrypt/cipher/serpent.c:1.4.2.3 Wed Jan 5 17:29:38 2005
+++ libgcrypt/cipher/serpent.c Sat Apr 16 19:32:43 2005
@@ -1,5 +1,5 @@
/* serpent.c - Implementation of the Serpent encryption algorithm.
- * Copyright (C) 2003 Free Software Foundation, Inc.
+ * Copyright (C) 2003, 2004, 2005 Free Software Foundation, Inc.
*
* This file is part of Libgcrypt.
*
More information about the Gnupg-commits
mailing list