GNU Info

Info Node: (gpgme.info)Importing Keys

(gpgme.info)Importing Keys


Next: Deleting Keys Prev: Exporting Keys Up: Key Management
Enter node , (file) or (file)node

Importing Keys
--------------

 - Function: GpgmeError gpgme_op_import (GpgmeCtx CTX,
          GpgmeData KEYDATA)
     The function `gpgme_op_import' adds the keys in the data buffer
     KEYDATA to the key ring of the crypto engine used by CTX.  The
     format of KEYDATA can be ASCII armored, for example, but the
     details are specific to the crypto engine.

     More information about the import is available with
     `gpgme_get_op_info'.  Note: Detailed Results.

     The function returns `GPGME_No_Error' if the import was completed
     successfully, `GPGME_Invalid_Value' if KEYDATA if CTX or KEYDATA
     is not a valid pointer, and `GPGME_No_Data' if KEYDATA is an empty
     data buffer.

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

     The function returns `GPGME_No_Error' if the import could be
     started successfully, `GPGME_Invalid_Value' if KEYDATA if CTX or
     KEYDATA is not a valid pointer, and `GPGME_No_Data' if KEYDATA is
     an empty data buffer.


automatically generated by info2www version 1.2.2.9