Cpp: Expose new data_identify values
authorAndre Heinecke <aheinecke@intevation.de>
Mon, 27 Jun 2016 13:50:01 +0000 (15:50 +0200)
committerAndre Heinecke <aheinecke@intevation.de>
Mon, 27 Jun 2016 13:50:01 +0000 (15:50 +0200)
* 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
lang/cpp/src/data.h

index bf9a629..af1c479 100644 (file)
@@ -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;
 }
index efb1e79..d5e54aa 100644 (file)
@@ -92,7 +92,9 @@ public:
         CMSEncrypted,
         CMSOther,
         X509Cert,
-        PKCS12
+        PKCS12,
+        PGPEncrypted,
+        PGPSignature,
     };
     Type type() const;