| Top |  |  |  |  | 
| CamelGpgKeyInfo * | camel_gpg_key_info_copy () | 
| void | camel_gpg_key_info_free () | 
| const gchar * | camel_gpg_key_info_get_id () | 
| const gchar * | camel_gpg_key_info_get_fingerprint () | 
| gint64 | camel_gpg_key_info_get_creation_date () | 
| CamelGpgTrust | camel_gpg_key_info_get_trust () | 
| CamelCipherContext * | camel_gpg_context_new () | 
| gboolean | camel_gpg_context_get_always_trust () | 
| void | camel_gpg_context_set_always_trust () | 
| gboolean | camel_gpg_context_get_prefer_inline () | 
| void | camel_gpg_context_set_prefer_inline () | 
| gboolean | camel_gpg_context_get_locate_keys () | 
| void | camel_gpg_context_set_locate_keys () | 
| gboolean | camel_gpg_context_has_public_key_sync () | 
| gboolean | camel_gpg_context_get_public_key_sync () | 
| gboolean | camel_gpg_context_get_public_key_info_sync () | 
| gboolean | camel_gpg_context_get_key_data_info_sync () | 
| gboolean | camel_gpg_context_set_key_trust_sync () | 
| gboolean | camel_gpg_context_import_key_sync () | 
| gboolean | always-trust | Read / Write / Construct | 
| gboolean | locate-keys | Read / Write / Construct | 
| gboolean | prefer-inline | Read / Write / Construct | 
CamelGpgKeyInfo *
camel_gpg_key_info_copy (const CamelGpgKeyInfo *src);
Copies the src
 to a new CamelGpgKeyInfo structure.
Since: 3.50
void
camel_gpg_key_info_free (CamelGpgKeyInfo *info);
Frees the info
 previously allocated by camel_gpg_context_get_public_key_info_sync(),
camel_gpg_context_get_key_data_info_sync() or camel_gpg_key_info_copy().
Since: 3.50
const gchar *
camel_gpg_key_info_get_id (const CamelGpgKeyInfo *info);
Gets the key ID.
Since: 3.50
const gchar *
camel_gpg_key_info_get_fingerprint (const CamelGpgKeyInfo *info);
Gets the key fingerprint.
Since: 3.50
gint64
camel_gpg_key_info_get_creation_date (const CamelGpgKeyInfo *info);
Gets the key creating date, as seconds since the Unix Epoch.
Since: 3.50
CamelGpgTrust
camel_gpg_key_info_get_trust (const CamelGpgKeyInfo *info);
Gets the key trust level, as one of CamelGpgTrust.
Since: 3.50
CamelCipherContext *
camel_gpg_context_new (CamelSession *session);
Creates a new gpg cipher context object.
gboolean
camel_gpg_context_get_always_trust (CamelGpgContext *context);
Since: 2.32
void camel_gpg_context_set_always_trust (CamelGpgContext *context,gboolean always_trust);
Sets the always_trust
 flag on the gpg context which is used for
encryption.
gboolean
camel_gpg_context_get_prefer_inline (CamelGpgContext *context);
Since: 3.20
void camel_gpg_context_set_prefer_inline (CamelGpgContext *context,gboolean prefer_inline);
Sets the prefer_inline
 flag on the gpg context.
Since: 3.20
gboolean
camel_gpg_context_get_locate_keys (CamelGpgContext *context);
Returns, whether gpg can locate keys using Web Key Directory (WKD) lookup
when encrypting messages. The default is TRUE.
Since: 3.46
void camel_gpg_context_set_locate_keys (CamelGpgContext *context,gboolean locate_keys);
Sets the locate_keys
 on the gpg context which is used to instruct
gpg to locate keys using Web Key Directory (WKD) lookup when encrypting
messages.
Since: 3.46
gboolean camel_gpg_context_has_public_key_sync (CamelGpgContext *context,const gchar *keyid,GCancellable *cancellable,GError **error);
Checks whether there exists a public key with keyid
.
The keyid
 can be either key ID or an email address.
| context | ||
| keyid | a key ID or an email address | |
| cancellable | optional GCancellable object, or  | |
| error | return location for a GError, or  | 
Since: 3.50
gboolean camel_gpg_context_get_public_key_sync (CamelGpgContext *context,const gchar *keyid,guint32 flags,guint8 **out_data,gsize *out_data_size,GCancellable *cancellable,GError **error);
Returns a public key with keyid
.
The keyid
 can be either key ID or an email address.
The flags
 argument is currently unused and should be set to 0.
The out_data
 content should be freed with g_free(), when
no longer needed.
| context | ||
| keyid | a key ID or an email address | |
| flags | flags for the operation | |
| out_data | return location for the public key data, in binary form. | [out][transfer full] | 
| out_data_size | return location to store the  | [out] | 
| cancellable | optional GCancellable object, or  | |
| error | return location for a GError, or  | 
Since: 3.50
gboolean camel_gpg_context_get_public_key_info_sync (CamelGpgContext *context,const gchar *keyid,guint32 flags,GSList **out_infos,GCancellable *cancellable,GError **error);
Receives information about a key keyid
.
The keyid
 can be either key ID or an email address.
The flags
 argument is currently unused and should be set to 0.
Free the returned out_infos
 with g_slist_free_full (infos, camel_gpg_key_info_free);
when no longer needed.
| context | ||
| keyid | a key ID or an email address | |
| flags | flags for the operation | |
| out_infos | an out parameter to get GSList of CamelGpgKeyInfo structures. | [out callee-allocates][transfer full][element-type CamelGpgKeyInfo] | 
| cancellable | optional GCancellable object, or  | |
| error | return location for a GError, or  | 
Since: 3.50
gboolean camel_gpg_context_get_key_data_info_sync (CamelGpgContext *context,const guint8 *data,gsize data_size,guint32 flags,GSList **out_infos,GCancellable *cancellable,GError **error);
Receives information about a key stored in data
 of size data_size
.
The flags
 argument is currently unused and should be set to 0.
Free the returned out_infos
 with g_slist_free_full (infos, camel_gpg_key_info_free);
when no longer needed.
| context | ||
| data | the public key data | |
| data_size | the  | |
| flags | flags for the operation | |
| out_infos | an out parameter to get GSList of CamelGpgKeyInfo structures. | [out callee-allocates][transfer full][element-type CamelGpgKeyInfo] | 
| cancellable | optional GCancellable object, or  | |
| error | return location for a GError, or  | 
Since: 3.50
gboolean camel_gpg_context_set_key_trust_sync (CamelGpgContext *context,const gchar *keyid,CamelGpgTrust trust,GCancellable *cancellable,GError **error);
Sets trust
 level on the key keyid
.
The keyid
 can be either key ID or an email address.
| context | ||
| keyid | a key ID or an email address | |
| trust | a CamelGpgTrust to set | |
| cancellable | optional GCancellable object, or  | |
| error | return location for a GError, or  | 
Since: 3.50
gboolean camel_gpg_context_import_key_sync (CamelGpgContext *context,const guint8 *data,gsize data_size,guint32 flags,GCancellable *cancellable,GError **error);
Imports a (public) key provided in a binary form stored in the data
of size data_size
.
| context | ||
| data | the public key data | |
| data_size | the  | |
| flags | bit-or of CamelPgpImportFlags, flags for the operation | |
| cancellable | optional GCancellable object, or  | |
| error | return location for a GError, or  | 
Since: 3.50