aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWerner Koch <[email protected]>2001-01-30 14:18:16 +0000
committerWerner Koch <[email protected]>2001-01-30 14:18:16 +0000
commitb88be99c6d0fddeceed0e46a7c8387768fac3ae9 (patch)
tree880eeda389022140ab4f5c240b5343b62cf53754
parentUgly kludge to avoid blocking in W32's _gpgme_io_write (diff)
downloadgpgme-b88be99c6d0fddeceed0e46a7c8387768fac3ae9.tar.gz
gpgme-b88be99c6d0fddeceed0e46a7c8387768fac3ae9.zip
Maybe the signers code does work now
Diffstat (limited to '')
-rw-r--r--gpgme/ChangeLog5
-rw-r--r--gpgme/gpgme-memory.h36
-rw-r--r--gpgme/gpgme-types.h38
-rw-r--r--gpgme/signers.c2
4 files changed, 7 insertions, 74 deletions
diff --git a/gpgme/ChangeLog b/gpgme/ChangeLog
index 63e16155..03c72d3f 100644
--- a/gpgme/ChangeLog
+++ b/gpgme/ChangeLog
@@ -1,5 +1,10 @@
2001-01-30 Werner Koch <[email protected]>
+ * signers.c (gpgme_signers_add): Ooops, one should test code and
+ not just write it; the newarr was not assigned. Thanks to Jos�
+ for pointing this out. Hmmm, still not tested, why shoudl a coder
+ test his fix :-)
+
* w32-io.c: Does now use reader threads, so that we can use
WaitForMultipleObjects.
* sema.h, posix-sema.c, w32-sema.c: Support for Critcial sections.
diff --git a/gpgme/gpgme-memory.h b/gpgme/gpgme-memory.h
deleted file mode 100644
index 76ff3880..00000000
--- a/gpgme/gpgme-memory.h
+++ /dev/null
@@ -1,36 +0,0 @@
-/* gpgme-memory.h
- * Copyright (C) 2000 Werner Koch (dd9jn)
- *
- * This file is part of GPGME.
- *
- * GPGME is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; either version 2 of the License, or
- * (at your option) any later version.
- *
- * GPGME is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
- */
-
-#ifndef GPGME_MEMORY_H
-#define GPGME_MEMORY_H
-
-void *xmalloc ( size_t n );
-void *xtrymalloc (size_t n );
-void *xcalloc ( size_t n, size_t m );
-void *xtrycalloc (size_t n, size_t m );
-void *xrealloc (void *p, size_t n);
-void *xtryrealloc (void *p, size_t n);
-void xfree ( void *a );
-
-#endif /* GPGME_MEMORY_H */
-
-
-
-
diff --git a/gpgme/gpgme-types.h b/gpgme/gpgme-types.h
deleted file mode 100644
index e20e758c..00000000
--- a/gpgme/gpgme-types.h
+++ /dev/null
@@ -1,38 +0,0 @@
-/* gpgme-types.h - GnuPG Made Easy
- * Copyright (C) 2000 Werner Koch (dd9jn)
- *
- * This file is part of GPGME.
- *
- * GPGME is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; either version 2 of the License, or
- * (at your option) any later version.
- *
- * GPGME is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
- */
-
-#ifndef GPGME_TYPES_H
-#define GPGME_TYPES_H
-
-#include "gpgme.h"
-
-struct gpgme_context_s {
- int initialized;
-};
-
-
-
-
-#endif /* GPGME_TYPES_H */
-
-
-
-
-
diff --git a/gpgme/signers.c b/gpgme/signers.c
index 70c3a004..6432b8f0 100644
--- a/gpgme/signers.c
+++ b/gpgme/signers.c
@@ -74,6 +74,8 @@ gpgme_signers_add (GpgmeCtx c, const GpgmeKey key)
for (j=0; j < c->signers_size; j++ )
newarr[j] = c->signers[j];
c->signers_size = n;
+ xfree (c->signers);
+ c->signers = newarr;
}
gpgme_key_ref (key);
c->signers[i] = key;