[PATCH 2/9] Add a lazily-initialized crypto context to notmuch_database_t

David Bremner david at tethera.net
Fri Dec 11 06:03:05 PST 2015


Daniel Kahn Gillmor <dkg at fifthhorseman.net> writes:

> This is in large part a duplicate of parts of crypto.c, but that code
> is in the client (outside the library), and we don't want to entangle
> the libgmime API with the libnotmuch API.
>
> I welcome better proposals for how to share this code explicitly
> between the library and the client.

Maybe I miss something obvious, but util/libutil.a is exactly there for
sharing code between the library and the client.

perhaps something like "gmime-extra.c" to go with {talloc,zlib}-extra.c

I didn't look at the code yet, just the commentary.

d


More information about the notmuch mailing list