ports/textproc/mupdf/patches/patch-source_helpers_pkcs7_pkcs7-openssl_c

26 lines
730 B
Text
Raw Normal View History

2023-08-16 22:26:55 +00:00
- avoid (harmless) compiler warning about incompatible function pointer types
- add default_paths to STORE for checking signatures (aka /etc/ssl/cert.pem)
Index: source/helpers/pkcs7/pkcs7-openssl.c
--- source/helpers/pkcs7/pkcs7-openssl.c.orig
+++ source/helpers/pkcs7/pkcs7-openssl.c
@@ -203,7 +203,7 @@ static int stream_free(BIO *b)
return 1;
}
-static long stream_callback_ctrl(BIO *b, int cmd, bio_info_cb *fp)
+static long stream_callback_ctrl(BIO *b, int cmd, BIO_info_cb *fp)
{
return 1;
}
2023-09-08 05:21:37 +00:00
@@ -518,6 +518,9 @@ check_certificate(fz_context *ctx, pdf_pkcs7_verifier
2023-08-16 22:26:55 +00:00
X509_STORE_add_cert(st, c);
}
}
+
+ /* Add default paths */
+ X509_STORE_set_default_paths(st);
res = pk7_verify_cert(st, pk7sig);