aboutsummaryrefslogtreecommitdiff
path: root/crypto.c
diff options
context:
space:
mode:
authorDaniel Kahn Gillmor <dkg@fifthhorseman.net>2017-10-10 01:49:02 -0400
committerDavid Bremner <david@tethera.net>2017-10-12 22:11:25 -0300
commit88f2a72ef1dcfce149bbac776652ea04e564726d (patch)
tree2e763a78af3f93d8cacb8a174791c37472e0a05a /crypto.c
parent008a5e92eb157e2bb8622cb2fbf644deba5ba4b4 (diff)
crypto: rename notmuch_crypto_t to _notmuch_crypto_t
The notmuch_crypto_t struct isn't used externally, and we have no plans to explicitly export it. Prefix its name (and associated functions) with _ to make that intent clear.
Diffstat (limited to 'crypto.c')
-rw-r--r--crypto.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/crypto.c b/crypto.c
index 9c557d6e..9ae303d4 100644
--- a/crypto.c
+++ b/crypto.c
@@ -22,7 +22,7 @@
#if (GMIME_MAJOR_VERSION < 3)
/* Create a GPG context (GMime 2.6) */
static notmuch_crypto_context_t *
-create_gpg_context (notmuch_crypto_t *crypto)
+create_gpg_context (_notmuch_crypto_t *crypto)
{
notmuch_crypto_context_t *gpgctx;
@@ -45,7 +45,7 @@ create_gpg_context (notmuch_crypto_t *crypto)
/* Create a PKCS7 context (GMime 2.6) */
static notmuch_crypto_context_t *
-create_pkcs7_context (notmuch_crypto_t *crypto)
+create_pkcs7_context (_notmuch_crypto_t *crypto)
{
notmuch_crypto_context_t *pkcs7ctx;
@@ -67,7 +67,7 @@ create_pkcs7_context (notmuch_crypto_t *crypto)
}
static const struct {
const char *protocol;
- notmuch_crypto_context_t *(*get_context) (notmuch_crypto_t *crypto);
+ notmuch_crypto_context_t *(*get_context) (_notmuch_crypto_t *crypto);
} protocols[] = {
{
.protocol = "application/pgp-signature",
@@ -90,7 +90,7 @@ static const struct {
/* for the specified protocol return the context pointer (initializing
* if needed) */
notmuch_crypto_context_t *
-notmuch_crypto_get_context (notmuch_crypto_t *crypto, const char *protocol)
+_notmuch_crypto_get_context (_notmuch_crypto_t *crypto, const char *protocol)
{
notmuch_crypto_context_t *cryptoctx = NULL;
size_t i;
@@ -118,7 +118,7 @@ notmuch_crypto_get_context (notmuch_crypto_t *crypto, const char *protocol)
}
int
-notmuch_crypto_cleanup (notmuch_crypto_t *crypto)
+_notmuch_crypto_cleanup (_notmuch_crypto_t *crypto)
{
if (crypto->gpgctx) {
g_object_unref (crypto->gpgctx);
@@ -133,7 +133,7 @@ notmuch_crypto_cleanup (notmuch_crypto_t *crypto)
return 0;
}
#else
-int notmuch_crypto_cleanup (unused(notmuch_crypto_t *crypto))
+int _notmuch_crypto_cleanup (unused(_notmuch_crypto_t *crypto))
{
return 0;
}