[gs-commits] mupdf 1.16.1.48 handle cleared signatures in mutool sign.
[email protected] (Sebastian Rasmussen) Mon, 30 Sep 2019 12:19:13 +0000 (UTC)
| Newsgroups | gmane.comp.printing.ghostscript.cvs |
|---|---|
| Message-ID | <[email protected]> |
commit 9db2d26c71b8502a0ff06c4bb543c393a70bc23d Author: Sebastian Rasmussen <[email protected]> Date: Mon Sep 30 13:20:24 2019 +0200 handle cleared signatures in mutool sign. diff --git a/source/tools/pdfsign.c b/source/tools/pdfsign.c index d0a7fec..7703d6d 100644 --- a/source/tools/pdfsign.c +++ b/source/tools/pdfsign.c @@ -42,6 +42,12 @@ static void verify_signature(fz_context *ctx, pdf_document *doc, pdf_obj *signat printf("verifying signature %d\n", pdf_to_num(ctx, signature)); + if (!pdf_signature_is_signed(ctx, doc, signature)) + { + printf(" Signature is not signed\n"); + return; + } + pdf_signature_designated_name(ctx, doc, signature, name, sizeof name); printf(" Designated name: %s\n", name); http://git.ghostscript.com/?p=mupdf.git;a=commit;h=9db2d26c71b8502a0ff06c4bb543c393a70bc23d -- MuPDF library Artifex Software, Inc.