Changeset View
Changeset View
Standalone View
Standalone View
src/context.cpp
| Show First 20 Lines • Show All 1,348 Lines • ▼ Show 20 Lines | if (flags & Context::WantAddress) { | ||||
| result |= GPGME_ENCRYPT_WANT_ADDRESS; | result |= GPGME_ENCRYPT_WANT_ADDRESS; | ||||
| } | } | ||||
| if (flags & Context::EncryptArchive) { | if (flags & Context::EncryptArchive) { | ||||
| result |= GPGME_ENCRYPT_ARCHIVE; | result |= GPGME_ENCRYPT_ARCHIVE; | ||||
| } | } | ||||
| if (flags & Context::EncryptFile) { | if (flags & Context::EncryptFile) { | ||||
| result |= GPGME_ENCRYPT_FILE; | 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); | return static_cast<gpgme_encrypt_flags_t>(result); | ||||
| } | } | ||||
| gpgme_key_t *Context::getKeysFromRecipients(const std::vector<Key> &recipients) | gpgme_key_t *Context::getKeysFromRecipients(const std::vector<Key> &recipients) | ||||
| { | { | ||||
| if (recipients.empty()) { | if (recipients.empty()) { | ||||
| return nullptr; | return nullptr; | ||||
| } | } | ||||
| ▲ Show 20 Lines • Show All 777 Lines • Show Last 20 Lines | |||||