diff options
| author | Daniel Kahn Gillmor <dkg@fifthhorseman.net> | 2017-10-17 15:09:56 -0400 |
|---|---|---|
| committer | David Bremner <david@tethera.net> | 2017-10-20 07:58:20 -0300 |
| commit | a18bbf7f155369f251b0513788eade23be3555d5 (patch) | |
| tree | ee52bbde803913e42ead01ffcd5d0e6337ddab99 /lib/database.cc | |
| parent | 197d67959bf459fc0f1f63a202d162a569535bf3 (diff) | |
crypto: make shared crypto code behave library-like
If we're going to reuse the crypto code across both the library and
the client, then it needs to report error states properly and not
write to stderr.
Diffstat (limited to 'lib/database.cc')
| -rw-r--r-- | lib/database.cc | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/database.cc b/lib/database.cc index 35c66939..02444e09 100644 --- a/lib/database.cc +++ b/lib/database.cc @@ -413,6 +413,12 @@ notmuch_status_to_string (notmuch_status_t status) return "Operation requires a database upgrade"; case NOTMUCH_STATUS_PATH_ERROR: return "Path supplied is illegal for this function"; + case NOTMUCH_STATUS_MALFORMED_CRYPTO_PROTOCOL: + return "Crypto protocol missing, malformed, or unintelligible"; + case NOTMUCH_STATUS_FAILED_CRYPTO_CONTEXT_CREATION: + return "Crypto engine initialization failure"; + case NOTMUCH_STATUS_UNKNOWN_CRYPTO_PROTOCOL: + return "Unknown crypto protocol"; default: case NOTMUCH_STATUS_LAST_STATUS: return "Unknown error status value"; |
