summaryrefslogtreecommitdiffstats
path: root/g10/options.h
diff options
context:
space:
mode:
authorNIIBE Yutaka <gniibe@fsij.org>2023-07-25 05:02:26 +0200
committerNIIBE Yutaka <gniibe@fsij.org>2023-07-25 05:10:07 +0200
commit1ddd69935da629188dcf9215cd9e7a8f68b34a97 (patch)
tree3dd81fc60bf6b5ee9be63d1748f60afbb2df24d5 /g10/options.h
parentsm: Use estream for I/O. (diff)
downloadgnupg2-1ddd69935da629188dcf9215cd9e7a8f68b34a97.tar.xz
gnupg2-1ddd69935da629188dcf9215cd9e7a8f68b34a97.zip
gpg: Add parallelized filter for hashing.
* g10/options.h (COMPAT_PARALLELIZED): New. * g10/filter.h (md_thd_filter_context_t): New type. (md_thd_filter_set_md, md_thd_filter): New. * g10/gpg.c (compatibility_flags): Update to support COMPAT_PARALLELIZED. * g10/mdfilter.c (struct md_thd_filter_context): New. (lock_md, unlock_md, get_buffer_to_hash, put_buffer_to_recv): New. (get_buffer_to_fill, put_buffer_to_send, md_thread): New. (md_thd_filter, md_thd_filter_set_md): New. * g10/sign.c (sign_file): Add support for md_thd_filter. (sign_symencrypt_file): Likewise. -- GnuPG-bug-id: 6570 Signed-off-by: NIIBE Yutaka <gniibe@fsij.org>
Diffstat (limited to 'g10/options.h')
-rw-r--r--g10/options.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/g10/options.h b/g10/options.h
index 914c24849..327a6a06f 100644
--- a/g10/options.h
+++ b/g10/options.h
@@ -373,7 +373,9 @@ EXTERN_UNLESS_MAIN_MODULE int memory_debug_mode;
EXTERN_UNLESS_MAIN_MODULE int memory_stat_debug_mode;
/* Compatibility flags */
-/* #define COMPAT_FOO 1 */
+#define COMPAT_PARALLELIZED 1
+
+/* #define COMPAT_FOO 2 */
/* Compliance test macors. */