diff --git a/lang/cpp/src/context.cpp b/lang/cpp/src/context.cpp index 9e31b6a9..20d827ec 100644 --- a/lang/cpp/src/context.cpp +++ b/lang/cpp/src/context.cpp @@ -1519,6 +1519,7 @@ static const unsigned long supported_features = 0 ; static const unsigned long supported_features2 = 0 + | GpgME::BinaryAndFineGrainedIdentify ; bool GpgME::hasFeature(unsigned long features) diff --git a/lang/cpp/src/global.h b/lang/cpp/src/global.h index 9be5202c..508e1d76 100644 --- a/lang/cpp/src/global.h +++ b/lang/cpp/src/global.h @@ -131,8 +131,10 @@ enum Feature { FeatureMaxValue = 0x80000000 }; enum Feature2 { + BinaryAndFineGrainedIdentify = 0x00000001, // gpgme >= 1.7.0 Feature2MaxValue = 0x80000000 }; + // use hasFeature( unsigned long, unsigned long ) instead GPGMEPP_DEPRECATED_EXPORT bool hasFeature(unsigned long feature); GPGMEPP_EXPORT bool hasFeature(unsigned long feature, unsigned long feature2);