Page Menu
Home
GnuPG
Search
Configure Global Search
Log In
Files
F34601987
D607.id.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Size
2 KB
Subscribers
None
D607.id.diff
View Options
diff --git a/NEWS b/NEWS
--- a/NEWS
+++ b/NEWS
@@ -15,21 +15,25 @@
* New function Context::generateRandomValue to get a cryptographically
strong unsigned integer random value. [T6694]
+ * New flag to re-encrypt OpenPGP data (requires GnuPG 2.5.1). [D607]
+
* Removed the TrustItem listing functionality which used GpgME's trustlist
feature which worked only for a short period in 2003. [T4834]
* Interface changes relative to the 1.24 branch of gpgme:
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- Context::RandomMode NEW.
- Context::generateRandomBytes NEW.
- Context::generateRandomValue NEW.
- RandomBytesResult NEW.
- RandomValueResult NEW.
- Context::startTrustItemListing REMOVED.
- Context::nextTrustItem REMOVED.
- Context::endTrustItemListing REMOVED.
- EventLoopInteractor::nextTrustItemEvent REMOVED.
- TrustItem REMOVED.
+ Context::RandomMode NEW.
+ Context::generateRandomBytes NEW.
+ Context::generateRandomValue NEW.
+ Context::EncryptionFlags::AddRecipient NEW.
+ Context::EncryptionFlags::ChangeRecipient NEW.
+ RandomBytesResult NEW.
+ RandomValueResult NEW.
+ Context::startTrustItemListing REMOVED.
+ Context::nextTrustItem REMOVED.
+ Context::endTrustItemListing REMOVED.
+ EventLoopInteractor::nextTrustItemEvent REMOVED.
+ TrustItem REMOVED.
Noteworthy changes in earlier versions can be found in the NEWS file of
diff --git a/src/context.h b/src/context.h
--- a/src/context.h
+++ b/src/context.h
@@ -469,7 +469,9 @@
EncryptWrap = 128,
WantAddress = 256,
EncryptArchive = 512,
- EncryptFile = 1024
+ EncryptFile = 1024,
+ AddRecipient = 2048,
+ ChangeRecipient = 4096,
};
EncryptionResult encrypt(const std::vector<Key> &recipients, const Data &plainText, Data &cipherText, EncryptionFlags flags);
GpgME::Error encryptSymmetrically(const Data &plainText, Data &cipherText);
diff --git a/src/context.cpp b/src/context.cpp
--- a/src/context.cpp
+++ b/src/context.cpp
@@ -1354,6 +1354,12 @@
if (flags & Context::EncryptFile) {
result |= GPGME_ENCRYPT_FILE;
}
+ if (flags & Context::AddRecipient) {
+ result |= GPGME_ENCRYPT_ADD_RECP;
+ }
+ if (flags & Context::ChangeRecipient) {
+ result |= GPGME_ENCRYPT_CHG_RECP;
+ }
return static_cast<gpgme_encrypt_flags_t>(result);
}
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sat, Jan 17, 4:24 PM (10 h, 14 m)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
2c/1f/5d6586010e308514a796a6ade1c4
Attached To
D607: Add missing Context::EncryptionFlags
Event Timeline
Log In to Comment