Page MenuHome GnuPG

D607.id.diff
No OneTemporary

D607.id.diff

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

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

Event Timeline