diff options
| author | Werner Koch <[email protected]> | 2002-06-26 12:49:59 +0000 | 
|---|---|---|
| committer | Werner Koch <[email protected]> | 2002-06-26 12:49:59 +0000 | 
| commit | 06cd423a8b14ae91d5b0b248a90516c92db4d54e (patch) | |
| tree | fc6e43b3d22f30eccd217d1fb63978717406d8e8 /tests | |
| parent | Make the signatureCertificateDaysLeftToExpiry() work as expected. (diff) | |
| download | gpgme-06cd423a8b14ae91d5b0b248a90516c92db4d54e.tar.gz gpgme-06cd423a8b14ae91d5b0b248a90516c92db4d54e.zip | |
* gpgsm/t-import.c (print_op_info): New.
(main): Print operation info.
* engine-gpgsm.c (map_assuan_error): Map No_Data_Available to EOF.
* import.c (append_xml_impinfo): Kludge to print fingerprint
instead of keyid for use with gpgsm.
(import_status_handler): Set a flag to know whether any import
occured.
(gpgme_op_import): Reurn -1 if no certificate ewas imported.
* gpgme.texi (Importing Keys): Document the return value -1 of
gpgme_op_import.
Diffstat (limited to '')
| -rw-r--r-- | tests/ChangeLog | 5 | ||||
| -rw-r--r-- | tests/gpgsm/t-import.c | 16 | 
2 files changed, 21 insertions, 0 deletions
| diff --git a/tests/ChangeLog b/tests/ChangeLog index adbcc480..f22e1abe 100644 --- a/tests/ChangeLog +++ b/tests/ChangeLog @@ -1,3 +1,8 @@ +2002-06-26  Werner Koch  <[email protected]> + +	* gpgsm/t-import.c (print_op_info): New. +	(main): Print operation info. +  2002-06-25  Werner Koch  <[email protected]>  	* gpgsm/Makefile.am (DISTCLEANFILES): new. diff --git a/tests/gpgsm/t-import.c b/tests/gpgsm/t-import.c index f62ff003..974cdd93 100644 --- a/tests/gpgsm/t-import.c +++ b/tests/gpgsm/t-import.c @@ -57,6 +57,20 @@ make_filename (const char *fname)    return buf;  } +static void +print_op_info (GpgmeCtx c) +{ +    char *s = gpgme_get_op_info (c, 0); + +    if (!s) +        puts ("<!-- no operation info available -->"); +    else { +        puts (s); +        free (s); +    } +} + +  int   main (int argc, char **argv)  { @@ -76,6 +90,7 @@ main (int argc, char **argv)        fail_if_err (err);        err = gpgme_op_import (ctx, in); +      print_op_info (ctx);        fail_if_err (err);        gpgme_data_release (in); @@ -84,6 +99,7 @@ main (int argc, char **argv)        fail_if_err (err);        err = gpgme_op_import (ctx, in); +      print_op_info (ctx);        fail_if_err (err);        gpgme_data_release (in); | 
