notmuch/util
Daniel Kahn Gillmor ab0ae8b1c0 util/crypto: _n_m_crypto_potential_payload returns whether part is the payload
Our _notmuch_message_crypto_potential_payload implementation could
only return a failure if bad arguments were passed to it.  It is an
internal function, so if that happens it's an entirely internal bug
for notmuch.

It will be more useful for this function to return whether or not the
part is in fact a cryptographic payload, so we dispense with the
status return.

If some future change suggests adding a status return back, there are
only a handful of call sites, and no pressure to retain a stable API,
so it could be changed easily. But for now, go with the simpler
function.

We will use this return value in future patches, to make different
decisions based on whether a part is the cryptographic payload or not.
But for now, we just leave the places where it gets invoked marked
with (void) to show that the result is ignored.

Signed-off-by: Daniel Kahn Gillmor <dkg@fifthhorseman.net>
2019-09-01 08:38:11 -03:00
..
crypto.c util/crypto: _n_m_crypto_potential_payload returns whether part is the payload 2019-09-01 08:38:11 -03:00
crypto.h util/crypto: _n_m_crypto_potential_payload returns whether part is the payload 2019-09-01 08:38:11 -03:00
error_util.c cppcheck: call va_end in _internal_error 2017-08-30 07:12:13 -03:00
error_util.h util: run uncrustify 2019-06-14 07:41:27 -03:00
gmime-extra.c util: run uncrustify 2019-06-14 07:41:27 -03:00
gmime-extra.h util: run uncrustify 2019-06-14 07:41:27 -03:00
hex-escape.c util: run uncrustify 2019-06-14 07:41:27 -03:00
hex-escape.h util: run uncrustify 2019-06-14 07:41:27 -03:00
Makefile xutil.c: remove duplicate copies, create new library libutil.a to contain xutil. 2011-10-30 23:09:49 -03:00
Makefile.local repair: set up codebase for repair functionality 2019-09-01 08:20:25 -03:00
repair.c repair: set up codebase for repair functionality 2019-09-01 08:20:25 -03:00
repair.h repair: set up codebase for repair functionality 2019-09-01 08:20:25 -03:00
string-util.c util: run uncrustify 2019-06-14 07:41:27 -03:00
string-util.h util: run uncrustify 2019-06-14 07:41:27 -03:00
talloc-extra.c util: add talloc-extra.[ch] 2012-12-30 21:12:11 -04:00
talloc-extra.h util: make remaining headers includable from C++ 2019-03-11 22:26:50 -03:00
unicode-util.c util: run uncrustify 2019-06-14 07:41:27 -03:00
unicode-util.h util: add unicode_word_utf8 2019-05-25 06:51:12 -03:00
util.c util: run uncrustify 2019-06-14 07:41:27 -03:00
util.h fix typos 2018-01-04 20:35:58 -04:00
xutil.c util: run uncrustify 2019-06-14 07:41:27 -03:00
xutil.h util: make remaining headers includable from C++ 2019-03-11 22:26:50 -03:00
zlib-extra.c util: run uncrustify 2019-06-14 07:41:27 -03:00
zlib-extra.h util: make remaining headers includable from C++ 2019-03-11 22:26:50 -03:00