mirror of
https://github.com/michaelrsweet/pdfio.git
synced 2025-12-24 05:56:25 +01:00
renamed the filename to testpdfio-pdfa-rc4.pdf and updated message clearly encryption allowed on pdf/a files
This commit is contained in:
@@ -208,8 +208,8 @@ do_pdfa_tests(void)
|
|||||||
if (create_pdfa_test_file("testpdfio-pdfa-4.pdf", "PDF/A-4")) status = 1;
|
if (create_pdfa_test_file("testpdfio-pdfa-4.pdf", "PDF/A-4")) status = 1;
|
||||||
|
|
||||||
// Test that encryption is not allowed for PDF/A files
|
// Test that encryption is not allowed for PDF/A files
|
||||||
testBegin("Block encryption for PDF/A file");
|
testBegin("pdfioFileCreate(testpdfio-pdfa-rc4.pdf)");
|
||||||
if ((fail_pdf = pdfioFileCreate("testpdfio-pdfa-fail.pdf", "PDF/A-1b", &media_box, NULL, (pdfio_error_cb_t)error_cb, &error)) == NULL)
|
if ((fail_pdf = pdfioFileCreate("testpdfio-pdfa-rc4.pdf", "PDF/A-1b", &media_box, NULL, (pdfio_error_cb_t)error_cb, &error)) == NULL)
|
||||||
{
|
{
|
||||||
testEndMessage(false, "pdfioFileCreate failed for encryption test.");
|
testEndMessage(false, "pdfioFileCreate failed for encryption test.");
|
||||||
return (1);
|
return (1);
|
||||||
@@ -217,7 +217,7 @@ do_pdfa_tests(void)
|
|||||||
|
|
||||||
if (pdfioFileSetPermissions(fail_pdf, PDFIO_PERMISSION_ALL, PDFIO_ENCRYPTION_RC4_128, "owner", "user"))
|
if (pdfioFileSetPermissions(fail_pdf, PDFIO_PERMISSION_ALL, PDFIO_ENCRYPTION_RC4_128, "owner", "user"))
|
||||||
{
|
{
|
||||||
testEndMessage(false, "pdfioFileSetPermissions succeeded but should have failed.");
|
testEndMessage(false, "encryption allowed on PDF/A file");
|
||||||
status = 1;
|
status = 1;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
|||||||
Reference in New Issue
Block a user