* gpgsm/t-import.c (check_result): gpgsm does now return info in
the result->imports; adjust for that. * gpgsm/Makefile.am (TESTS_ENVIRONMENT): Reset the GPG_AGENT_INFO. * gpg/t-keylist-sig.c (main): s/class/sig_class/. * gpg/t-signers.c (check_result): Ditto. * gpg/t-sign.c (check_result): Ditto. * gpg/t-encrypt-sign.c (check_result): Ditto. * gpgsm/t-sign.c (check_result): Ditto.
This commit is contained in:
parent
afabac4c9d
commit
91d3e5aa57
4
NEWS
4
NEWS
@ -54,11 +54,15 @@ Noteworthy changes in version 0.4.5 (unreleased)
|
||||
needed. Still, it is there if necessary. If in doubt, contact us
|
||||
and we will give our advise for your specific situation.
|
||||
|
||||
* A new key listing mode for validation of the key has been added.
|
||||
See the manual.
|
||||
|
||||
* Interface changes relative to the 0.4.4 release:
|
||||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
gpgme_data_seek_cb_t CHANGED: off_t is now a largefile type.
|
||||
gpgme_data_seek CHANGED: off_t is now a largefile type.
|
||||
gpgme_data_new_from_filepart CHANGED: off_t is now a largefile type.
|
||||
GPGME_KEYLIST_MODE_VALIDATE NEW.
|
||||
|
||||
|
||||
Noteworthy changes in version 0.4.4 (2004-01-12)
|
||||
|
@ -1,3 +1,19 @@
|
||||
2004-02-17 Werner Koch <wk@gnupg.org>
|
||||
|
||||
* gpgsm/t-import.c (check_result): gpgsm does now return info in
|
||||
the result->imports; adjust for that.
|
||||
|
||||
* gpgsm/Makefile.am (TESTS_ENVIRONMENT): Reset the GPG_AGENT_INFO.
|
||||
|
||||
Include config.h at the top of each C source. This is required
|
||||
due to LFS support.
|
||||
|
||||
* gpg/t-keylist-sig.c (main): s/class/sig_class/.
|
||||
* gpg/t-signers.c (check_result): Ditto.
|
||||
* gpg/t-sign.c (check_result): Ditto.
|
||||
* gpg/t-encrypt-sign.c (check_result): Ditto.
|
||||
* gpgsm/t-sign.c (check_result): Ditto.
|
||||
|
||||
2004-01-12 Werner Koch <wk@gnupg.org>
|
||||
|
||||
* gpg/t-keylist-sig.c (main): Temporary disabled one test due top
|
||||
|
@ -18,6 +18,12 @@
|
||||
along with GPGME; if not, write to the Free Software Foundation,
|
||||
Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
|
||||
|
||||
/* We need to include config.h so that we know whether we are building
|
||||
with large file system (LFS) support. */
|
||||
#ifdef HAVE_CONFIG_H
|
||||
#include <config.h>
|
||||
#endif
|
||||
|
||||
#include <stdlib.h>
|
||||
#include <stdio.h>
|
||||
#include <string.h>
|
||||
|
@ -18,6 +18,12 @@
|
||||
along with GPGME; if not, write to the Free Software Foundation,
|
||||
Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
|
||||
|
||||
/* We need to include config.h so that we know whether we are building
|
||||
with large file system (LFS) support. */
|
||||
#ifdef HAVE_CONFIG_H
|
||||
#include <config.h>
|
||||
#endif
|
||||
|
||||
#include <stdlib.h>
|
||||
#include <stdio.h>
|
||||
#include <string.h>
|
||||
|
@ -18,6 +18,12 @@
|
||||
along with GPGME; if not, write to the Free Software Foundation,
|
||||
Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
|
||||
|
||||
/* We need to include config.h so that we know whether we are building
|
||||
with large file system (LFS) support. */
|
||||
#ifdef HAVE_CONFIG_H
|
||||
#include <config.h>
|
||||
#endif
|
||||
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
|
@ -18,6 +18,12 @@
|
||||
along with GPGME; if not, write to the Free Software Foundation,
|
||||
Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
|
||||
|
||||
/* We need to include config.h so that we know whether we are building
|
||||
with large file system (LFS) support. */
|
||||
#ifdef HAVE_CONFIG_H
|
||||
#include <config.h>
|
||||
#endif
|
||||
|
||||
#include <stdlib.h>
|
||||
#include <stdio.h>
|
||||
#include <string.h>
|
||||
@ -59,10 +65,10 @@ check_result (gpgme_sign_result_t result, gpgme_sig_mode_t type)
|
||||
result->signatures->hash_algo);
|
||||
exit (1);
|
||||
}
|
||||
if (result->signatures->class != 0)
|
||||
if (result->signatures->sig_class != 0)
|
||||
{
|
||||
fprintf (stderr, "Wrong signature class reported: %u\n",
|
||||
result->signatures->class);
|
||||
result->signatures->sig_class);
|
||||
exit (1);
|
||||
}
|
||||
if (strcmp ("A0FF4590BB6122EDEF6E3C542D727CC768697734",
|
||||
|
@ -18,6 +18,12 @@
|
||||
along with GPGME; if not, write to the Free Software Foundation,
|
||||
Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
|
||||
|
||||
/* We need to include config.h so that we know whether we are building
|
||||
with large file system (LFS) support. */
|
||||
#ifdef HAVE_CONFIG_H
|
||||
#include <config.h>
|
||||
#endif
|
||||
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
|
@ -18,6 +18,12 @@
|
||||
along with GPGME; if not, write to the Free Software Foundation,
|
||||
Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
|
||||
|
||||
/* We need to include config.h so that we know whether we are building
|
||||
with large file system (LFS) support. */
|
||||
#ifdef HAVE_CONFIG_H
|
||||
#include <config.h>
|
||||
#endif
|
||||
|
||||
#include <stdlib.h>
|
||||
#include <stdio.h>
|
||||
#include <string.h>
|
||||
|
@ -18,6 +18,12 @@
|
||||
along with GPGME; if not, write to the Free Software Foundation,
|
||||
Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
|
||||
|
||||
/* We need to include config.h so that we know whether we are building
|
||||
with large file system (LFS) support. */
|
||||
#ifdef HAVE_CONFIG_H
|
||||
#include <config.h>
|
||||
#endif
|
||||
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
|
@ -18,6 +18,12 @@
|
||||
along with GPGME; if not, write to the Free Software Foundation,
|
||||
Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
|
||||
|
||||
/* We need to include config.h so that we know whether we are building
|
||||
with large file system (LFS) support. */
|
||||
#ifdef HAVE_CONFIG_H
|
||||
#include <config.h>
|
||||
#endif
|
||||
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
|
@ -18,6 +18,12 @@
|
||||
along with GPGME; if not, write to the Free Software Foundation,
|
||||
Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
|
||||
|
||||
/* We need to include config.h so that we know whether we are building
|
||||
with large file system (LFS) support. */
|
||||
#ifdef HAVE_CONFIG_H
|
||||
#include <config.h>
|
||||
#endif
|
||||
|
||||
#include <stdlib.h>
|
||||
#include <stdio.h>
|
||||
#include <string.h>
|
||||
|
@ -18,6 +18,12 @@
|
||||
along with GPGME; if not, write to the Free Software Foundation,
|
||||
Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
|
||||
|
||||
/* We need to include config.h so that we know whether we are building
|
||||
with large file system (LFS) support. */
|
||||
#ifdef HAVE_CONFIG_H
|
||||
#include <config.h>
|
||||
#endif
|
||||
|
||||
#include <stdlib.h>
|
||||
#include <stdio.h>
|
||||
#include <string.h>
|
||||
|
@ -18,6 +18,12 @@
|
||||
along with GPGME; if not, write to the Free Software Foundation,
|
||||
Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
|
||||
|
||||
/* We need to include config.h so that we know whether we are building
|
||||
with large file system (LFS) support. */
|
||||
#ifdef HAVE_CONFIG_H
|
||||
#include <config.h>
|
||||
#endif
|
||||
|
||||
#include <stdlib.h>
|
||||
#include <stdio.h>
|
||||
#include <string.h>
|
||||
@ -43,7 +49,7 @@ struct
|
||||
char *name;
|
||||
char *comment;
|
||||
char *email;
|
||||
unsigned int class;
|
||||
unsigned int sig_class;
|
||||
int exportable;
|
||||
} sig;
|
||||
} uid[3];
|
||||
@ -405,10 +411,10 @@ main (int argc, char **argv)
|
||||
key->uids->signatures->email);
|
||||
exit (1);
|
||||
}
|
||||
if (keys[i].uid[0].sig.class != key->uids->signatures->class)
|
||||
if (keys[i].uid[0].sig.sig_class != key->uids->signatures->sig_class)
|
||||
{
|
||||
fprintf (stderr, "Unexpected class in first user ID sig: %i\n",
|
||||
key->uids->signatures->class);
|
||||
key->uids->signatures->sig_class);
|
||||
exit (1);
|
||||
}
|
||||
if (keys[i].uid[0].sig.exportable != key->uids->signatures->exportable)
|
||||
@ -497,10 +503,10 @@ main (int argc, char **argv)
|
||||
key->uids->next->signatures->email);
|
||||
exit (1);
|
||||
}
|
||||
if (keys[i].uid[1].sig.class != key->uids->next->signatures->class)
|
||||
if (keys[i].uid[1].sig.sig_class != key->uids->next->signatures->sig_class)
|
||||
{
|
||||
fprintf (stderr, "Unexpected class in second user ID sig: %i\n",
|
||||
key->uids->next->signatures->class);
|
||||
key->uids->next->signatures->sig_class);
|
||||
exit (1);
|
||||
}
|
||||
if (keys[i].uid[1].sig.exportable != key->uids->next->signatures->exportable)
|
||||
@ -586,10 +592,10 @@ main (int argc, char **argv)
|
||||
key->uids->next->next->signatures->email);
|
||||
exit (1);
|
||||
}
|
||||
if (keys[i].uid[2].sig.class != key->uids->next->next->signatures->class)
|
||||
if (keys[i].uid[2].sig.sig_class != key->uids->next->next->signatures->sig_class)
|
||||
{
|
||||
fprintf (stderr, "Unexpected class in third user ID sig: %i\n",
|
||||
key->uids->next->next->signatures->class);
|
||||
key->uids->next->next->signatures->sig_class);
|
||||
exit (1);
|
||||
}
|
||||
if (keys[i].uid[2].sig.exportable != key->uids->next->next->signatures->exportable)
|
||||
|
@ -18,6 +18,12 @@
|
||||
along with GPGME; if not, write to the Free Software Foundation,
|
||||
Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
|
||||
|
||||
/* We need to include config.h so that we know whether we are building
|
||||
with large file system (LFS) support. */
|
||||
#ifdef HAVE_CONFIG_H
|
||||
#include <config.h>
|
||||
#endif
|
||||
|
||||
#include <stdlib.h>
|
||||
#include <stdio.h>
|
||||
#include <string.h>
|
||||
|
@ -18,6 +18,12 @@
|
||||
along with GPGME; if not, write to the Free Software Foundation,
|
||||
Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
|
||||
|
||||
/* We need to include config.h so that we know whether we are building
|
||||
with large file system (LFS) support. */
|
||||
#ifdef HAVE_CONFIG_H
|
||||
#include <config.h>
|
||||
#endif
|
||||
|
||||
#include <stdlib.h>
|
||||
#include <stdio.h>
|
||||
#include <string.h>
|
||||
@ -59,10 +65,10 @@ check_result (gpgme_sign_result_t result, gpgme_sig_mode_t type)
|
||||
result->signatures->hash_algo);
|
||||
exit (1);
|
||||
}
|
||||
if (result->signatures->class != 1)
|
||||
if (result->signatures->sig_class != 1)
|
||||
{
|
||||
fprintf (stderr, "Wrong signature class reported: %u\n",
|
||||
result->signatures->class);
|
||||
result->signatures->sig_class);
|
||||
exit (1);
|
||||
}
|
||||
if (strcmp ("A0FF4590BB6122EDEF6E3C542D727CC768697734",
|
||||
|
@ -18,6 +18,12 @@
|
||||
along with GPGME; if not, write to the Free Software Foundation,
|
||||
Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
|
||||
|
||||
/* We need to include config.h so that we know whether we are building
|
||||
with large file system (LFS) support. */
|
||||
#ifdef HAVE_CONFIG_H
|
||||
#include <config.h>
|
||||
#endif
|
||||
|
||||
#include <stdlib.h>
|
||||
#include <stdio.h>
|
||||
#include <string.h>
|
||||
@ -66,10 +72,10 @@ check_result (gpgme_sign_result_t result, gpgme_sig_mode_t type)
|
||||
signature->hash_algo);
|
||||
exit (1);
|
||||
}
|
||||
if (signature->class != 1)
|
||||
if (signature->sig_class != 1)
|
||||
{
|
||||
fprintf (stderr, "Wrong signature class reported: %u\n",
|
||||
signature->class);
|
||||
signature->sig_class);
|
||||
exit (1);
|
||||
}
|
||||
if (strcmp ("A0FF4590BB6122EDEF6E3C542D727CC768697734",
|
||||
|
@ -18,6 +18,12 @@
|
||||
along with GPGME; if not, write to the Free Software Foundation,
|
||||
Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
|
||||
|
||||
/* We need to include config.h so that we know whether we are building
|
||||
with large file system (LFS) support. */
|
||||
#ifdef HAVE_CONFIG_H
|
||||
#include <config.h>
|
||||
#endif
|
||||
|
||||
#include <stdlib.h>
|
||||
#include <stdio.h>
|
||||
#include <string.h>
|
||||
|
@ -18,6 +18,12 @@
|
||||
along with GPGME; if not, write to the Free Software Foundation,
|
||||
Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
|
||||
|
||||
/* We need to include config.h so that we know whether we are building
|
||||
with large file system (LFS) support. */
|
||||
#ifdef HAVE_CONFIG_H
|
||||
#include <config.h>
|
||||
#endif
|
||||
|
||||
#include <stdlib.h>
|
||||
#include <stdio.h>
|
||||
#include <string.h>
|
||||
|
@ -18,6 +18,12 @@
|
||||
along with GPGME; if not, write to the Free Software Foundation,
|
||||
Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
|
||||
|
||||
/* We need to include config.h so that we know whether we are building
|
||||
with large file system (LFS) support. */
|
||||
#ifdef HAVE_CONFIG_H
|
||||
#include <config.h>
|
||||
#endif
|
||||
|
||||
#include <stdlib.h>
|
||||
#include <stdio.h>
|
||||
#include <string.h>
|
||||
|
@ -21,7 +21,7 @@
|
||||
|
||||
GPGSM = @GPGSM@
|
||||
|
||||
TESTS_ENVIRONMENT = GNUPGHOME=.
|
||||
TESTS_ENVIRONMENT = GNUPGHOME=. GPG_AGENT_INFO=
|
||||
|
||||
noinst_HEADERS = t-support.h
|
||||
TESTS = t-import t-keylist t-encrypt t-verify t-decrypt t-sign t-export
|
||||
|
@ -18,6 +18,13 @@
|
||||
along with GPGME; if not, write to the Free Software Foundation,
|
||||
Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
|
||||
|
||||
|
||||
/* We need to include config.h so that we know whether we are building
|
||||
with large file system (LFS) support. */
|
||||
#ifdef HAVE_CONFIG_H
|
||||
#include <config.h>
|
||||
#endif
|
||||
|
||||
#include <stdlib.h>
|
||||
#include <stdio.h>
|
||||
#include <string.h>
|
||||
|
@ -18,6 +18,12 @@
|
||||
along with GPGME; if not, write to the Free Software Foundation,
|
||||
Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
|
||||
|
||||
/* We need to include config.h so that we know whether we are building
|
||||
with large file system (LFS) support. */
|
||||
#ifdef HAVE_CONFIG_H
|
||||
#include <config.h>
|
||||
#endif
|
||||
|
||||
#include <stdlib.h>
|
||||
#include <stdio.h>
|
||||
#include <string.h>
|
||||
|
@ -18,6 +18,12 @@
|
||||
along with GPGME; if not, write to the Free Software Foundation,
|
||||
Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
|
||||
|
||||
/* We need to include config.h so that we know whether we are building
|
||||
with large file system (LFS) support. */
|
||||
#ifdef HAVE_CONFIG_H
|
||||
#include <config.h>
|
||||
#endif
|
||||
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
|
@ -18,6 +18,12 @@
|
||||
along with GPGME; if not, write to the Free Software Foundation,
|
||||
Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
|
||||
|
||||
/* We need to include config.h so that we know whether we are building
|
||||
with large file system (LFS) support. */
|
||||
#ifdef HAVE_CONFIG_H
|
||||
#include <config.h>
|
||||
#endif
|
||||
|
||||
#include <stdlib.h>
|
||||
#include <stdio.h>
|
||||
#include <string.h>
|
||||
|
@ -18,6 +18,12 @@
|
||||
along with GPGME; if not, write to the Free Software Foundation,
|
||||
Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
|
||||
|
||||
/* We need to include config.h so that we know whether we are building
|
||||
with large file system (LFS) support. */
|
||||
#ifdef HAVE_CONFIG_H
|
||||
#include <config.h>
|
||||
#endif
|
||||
|
||||
#include <stdlib.h>
|
||||
#include <stdio.h>
|
||||
#include <string.h>
|
||||
@ -110,12 +116,21 @@ check_result (gpgme_import_result_t result, char *fpr, int total)
|
||||
result->not_imported);
|
||||
exit (1);
|
||||
}
|
||||
if (result->imports)
|
||||
|
||||
{
|
||||
int n;
|
||||
gpgme_import_status_t r;
|
||||
|
||||
for (n=0, r=result->imports; r; r=r->next)
|
||||
n++;
|
||||
|
||||
if (n != total)
|
||||
{
|
||||
fprintf (stderr, "Unexpected number of status reports\n");
|
||||
exit (1);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
int
|
||||
|
@ -18,6 +18,12 @@
|
||||
along with GPGME; if not, write to the Free Software Foundation,
|
||||
Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
|
||||
|
||||
/* We need to include config.h so that we know whether we are building
|
||||
with large file system (LFS) support. */
|
||||
#ifdef HAVE_CONFIG_H
|
||||
#include <config.h>
|
||||
#endif
|
||||
|
||||
#include <stdlib.h>
|
||||
#include <stdio.h>
|
||||
#include <string.h>
|
||||
|
@ -18,6 +18,12 @@
|
||||
along with GPGME; if not, write to the Free Software Foundation,
|
||||
Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
|
||||
|
||||
/* We need to include config.h so that we know whether we are building
|
||||
with large file system (LFS) support. */
|
||||
#ifdef HAVE_CONFIG_H
|
||||
#include <config.h>
|
||||
#endif
|
||||
|
||||
#include <stdlib.h>
|
||||
#include <stdio.h>
|
||||
#include <string.h>
|
||||
@ -57,10 +63,10 @@ check_result (gpgme_sign_result_t result, gpgme_sig_mode_t type)
|
||||
result->signatures->hash_algo);
|
||||
exit (1);
|
||||
}
|
||||
if (result->signatures->class != 0)
|
||||
if (result->signatures->sig_class != 0)
|
||||
{
|
||||
fprintf (stderr, "Wrong signature class reported: %u\n",
|
||||
result->signatures->class);
|
||||
result->signatures->sig_class);
|
||||
exit (1);
|
||||
}
|
||||
if (strcmp ("3CF405464F66ED4A7DF45BBDD1E4282E33BDB76E",
|
||||
|
@ -18,6 +18,12 @@
|
||||
along with GPGME; if not, write to the Free Software Foundation,
|
||||
Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
|
||||
|
||||
/* We need to include config.h so that we know whether we are building
|
||||
with large file system (LFS) support. */
|
||||
#ifdef HAVE_CONFIG_H
|
||||
#include <config.h>
|
||||
#endif
|
||||
|
||||
#include <stdlib.h>
|
||||
#include <stdio.h>
|
||||
#include <string.h>
|
||||
|
@ -18,6 +18,12 @@
|
||||
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
|
||||
*/
|
||||
|
||||
/* We need to include config.h so that we know whether we are building
|
||||
with large file system (LFS) support. */
|
||||
#ifdef HAVE_CONFIG_H
|
||||
#include <config.h>
|
||||
#endif
|
||||
|
||||
#include <stddef.h>
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
|
Loading…
Reference in New Issue
Block a user