Next: Checking for updates, Previous: Running other Programs, Up: Miscellaneous [Contents][Index]
The Assuan protocol can be used to talk to arbitrary Assuan servers.
By default it is connected to the GnuPG agent, but it may be connected
to arbitrary servers by using gpgme_ctx_set_engine_info
,
passing the location of the servers socket as file_name
argument, and an empty string as home_dir argument.
The Assuan protocol functions use three kinds of callbacks to transfer data:
SINCE: 1.2.0
This callback receives any data sent by the server. opaque is
the pointer passed to gpgme_op_assuan_transact_start
,
data of length datalen refers to the data sent.
SINCE: 1.2.0
This callback is used to provide additional data to the Assuan server.
opaque is the pointer passed to
gpgme_op_assuan_transact_start
, name and args
specify what kind of data the server requested, and r_data is
used to return the actual data.
Note: Returning data is currently not implemented in GPGME.
SINCE: 1.2.0
This callback receives any status lines sent by the server.
opaque is the pointer passed to
gpgme_op_assuan_transact_start
, status and args
denote the status update sent.
SINCE: 1.2.0
Send the Assuan command and return results via the callbacks.
Any callback may be NULL
. The result of the operation may be
retrieved using gpgme_wait_ext
.
Asynchronous variant.
Send the Assuan command and return results via the callbacks. The result of the operation is returned in op_err.
Synchronous variant.
Next: Checking for updates, Previous: Running other Programs, Up: Miscellaneous [Contents][Index]