From: Marcus Brinkmann Date: Mon, 23 Dec 2002 21:06:38 +0000 (+0000) Subject: 2002-12-23 Marcus Brinkmann X-Git-Tag: gpgme-1.2.0@1385~734 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=ce204e975c23e1988cc42e780c5e01eb87174cd0;p=gpgme.git 2002-12-23 Marcus Brinkmann * gpgsm/Makefile.am (./gpgsm.conf): Add a faked system time to avoid certification's expiry. * gpgsm/t-encrypt.c (main): Use the short certification name. --- diff --git a/trunk/tests/ChangeLog b/trunk/tests/ChangeLog index 9efd160..955b9e5 100644 --- a/trunk/tests/ChangeLog +++ b/trunk/tests/ChangeLog @@ -1,3 +1,9 @@ +2002-12-23 Marcus Brinkmann + + * gpgsm/Makefile.am (./gpgsm.conf): Add a faked system time to + avoid certification's expiry. + * gpgsm/t-encrypt.c (main): Use the short certification name. + 2002-11-19 Marcus Brinkmann * gpg/t-genkey.c (main): Add missing argument to gpgme_op_genkey diff --git a/trunk/tests/gpgsm/Makefile.am b/trunk/tests/gpgsm/Makefile.am index b8f966b..ab4d2d9 100644 --- a/trunk/tests/gpgsm/Makefile.am +++ b/trunk/tests/gpgsm/Makefile.am @@ -46,6 +46,7 @@ all-local: ./pubring.kbx ./gpgsm.conf ./private-keys-v1.d/$(key_id).key ./trustl ./gpgsm.conf: echo disable-crl-checks > ./gpgsm.conf + echo faked-system-time 1038908198 >> ./gpgsm.conf ./private-keys-v1.d/$(key_id).key: $(srcdir)/$(key_id) test -d ./private-keys-v1.d || mkdir ./private-keys-v1.d diff --git a/trunk/tests/gpgsm/t-encrypt.c b/trunk/tests/gpgsm/t-encrypt.c index 5409624..4999685 100644 --- a/trunk/tests/gpgsm/t-encrypt.c +++ b/trunk/tests/gpgsm/t-encrypt.c @@ -110,11 +110,10 @@ main (int argc, char **argv ) fail_if_err (err); if (argc) err = gpgme_recipients_add_name_with_validity (rset, *argv, - GPGME_VALIDITY_FULL); + GPGME_VALIDITY_FULL); else - err = gpgme_recipients_add_name_with_validity (rset, - "/CN=test cert 1,OU=Aegypten Project,O=g10 Code GmbH,L=Düsseldorf,C=DE", - GPGME_VALIDITY_FULL); + err = gpgme_recipients_add_name_with_validity (rset, "test cert 1", + GPGME_VALIDITY_FULL); fail_if_err (err); err = gpgme_op_encrypt (ctx, rset, in, out );