]> git.cworth.org Git - obsolete/notmuch-old/commit
cli: crypto: abstract gpg context creation for clarity
authorJani Nikula <jani@nikula.org>
Sat, 30 Mar 2013 13:53:15 +0000 (15:53 +0200)
committerDavid Bremner <bremner@unb.ca>
Mon, 1 Apr 2013 19:39:22 +0000 (15:39 -0400)
commit8c6fd797952d38e03d46fd6b57bd6a1a63474de8
tree8bc8b67eed59941e0a76de4709839b4d6551eb6e
parentc933e54227ccd9d73bac814cc0cd9c2bbc13e91c
cli: crypto: abstract gpg context creation for clarity

The code filled with #ifdef GMIME_ATLEAST_26 is difficult to
read. Abstract gpg context creation into a function, with separate
implementations for GMime 2.4 and 2.6, to clarify the code.

There should be no functional changes.
crypto.c