Next: Importing Keys, Previous: Generating Keys, Up: Key Management
The function
gpgme_op_export
extracts public keys and returns them in the data buffer keydata. The output format of the key data returned is determined by the ASCII armor attribute set for the context ctx.If pattern is
NULL
, all available keys are returned. Otherwise, pattern contains an engine specific expression that is used to limit the list to all keys matching the pattern.reserved is reserved for future use and must be
0
.The function returns the error code
GPG_ERR_NO_ERROR
if the operation completed successfully,GPG_ERR_INV_VALUE
if keydata is not a valid empty data buffer, and passes through any errors that are reported by the crypto engine support routines.
The function
gpgme_op_export_start
initiates agpgme_op_export
operation. It can be completed by callinggpgme_wait
on the context. See Waiting For Completion.The function returns the error code
GPG_ERR_NO_ERROR
if the operation could be started successfully, andGPG_ERR_INV_VALUE
if keydata is not a valid empty data buffer.
The function
gpgme_op_export
extracts public keys and returns them in the data buffer keydata. The output format of the key data returned is determined by the ASCII armor attribute set for the context ctx.If pattern or *pattern is
NULL
, all available keys are returned. Otherwise, pattern is aNULL
terminated array of strings that are used to limit the list to all keys matching at least one of the patterns verbatim.reserved is reserved for future use and must be
0
.The function returns the error code
GPG_ERR_NO_ERROR
if the operation completed successfully,GPG_ERR_INV_VALUE
if keydata is not a valid empty data buffer, and passes through any errors that are reported by the crypto engine support routines.
The function
gpgme_op_export_ext_start
initiates agpgme_op_export_ext
operation. It can be completed by callinggpgme_wait
on the context. See Waiting For Completion.The function returns the error code
GPG_ERR_NO_ERROR
if the operation could be started successfully, andGPG_ERR_INV_VALUE
if keydata is not a valid empty data buffer.