unofficial mirror of notmuch@notmuchmail.org
 help / color / mirror / code / Atom feed
blob 70fc8ef4373daf28df9c4c8ff93bc023e0d361b8 780 bytes (raw)
name: util/crypto.h 	 # note: path name is non-authoritative(*)

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
 
#ifndef _CRYPTO_H
#define _CRYPTO_H

#include "notmuch.h"
#include <gmime/gmime.h>
/* This is automatically included only since gmime 2.6.10 */
#include <gmime/gmime-pkcs7-context.h>

typedef struct _notmuch_crypto {
    GMimeCryptoContext* gpgctx;
    GMimeCryptoContext* pkcs7ctx;
    notmuch_bool_t verify;
    notmuch_bool_t decrypt;
    char *gpg_path;
} _notmuch_crypto_t;


notmuch_status_t
_notmuch_crypto_get_gmime_ctx_for_protocol (_notmuch_crypto_t *crypto,
					    const char *protocol,
					    GMimeCryptoContext **ctx);

notmuch_status_t
_notmuch_crypto_set_gpg_path (_notmuch_crypto_t *crypto, const char *gpg_path);

const char *
_notmuch_crypto_get_gpg_path (const _notmuch_crypto_t *crypto);

void
_notmuch_crypto_cleanup (_notmuch_crypto_t *crypto);


#endif

debug log:

solving 70fc8ef ...
found 70fc8ef in https://yhetil.org/notmuch/1454272801-23623-5-git-send-email-dkg@fifthhorseman.net/ ||
	https://yhetil.org/notmuch/1467970047-8013-5-git-send-email-dkg@fifthhorseman.net/
found 7cb0a39 in https://yhetil.org/notmuch/1454272801-23623-4-git-send-email-dkg@fifthhorseman.net/ ||
	https://yhetil.org/notmuch/1467970047-8013-4-git-send-email-dkg@fifthhorseman.net/
found d4a51e8 in https://yhetil.org/notmuch/1467970047-8013-3-git-send-email-dkg@fifthhorseman.net/ ||
	https://yhetil.org/notmuch/1454272801-23623-3-git-send-email-dkg@fifthhorseman.net/

applying [1/3] https://yhetil.org/notmuch/1467970047-8013-3-git-send-email-dkg@fifthhorseman.net/
diff --git a/util/crypto.h b/util/crypto.h
new file mode 100644
index 0000000..d4a51e8

Checking patch util/crypto.h...
Applied patch util/crypto.h cleanly.

skipping https://yhetil.org/notmuch/1454272801-23623-3-git-send-email-dkg@fifthhorseman.net/ for d4a51e8
index at:
100644 d4a51e88ba782a03364eb5f5afa5362a295ebea3	util/crypto.h

applying [2/3] https://yhetil.org/notmuch/1454272801-23623-4-git-send-email-dkg@fifthhorseman.net/
diff --git a/util/crypto.h b/util/crypto.h
index d4a51e8..7cb0a39 100644

Checking patch util/crypto.h...
Applied patch util/crypto.h cleanly.

skipping https://yhetil.org/notmuch/1467970047-8013-4-git-send-email-dkg@fifthhorseman.net/ for 7cb0a39
index at:
100644 7cb0a39270dad1cac1b7ec7833b82011cb70dd3d	util/crypto.h

applying [3/3] https://yhetil.org/notmuch/1454272801-23623-5-git-send-email-dkg@fifthhorseman.net/
diff --git a/util/crypto.h b/util/crypto.h
index 7cb0a39..70fc8ef 100644

Checking patch util/crypto.h...
Applied patch util/crypto.h cleanly.

skipping https://yhetil.org/notmuch/1467970047-8013-5-git-send-email-dkg@fifthhorseman.net/ for 70fc8ef
index at:
100644 70fc8ef4373daf28df9c4c8ff93bc023e0d361b8	util/crypto.h

(*) Git path names are given by the tree(s) the blob belongs to.
    Blobs themselves have no identifier aside from the hash of its contents.^

Code repositories for project(s) associated with this public inbox

	https://yhetil.org/notmuch.git/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).