diff options
| author | Marcus Brinkmann <[email protected]> | 2002-11-19 16:41:17 +0000 | 
|---|---|---|
| committer | Marcus Brinkmann <[email protected]> | 2002-11-19 16:41:17 +0000 | 
| commit | dfc32a5441519cc6071ee5bf8e12abe4a29f5875 (patch) | |
| tree | ddd7bd5bac88e29f9fa51f7836e27d8e97516c86 /doc/gpgme.texi | |
| parent | 2002-11-19 Marcus Brinkmann <[email protected]> (diff) | |
| download | gpgme-dfc32a5441519cc6071ee5bf8e12abe4a29f5875.tar.gz gpgme-dfc32a5441519cc6071ee5bf8e12abe4a29f5875.zip | |
doc/
2002-11-19  Marcus Brinkmann  <[email protected]>
	* gpgme.texi (Generating Keys): Document new argument to
	gpgme_op_genkey.
gpgme/
2002-11-19  Marcus Brinkmann  <[email protected]>
	* genkey.c: Only include <config.h> if [HAVE_CONFIG_H].
	(struct genkey_result_s): Add new member FPR.
	(_gpgme_release_genkey_result): Free RESULT->fpr if set.
	(genkey_status_handler): Extract the fingerprint from the status
	line.
	(gpgme_op_genkey): Add new argument FPR and return the fingerprint
	in it.
	* gpgme.h: Adjust prototype of gpgme_op_genkey.
tests/
2002-11-19  Marcus Brinkmann  <[email protected]>
	* gpg/t-genkey.c (main): Add missing argument to gpgme_op_genkey
	invocation.
CVSk: ----------------------------------------------------------------------
Diffstat (limited to '')
| -rw-r--r-- | doc/gpgme.texi | 9 | 
1 files changed, 8 insertions, 1 deletions
| diff --git a/doc/gpgme.texi b/doc/gpgme.texi index 2663f075..7c114b47 100644 --- a/doc/gpgme.texi +++ b/doc/gpgme.texi @@ -1803,7 +1803,7 @@ The function @code{gpgme_key_release} is an alias for  @cindex key, creation  @cindex key ring, add -@deftypefun GpgmeError gpgme_op_genkey (@w{GpgmeCtx @var{ctx}}, @w{const char *@var{parms}}, @w{GpgmeData @var{pubkey}}, @w{GpgmeData @var{seckey}}) +@deftypefun GpgmeError gpgme_op_genkey (@w{GpgmeCtx @var{ctx}}, @w{const char *@var{parms}}, @w{GpgmeData @var{pubkey}}, @w{GpgmeData @var{seckey}}, @w{char **@var{fpr}})  The function @code{gpgme_op_genkey} generates a new key pair in the  context @var{ctx} and puts it into the standard key ring if both  @var{pubkey} and @var{seckey} are @code{NULL}.  In this case the @@ -1856,6 +1856,13 @@ for now is ``internal''.  The content of the @code{GnupgKeyParms}  container is passed verbatim to GnuPG.  Control statements are not  allowed. +If @var{fpr} is not a null pointer, the function succeeds, and the +crypto engine supports it, *@var{fpr} will contain a string with the +fingerprint of the key, allocated with @code{malloc}.  If both a +primary and a sub key was generated, the fingerprint of the primary +key will be returned.  If the crypto engine does not provide the +fingerprint, *@var{fpr} will be a null pointer. +  The function returns @code{GPGME_No_Error} if the operation could be  started successfully, @code{GPGME_Invalid_Value} if @var{parms} is not  a valid XML string, @code{GPGME_Not_Supported} if @var{pubkey} or | 
