CamelGpgContext

CamelGpgContext

Functions

Properties

gboolean always-trust Read / Write / Construct
gboolean locate-keys Read / Write / Construct
gboolean prefer-inline Read / Write / Construct

Object Hierarchy

    GObject
    ╰── CamelCipherContext
        ╰── CamelGpgContext

Description

Functions

camel_gpg_context_new ()

CamelCipherContext *
camel_gpg_context_new (CamelSession *session);

Creates a new gpg cipher context object.

Parameters

session

session

 

Returns

a new gpg cipher context object.


camel_gpg_context_get_always_trust ()

gboolean
camel_gpg_context_get_always_trust (CamelGpgContext *context);

Parameters

context

a CamelGpgContext

 

Since: 2.32


camel_gpg_context_set_always_trust ()

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.

Parameters

context

gpg context

 

always_trust

always trust flag

 

camel_gpg_context_get_prefer_inline ()

gboolean
camel_gpg_context_get_prefer_inline (CamelGpgContext *context);

Parameters

context

a CamelGpgContext

 

Returns

Whether prefer inline sign/encrypt (TRUE), or as multiparts (FALSE)

Since: 3.20


camel_gpg_context_set_prefer_inline ()

void
camel_gpg_context_set_prefer_inline (CamelGpgContext *context,
                                     gboolean prefer_inline);

Sets the prefer_inline flag on the gpg context.

Parameters

context

gpg context

 

prefer_inline

whether prefer inline sign/encrypt

 

Since: 3.20


camel_gpg_context_get_locate_keys ()

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.

Parameters

context

a CamelGpgContext

 

Returns

whether gpg can locate keys using Web Key Directory (WKD) lookup when encrypting messages.

Since: 3.46


camel_gpg_context_set_locate_keys ()

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.

Parameters

context

gpg context

 

locate_keys

value to set

 

Since: 3.46

Property Details

The “always-trust” property

  “always-trust”             gboolean

Owner: CamelGpgContext

Flags: Read / Write / Construct

Default value: FALSE


The “locate-keys” property

  “locate-keys”              gboolean

Owner: CamelGpgContext

Flags: Read / Write / Construct

Default value: TRUE


The “prefer-inline” property

  “prefer-inline”            gboolean

Owner: CamelGpgContext

Flags: Read / Write / Construct

Default value: FALSE