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:
parent
82d484c852
commit
15fc5c34c8
@ -178,6 +178,8 @@ GpgME::Data::Type GpgME::Data::type() const
|
|||||||
case GPGME_DATA_TYPE_CMS_OTHER: return CMSOther;
|
case GPGME_DATA_TYPE_CMS_OTHER: return CMSOther;
|
||||||
case GPGME_DATA_TYPE_X509_CERT: return X509Cert;
|
case GPGME_DATA_TYPE_X509_CERT: return X509Cert;
|
||||||
case GPGME_DATA_TYPE_PKCS12: return PKCS12;
|
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;
|
return Invalid;
|
||||||
}
|
}
|
||||||
|
@ -92,7 +92,9 @@ public:
|
|||||||
CMSEncrypted,
|
CMSEncrypted,
|
||||||
CMSOther,
|
CMSOther,
|
||||||
X509Cert,
|
X509Cert,
|
||||||
PKCS12
|
PKCS12,
|
||||||
|
PGPEncrypted,
|
||||||
|
PGPSignature,
|
||||||
};
|
};
|
||||||
Type type() const;
|
Type type() const;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user