Complete genkey example.
authorMarcus Brinkmann <mb@g10code.com>
Thu, 24 Apr 2003 17:28:05 +0000 (17:28 +0000)
committerMarcus Brinkmann <mb@g10code.com>
Thu, 24 Apr 2003 17:28:05 +0000 (17:28 +0000)
NEWS

diff --git a/NEWS b/NEWS
index f985f1ee9edf68337af387df354438363d6fd2f9..6a517b548035a4b38effee45d2c6a4d3dc568ab6 100644 (file)
--- 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.