diff options
author | Marcus Brinkmann <[email protected]> | 2002-01-30 21:52:32 +0000 |
---|---|---|
committer | Marcus Brinkmann <[email protected]> | 2002-01-30 21:52:32 +0000 |
commit | 088c044792fd352b0dcb00bb31cc40aec38d3ebf (patch) | |
tree | 882efe2956153087bf90748dfb7616d7e57b95ab /tests/gpg/t-import.c | |
parent | Be a bit clearer. (diff) | |
download | gpgme-088c044792fd352b0dcb00bb31cc40aec38d3ebf.tar.gz gpgme-088c044792fd352b0dcb00bb31cc40aec38d3ebf.zip |
doc/
2002-01-30 Marcus Brinkmann <[email protected]>
* gpgme.texi (Importing Keys): Add reference to gpgme_get_op_info.
gpgme/
2002-01-30 Marcus Brinkmann <[email protected]>
* import.c (struct import_result_s): New structure.
(_gpgme_release_import_result): New function.
(append_xml_impinfo): Likewise.
(import_status_handler): Implement.
* gpgme.c (_gpgme_release_result): Add call to
_gpgme_release_import_result.
* ops.h (_gpgme_release_impoer_result): Add prototype.
* types.h (ImportResult): New type.
* context.h (gpgme_context_s): Add ImportResult to member result.
* encrypt.c (gpgme_op_encrypt): Code clean up.
tests/
2002-01-30 Marcus Brinkmann <[email protected]>
* gpg/t-import.c (print_op_info): New function.
(main): Use it.
Diffstat (limited to 'tests/gpg/t-import.c')
-rw-r--r-- | tests/gpg/t-import.c | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/tests/gpg/t-import.c b/tests/gpg/t-import.c index 25ea20f5..7bf21244 100644 --- a/tests/gpg/t-import.c +++ b/tests/gpg/t-import.c @@ -54,6 +54,21 @@ mk_fname ( 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 ) { @@ -72,6 +87,7 @@ main (int argc, char **argv ) err = gpgme_op_import (ctx, in ); fail_if_err (err); + print_op_info (ctx); gpgme_data_release (in); @@ -80,6 +96,7 @@ main (int argc, char **argv ) err = gpgme_op_import (ctx, in ); fail_if_err (err); + print_op_info (ctx); gpgme_data_release (in); gpgme_release (ctx); |