GMimeGpgContext

GMimeGpgContext — GnuPG cipher contexts

Functions

Types and Values

Object Hierarchy

    GObject
    ╰── GMimeCipherContext
        ╰── GMimeGpgContext

Description

A GMimeGpgContext is a GMimeCipherContext that uses GnuPG to do all of the encryption and digital signatures.

Functions

g_mime_gpg_context_new ()

GMimeCipherContext *
g_mime_gpg_context_new (GMimeSession *session,
                        const char *path);

Creates a new gpg cipher context object.

Parameters

session

a GMimeSession

 

path

path to gpg binary

 

Returns

a new gpg cipher context object.


g_mime_gpg_context_get_always_trust ()

gboolean
g_mime_gpg_context_get_always_trust (GMimeGpgContext *ctx);

Gets the always_trust flag on the gpg context.

Parameters

ctx

a GMimeGpgContext

 

Returns

the always_trust flag on the gpg context.


g_mime_gpg_context_set_always_trust ()

void
g_mime_gpg_context_set_always_trust (GMimeGpgContext *ctx,
                                     gboolean always_trust);

Sets the always_trust flag on the gpg context which is used for encryption.

Parameters

ctx

a GMimeGpgContext

 

always_trust

always trust flag

 

Types and Values

struct GMimeGpgContext

struct GMimeGpgContext;

A GnuPG cipher context.

Members

See Also

GMimeCipherContext