diff options
author | Tor Andersson <tor.andersson@artifex.com> | 2017-03-16 11:50:41 +0100 |
---|---|---|
committer | Tor Andersson <tor.andersson@artifex.com> | 2017-03-21 22:28:02 +0100 |
commit | 86d07c5bd8cbd0ddae3b5fe42cf0410295296748 (patch) | |
tree | 3236232b555ef9f71e9545c51a9107767de75b98 /source/pdf/pdf-pkcs7.c | |
parent | 87b0a4d253ab1549b351389f658238fe32a28da1 (diff) | |
download | mupdf-86d07c5bd8cbd0ddae3b5fe42cf0410295296748.tar.xz |
Replace fontdump, bin2hex and cquote with one tool: hexdump.
Still need specialty tools for namedump and cmapdump.
Diffstat (limited to 'source/pdf/pdf-pkcs7.c')
-rw-r--r-- | source/pdf/pdf-pkcs7.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/source/pdf/pdf-pkcs7.c b/source/pdf/pdf-pkcs7.c index b2139146..ae5b75fa 100644 --- a/source/pdf/pdf-pkcs7.c +++ b/source/pdf/pdf-pkcs7.c @@ -256,10 +256,7 @@ exit: return res; } -static unsigned char adobe_ca[] = -{ #include "gen_adobe_ca.h" -}; static int verify_sig(char *sig, int sig_len, char *file, int (*byte_range)[2], int byte_range_len, char *ebuf, int ebufsize) { @@ -292,7 +289,7 @@ static int verify_sig(char *sig, int sig_len, char *file, int (*byte_range)[2], BIO_set_segments(bsegs, byte_range, byte_range_len); /* Find the certificates in the pk7 file */ - bcert = BIO_new_mem_buf(adobe_ca, sizeof(adobe_ca)); + bcert = BIO_new_mem_buf((void*)fz_resources_certs_AdobeCA_p7c, fz_resources_certs_AdobeCA_p7c_size); pk7cert = d2i_PKCS7_bio(bcert, NULL); if (pk7cert == NULL) goto exit; |