From: Marcus Brinkmann Date: Thu, 24 Apr 2003 17:28:05 +0000 (+0000) Subject: Complete genkey example. X-Git-Tag: gpgme-1.2.0@1385~678 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=e00de34126f7574d10caa4d5f526497fde0e14c8;p=gpgme.git Complete genkey example. --- diff --git a/trunk/NEWS b/trunk/NEWS index f985f1e..6a517b5 100644 --- a/trunk/NEWS +++ b/trunk/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.