aboutsummaryrefslogtreecommitdiffstats
path: root/gpgme/gpgme.h
diff options
context:
space:
mode:
Diffstat (limited to 'gpgme/gpgme.h')
-rw-r--r--gpgme/gpgme.h16
1 files changed, 16 insertions, 0 deletions
diff --git a/gpgme/gpgme.h b/gpgme/gpgme.h
index 65615645..079b88ab 100644
--- a/gpgme/gpgme.h
+++ b/gpgme/gpgme.h
@@ -112,6 +112,16 @@ typedef enum
}
GpgmeDataType;
+/* The possible encoding mode of GpgmeData objects. */
+typedef enum
+ {
+ GPGME_DATA_ENCODING_NONE = 0, /* i.e. not specified */
+ GPGME_DATA_ENCODING_BINARY = 1,
+ GPGME_DATA_ENCODING_BASE64 = 2,
+ GPGME_DATA_ENCODING_ARMOR = 3 /* Either PEM or OpenPGP Armor */
+ }
+GpgmeDataEncoding;
+
/* The possible signature stati. */
typedef enum
{
@@ -374,6 +384,12 @@ char *gpgme_data_release_and_get_mem (GpgmeData dh, size_t *r_len);
/* Return the type of the data buffer DH. */
GpgmeDataType gpgme_data_get_type (GpgmeData dh);
+/* Return the encoding attribute of the data buffer DH */
+GpgmeDataEncoding gpgme_data_get_encoding (GpgmeData dh);
+
+/* Set the encoding attribute of data buffer DH to ENC */
+GpgmeError gpgme_data_set_encoding (GpgmeData dh, GpgmeDataEncoding enc);
+
/* Reset the read pointer in DH. */
GpgmeError gpgme_data_rewind (GpgmeData dh);