[Pkg-gnupg-commit] [gpgme] 186/412: Cpp: Expose new data_identify values
Daniel Kahn Gillmor
dkg at fifthhorseman.net
Thu Sep 22 21:26:44 UTC 2016
This is an automated email from the git hooks/post-receive script.
dkg pushed a commit to branch master
in repository gpgme.
commit 15fc5c34c88ecbb61272705af60f7054b41c57f7
Author: Andre Heinecke <aheinecke at intevation.de>
Date: Mon Jun 27 15:50:01 2016 +0200
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 bf9a629..af1c479 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 efb1e79..d5e54aa 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;
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-gnupg/gpgme.git
More information about the Pkg-gnupg-commit
mailing list