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.
This commit is contained in:
Andre Heinecke 2016-06-27 15:50:01 +02:00
parent 82d484c852
commit 15fc5c34c8
2 changed files with 5 additions and 1 deletions

View 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;
}

View File

@ -92,7 +92,9 @@ public:
CMSEncrypted,
CMSOther,
X509Cert,
PKCS12
PKCS12,
PGPEncrypted,
PGPSignature,
};
Type type() const;