2002-02-09 Marcus Brinkmann <marcus@g10code.de>
* gpgme.texi (Detailed Results): Remove literal tags. (Generating Keys): Update documentation.
This commit is contained in:
parent
4286ebe122
commit
b6a71ec888
@ -1,3 +1,8 @@
|
|||||||
|
2002-02-09 Marcus Brinkmann <marcus@g10code.de>
|
||||||
|
|
||||||
|
* gpgme.texi (Detailed Results): Remove literal tags.
|
||||||
|
(Generating Keys): Update documentation.
|
||||||
|
|
||||||
2002-02-06 Marcus Brinkmann <marcus@g10code.de>
|
2002-02-06 Marcus Brinkmann <marcus@g10code.de>
|
||||||
|
|
||||||
* gpgme.texi (Waiting For Completion): Adjust doc to changes in
|
* gpgme.texi (Waiting For Completion): Adjust doc to changes in
|
||||||
|
@ -1468,11 +1468,19 @@ 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
|
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
|
@var{pubkey} and @var{seckey} are @code{NULL}. In this case the
|
||||||
function returns immediately after starting the operation, and does
|
function returns immediately after starting the operation, and does
|
||||||
not wait for it to complete. @var{pubkey} and @var{seckey} are
|
not wait for it to complete. If @var{pubkey} is not @code{NULL} it
|
||||||
reserved for later use and should be @code{NULL}. (The function
|
should be the handle for an empty (newly created) data object, and
|
||||||
should return the public key in the data buffer @var{pubkey} and the
|
upon successful completion the data object will contain the public
|
||||||
secret key in the data buffer @var{seckey}, but this is not
|
key. If @var{seckey} is not @code{NULL} it should be the handle for
|
||||||
implemented yet).
|
an empty (newly created) data object, and upon successful completion
|
||||||
|
the data object will contain the secret key.
|
||||||
|
|
||||||
|
Note that not all crypto engines support this interface equally.
|
||||||
|
GnuPG does not support @var{pubkey} and @var{subkey}, they should be
|
||||||
|
both @code{NULL}, and the key pair will be added to the standard key
|
||||||
|
ring. GpgSM does only support @var{pubkey}, the secret key will be
|
||||||
|
stored by @command{gpg-agent}. GpgSM expects @var{pubkey} being not
|
||||||
|
@code{NULL}.
|
||||||
|
|
||||||
The argument @var{parms} specifies parameters for the key in an XML
|
The argument @var{parms} specifies parameters for the key in an XML
|
||||||
string. The details about the format of @var{parms} are specific to
|
string. The details about the format of @var{parms} are specific to
|
||||||
@ -1480,8 +1488,6 @@ the crypto engine used by @var{ctx}. Here is an example for GnuPG as
|
|||||||
the crypto engine:
|
the crypto engine:
|
||||||
|
|
||||||
@example
|
@example
|
||||||
<literal>
|
|
||||||
<![CDATA[
|
|
||||||
<GnupgKeyParms format="internal">
|
<GnupgKeyParms format="internal">
|
||||||
Key-Type: DSA
|
Key-Type: DSA
|
||||||
Key-Length: 1024
|
Key-Length: 1024
|
||||||
@ -1493,8 +1499,16 @@ Name-Email: joe@@foo.bar
|
|||||||
Expire-Date: 0
|
Expire-Date: 0
|
||||||
Passphrase: abc
|
Passphrase: abc
|
||||||
</GnupgKeyParms>
|
</GnupgKeyParms>
|
||||||
]]>
|
@end example
|
||||||
</literal>
|
|
||||||
|
Here is an example for GpgSM as the crypto engine:
|
||||||
|
@example
|
||||||
|
<GnupgKeyParms format="internal">
|
||||||
|
Key-Type: RSA
|
||||||
|
Key-Length: 1024
|
||||||
|
Name-DN: C=de,O=g10 code,OU=Testlab,CN=Joe 2 Tester
|
||||||
|
Name-Email: joe@foo.bar
|
||||||
|
</GnupgKeyParms>
|
||||||
@end example
|
@end example
|
||||||
|
|
||||||
Strings should be given in UTF-8 encoding. The only format supported
|
Strings should be given in UTF-8 encoding. The only format supported
|
||||||
@ -1505,8 +1519,8 @@ allowed.
|
|||||||
The function returns @code{GPGME_No_Error} if the operation could be
|
The function returns @code{GPGME_No_Error} if the operation could be
|
||||||
started successfully, @code{GPGME_Invalid_Value} if @var{parms} is not
|
started successfully, @code{GPGME_Invalid_Value} if @var{parms} is not
|
||||||
a valid XML string, @code{GPGME_Not_Supported} if @var{pubkey} or
|
a valid XML string, @code{GPGME_Not_Supported} if @var{pubkey} or
|
||||||
@var{seckey} is not @code{NULL}, and @code{GPGME_General_Error} if no
|
@var{seckey} is not valid, and @code{GPGME_General_Error} if no key
|
||||||
key was created by the backend.
|
was created by the backend.
|
||||||
@end deftypefun
|
@end deftypefun
|
||||||
|
|
||||||
@deftypefun GpgmeError gpgme_op_genkey_start (@w{GpgmeCtx @var{ctx}}, @w{const char *@var{parms}}, @w{GpgmeData @var{pubkey}}, @w{GpgmeData @var{seckey}})
|
@deftypefun GpgmeError gpgme_op_genkey_start (@w{GpgmeCtx @var{ctx}}, @w{const char *@var{parms}}, @w{GpgmeData @var{pubkey}}, @w{GpgmeData @var{seckey}})
|
||||||
@ -2186,8 +2200,6 @@ release the string with @code{free}.
|
|||||||
|
|
||||||
Here is a sample of the information that might be returned:
|
Here is a sample of the information that might be returned:
|
||||||
@example
|
@example
|
||||||
<literal>
|
|
||||||
<![CDATA[
|
|
||||||
<GnupgOperationInfo>
|
<GnupgOperationInfo>
|
||||||
<signature>
|
<signature>
|
||||||
<detached/> <!-- or cleartext or standard -->
|
<detached/> <!-- or cleartext or standard -->
|
||||||
@ -2199,8 +2211,6 @@ Here is a sample of the information that might be returned:
|
|||||||
<fpr>121212121212121212</fpr>
|
<fpr>121212121212121212</fpr>
|
||||||
</signature>
|
</signature>
|
||||||
</GnupgOperationInfo>
|
</GnupgOperationInfo>
|
||||||
]]>
|
|
||||||
</literal>
|
|
||||||
@end example
|
@end example
|
||||||
|
|
||||||
Currently, the only operations that return additional information are
|
Currently, the only operations that return additional information are
|
||||||
|
Loading…
Reference in New Issue
Block a user