aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarcus Brinkmann <[email protected]>2003-04-24 17:28:05 +0000
committerMarcus Brinkmann <[email protected]>2003-04-24 17:28:05 +0000
commitf0ee6af9f8a47decbda6944fb0d4cea228304dc3 (patch)
treea7cbecb30e439755c4b79d97f13d5b6fd158849a
parentdoc/ (diff)
downloadgpgme-f0ee6af9f8a47decbda6944fb0d4cea228304dc3.tar.gz
gpgme-f0ee6af9f8a47decbda6944fb0d4cea228304dc3.zip
Complete genkey example.
-rw-r--r--NEWS18
1 files changed, 18 insertions, 0 deletions
diff --git a/NEWS b/NEWS
index f985f1ee..6a517b54 100644
--- a/NEWS
+++ b/NEWS
@@ -52,6 +52,24 @@ Noteworthy changes in version 0.4.1 (unreleased)
works with gpgme_op_genkey. The structure also provides other
information about the generated keys.
+ So, instead:
+
+ char *fpr;
+ err = gpgme_op_genkey (ctx, NULL, NULL, &fpr);
+ if (!err && fpr)
+ printf ("%s\n", fpr);
+
+ you should now do:
+
+ GpgmeGenKeyResult result;
+ err = gpgme_op_genkey (ctx, NULL, NULL);
+ if (!err)
+ {
+ result = gpgme_op_genkey_result (ctx);
+ if (result->fpr)
+ printf ("%s\n", result->fpr);
+ }
+
* Interface changes relative to the 0.4.0 release:
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
GpgmeIOCb CHANGED: Return type from void to GpgmeError.