Top |
Types and Values
enum | GMimeOpenPGPData |
enum | GMimeOpenPGPState |
GMimeOpenPGPMarker | |
struct | GMimeFilterOpenPGP |
Description
A GMimeFilter for detecting OpenPGP markers and filtering out any content outside the bounds of said markers.
Functions
g_mime_filter_openpgp_new ()
GMimeFilter *
g_mime_filter_openpgp_new (void
);
Creates a new GMimeFilterOpenPGP filter.
Since: 3.2
g_mime_filter_openpgp_get_data_type ()
GMimeOpenPGPData
g_mime_filter_openpgp_get_data_type (GMimeFilterOpenPGP *openpgp
);
Gets the type of OpenPGP data that has been detected.
Since: 3.2
g_mime_filter_openpgp_get_begin_offset ()
gint64
g_mime_filter_openpgp_get_begin_offset
(GMimeFilterOpenPGP *openpgp
);
Gets the stream offset of the beginning of the OpenPGP data block, if any have been found.
Since: 3.2
g_mime_filter_openpgp_get_end_offset ()
gint64
g_mime_filter_openpgp_get_end_offset (GMimeFilterOpenPGP *openpgp
);
Gets the stream offset of the end of the OpenPGP data block, if any have been found.
Since: 3.2
Types and Values
enum GMimeOpenPGPData
The type of OpenPGP data found, if any.
enum GMimeOpenPGPState
The current state of the GMimeFilterOpenPGP filter.
Members
No OpenPGP markers have been found (yet). |
||
The "-----BEGIN PGP MESSAGE-----" marker has been found. |
||
The "-----END PGP MESSAGE-----" marker has been found. |
||
The "-----BEGIN PGP SIGNED MESSAGE-----" marker has been found. |
||
The "-----BEGIN PGP SIGNATURE-----" marker has been found. |
||
The "-----END PGP SIGNATURE-----" marker has been found. |
||
The "-----BEGIN PGP PUBLIC KEY BLOCK-----" marker has been found. |
||
The "-----END PGP PUBLIC KEY BLOCK-----" marker has been found. |
||
The "-----BEGIN PGP PRIVATE KEY BLOCK-----" marker has been found. |
||
The "-----END PGP PRIVATE KEY BLOCK-----" marker has been found. |
Since: 3.2
GMimeOpenPGPMarker
typedef struct { const char *marker; size_t len; GMimeOpenPGPState before; GMimeOpenPGPState after; gboolean is_end_marker; } GMimeOpenPGPMarker;
An OpenPGP marker for use with GMime's internal state machines used for detecting OpenPGP blocks.
Members
The OpenPGP marker. |
||
The length of the OpenPGP marker. |
||
GMimeOpenPGPState |
The GMimeOpenPGPState that the state machine must be in before encountering this marker. |
|
GMimeOpenPGPState |
The GMimeOpenPGPState that the state machine will transition into once this marker is found. |
|
|
Since: 3.2