From 15fc5c34c88ecbb61272705af60f7054b41c57f7 Mon Sep 17 00:00:00 2001 From: Andre Heinecke Date: Mon, 27 Jun 2016 15:50:01 +0200 Subject: [PATCH] Cpp: Expose new data_identify values * lang/cpp/src/data.cpp (GpgME::Data::type): Handle PGP Encrypted and Signature. * lang/cpp/src/data.h: Add values accordingly. --- lang/cpp/src/data.cpp | 2 ++ lang/cpp/src/data.h | 4 +++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/lang/cpp/src/data.cpp b/lang/cpp/src/data.cpp index bf9a629f..af1c479a 100644 --- a/lang/cpp/src/data.cpp +++ b/lang/cpp/src/data.cpp @@ -178,6 +178,8 @@ GpgME::Data::Type GpgME::Data::type() const case GPGME_DATA_TYPE_CMS_OTHER: return CMSOther; case GPGME_DATA_TYPE_X509_CERT: return X509Cert; case GPGME_DATA_TYPE_PKCS12: return PKCS12; + case GPGME_DATA_TYPE_PGP_ENCRYPTED: return PGPEncrypted; + case GPGME_DATA_TYPE_PGP_SIGNATURE: return PGPSignature; } return Invalid; } diff --git a/lang/cpp/src/data.h b/lang/cpp/src/data.h index efb1e790..d5e54aaa 100644 --- a/lang/cpp/src/data.h +++ b/lang/cpp/src/data.h @@ -92,7 +92,9 @@ public: CMSEncrypted, CMSOther, X509Cert, - PKCS12 + PKCS12, + PGPEncrypted, + PGPSignature, }; Type type() const;