Top | ![]() |
![]() |
![]() |
![]() |
ESourceOpenPGPESourceOpenPGP — ESource extension for OpenPGP settings |
gboolean | always-trust | Read / Write / Construct |
gboolean | encrypt-to-self | Read / Write / Construct |
gchar * | key-id | Read / Write / Construct |
gboolean | sign-by-default | Read / Write / Construct |
gchar * | signing-algorithm | Read / Write / Construct |
The ESourceOpenPGP extension tracks OpenPGP (RFC 4880) settings to be applied to outgoing mail messages.
Access the extension as follows:
#include <libedataserver/libedataserver.h> ESourceOpenPGP *extension; extension = e_source_get_extension (source, E_SOURCE_EXTENSION_OPENPGP);
gboolean
e_source_openpgp_get_always_trust (ESourceOpenPGP *extension
);
Returns whether to skip key validation and assume that used keys are always fully trusted.
Since 3.6
void e_source_openpgp_set_always_trust (ESourceOpenPGP *extension
,gboolean always_trust
);
Sets whether to skip key validation and assume that used keys are always fully trusted.
Since 3.6
gboolean
e_source_openpgp_get_encrypt_to_self (ESourceOpenPGP *extension
);
Returns whether to "encrypt-to-self" when sending encrypted messages.
Since 3.6
void e_source_openpgp_set_encrypt_to_self (ESourceOpenPGP *extension
,gboolean encrypt_to_self
);
Sets whether to "encrypt-to-self" when sending encrypted messages.
Since 3.6
const gchar *
e_source_openpgp_get_key_id (ESourceOpenPGP *extension
);
Returns the OpenPGP key ID used to sign and encrypt messages.
Since 3.6
gchar *
e_source_openpgp_dup_key_id (ESourceOpenPGP *extension
);
Thread-safe variation of e_source_openpgp_get_key_id()
.
Use this function when accessing extension
from multiple threads.
The returned string should be freed with g_free()
when no longer needed.
Since 3.6
void e_source_openpgp_set_key_id (ESourceOpenPGP *extension
,const gchar *key_id
);
Sets the OpenPGP key ID used to sign and encrypt messages.
The internal copy of key_id
is automatically stripped of leading and
trailing whitespace. If the resulting string is empty, NULL
is set
instead.
Since 3.6
const gchar *
e_source_openpgp_get_signing_algorithm
(ESourceOpenPGP *extension
);
Returns the name of the hash algorithm used to digitally sign outgoing messages.
Since 3.6
gchar *
e_source_openpgp_dup_signing_algorithm
(ESourceOpenPGP *extension
);
Thread-safe variation of e_source_openpgp_get_signing_algorithm()
.
Use this function when accessing extension
from multiple threads.
The returned string should be freed with g_free()
when no longer needed.
Since 3.6
void e_source_openpgp_set_signing_algorithm (ESourceOpenPGP *extension
,const gchar *signing_algorithm
);
Sets the name of the hash algorithm used to digitally sign outgoing messages.
The internal copy of signing_algorithm
is automatically stripped of
leading and trailing whitespace. If the resulting string is empty,
NULL
is set instead.
Since 3.6
gboolean
e_source_openpgp_get_sign_by_default (ESourceOpenPGP *extension
);
Returns whether to digitally sign outgoing messages by default using OpenPGP-compliant software such as GNU Privacy Guard (GnuPG).
Since 3.6
void e_source_openpgp_set_sign_by_default (ESourceOpenPGP *extension
,gboolean sign_by_default
);
Sets whether to digitally sign outgoing messages by default using OpenPGP-compliant software such as GNU Privacy Guard (GnuPG).
Since 3.6
struct ESourceOpenPGP;
Contains only private data that should be read and manipulated using the functions below.
Since 3.6
#define E_SOURCE_EXTENSION_OPENPGP "Pretty Good Privacy (OpenPGP)"
Pass this extension name to e_source_get_extension()
to access
ESourceOpenPGP. This is also used as a group name in key files.
Since 3.6
“always-trust”
property“always-trust” gboolean
Always trust keys in my keyring.
Flags: Read / Write / Construct
Default value: FALSE
“encrypt-to-self”
property“encrypt-to-self” gboolean
Always encrypt to myself.
Flags: Read / Write / Construct
Default value: TRUE
“key-id”
property“key-id” gchar *
PGP/GPG Key ID.
Flags: Read / Write / Construct
Default value: NULL
“sign-by-default”
property“sign-by-default” gboolean
Sign outgoing messages by default.
Flags: Read / Write / Construct
Default value: FALSE
“signing-algorithm”
property“signing-algorithm” gchar *
Hash algorithm used to sign messages.
Flags: Read / Write / Construct
Default value: NULL