GNU Info

Info Node: (gpgme.info)Exporting Keys

(gpgme.info)Exporting Keys


Next: Importing Keys Prev: Generating Keys Up: Key Management
Enter node , (file) or (file)node

Exporting Keys
--------------

 - Function: GpgmeError gpgme_op_export (GpgmeCtx CTX,
          GpgmeRecipients RECIPIENTS, GpgmeData KEYDATA)
     The function `gpgme_op_export' extracts the public keys of the
     user IDs in RECIPIENTS and returns them in the data buffer
     KEYDATA.  The type of the public keys returned is determined by
     the ASCII armor attribute set for the context CTX.

     The function returns `GPGME_No_Error' if the operation completed
     successfully, `GPGME_Invalid_Value' if RECIPIENTS is `NULL' or
     KEYDATA is not a valid empty data buffer, and passes through any
     errors that are reported by the crypto engine support routines.

 - Function: GpgmeError gpgme_op_export_start (GpgmeCtx CTX,
          GpgmeRecipients RECIPIENTS, GpgmeData KEYDATA)
     The function `gpgme_op_export_start' initiates a `gpgme_op_export'
     operation.  It can be completed by calling `gpgme_wait' on the
     context.  Note: Waiting For Completion.

     The function returns `GPGME_No_Error' if the operation could be
     started successfully, and `GPGME_Invalid_Value' if RECIPIENTS is
     `NULL' or KEYDATA is not a valid empty data buffer.


automatically generated by info2www version 1.2.2.9