diff options
| author | Marcus Brinkmann <[email protected]> | 2005-06-03 00:42:08 +0000 | 
|---|---|---|
| committer | Marcus Brinkmann <[email protected]> | 2005-06-03 00:42:08 +0000 | 
| commit | b8440749f177805ba99a807b5ec80bec39612d0e (patch) | |
| tree | 244109bf9bfaff9ff0a9c52578df369733372bde /doc | |
| parent | gpgme/ (diff) | |
| download | gpgme-b8440749f177805ba99a807b5ec80bec39612d0e.tar.gz gpgme-b8440749f177805ba99a807b5ec80bec39612d0e.zip  | |
doc/
2005-06-03  Marcus Brinkmann  <[email protected]>
	* gpgme.texi (Decrypt): Add gpgme_recipient_t.
gpgme/
2005-06-03  Marcus Brinkmann  <[email protected]>
	* gpgme.h (struct _gpgme_recipient): New structure.
	(gpgme_recipient_t): New type.
	(struct _gpgme_op_decrypt_result): Add member recipients.
	* decrypt.c (op_data_t): New member last_recipient_p.
	(_gpgme_op_decrypt_init_result): Initialize last_recipient_p.
	(parse_enc_to): New function.
	(_gpgme_decrypt_status_handler): Handle status ENC_TO and
	NO_SECKEY.
Diffstat (limited to 'doc')
| -rw-r--r-- | doc/ChangeLog | 4 | ||||
| -rw-r--r-- | doc/gpgme.texi | 34 | 
2 files changed, 37 insertions, 1 deletions
diff --git a/doc/ChangeLog b/doc/ChangeLog index 67519fa7..e4071285 100644 --- a/doc/ChangeLog +++ b/doc/ChangeLog @@ -1,3 +1,7 @@ +2005-06-03  Marcus Brinkmann  <[email protected]> + +	* gpgme.texi (Decrypt): Add gpgme_recipient_t. +  2005-05-28  Marcus Brinkmann  <[email protected]>  	* gpgme.texi (Key Listing Mode): Fix return type of diff --git a/doc/gpgme.texi b/doc/gpgme.texi index cae9b70c..92289c2e 100644 --- a/doc/gpgme.texi +++ b/doc/gpgme.texi @@ -3622,9 +3622,38 @@ operation could be started successfully, and @code{GPG_ERR_INV_VALUE}  if @var{cipher} or @var{plain} is not a valid pointer.  @end deftypefun +@deftp {Data type} {gpgme_recipient_t} +This is a pointer to a structure used to store information about the +recipient of an encrypted text which is decrypted in a +@code{gpgme_op_decrypt} operation.  This information (except for the +status field) is even available before the operation finished +successfully, for example in a passphrase callback.  The structure +contains the following members: + +@table @code +@item gpgme_recipient_t next +This is a pointer to the next recipient structure in the linked list, +or @code{NULL} if this is the last element. + +@item gpgme_pubkey_algo_t +The public key algorithm used in the encryption. + +@item unsigned int wrong_key_usage : 1 +This is true if the key was not used according to its policy. + +@item char *keyid +This is the key ID of the key (in hexadecimal digits) used as +recipient. + +@item gpgme_error_t status +This is an error number with the error code GPG_ERR_NO_SECKEY if the +secret key for this recipient is not available, and 0 otherwise. +@end table +@end deftp +  @deftp {Data type} {gpgme_decrypt_result_t}  This is a pointer to a structure used to store the result of a -@code{gpgme_op_decrypt} operation.  After successfully encrypting +@code{gpgme_op_decrypt} operation.  After successfully decrypting  data, you can retrieve the pointer to the result with  @code{gpgme_op_decrypt_result}.  The structure contains the following  members: @@ -3636,6 +3665,9 @@ algorithm that is not supported.  @item unsigned int wrong_key_usage : 1  This is true if the key was not used according to its policy. + +@item gpgme_recipient_t recipient +This is a linked list of recipients to which this message was encrypted.  @end table  @end deftp  | 
