mirror of
https://github.com/michaelrsweet/pdfio.git
synced 2025-10-08 03:34:51 +02: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;
|
||||
|
||||
// Test that encryption is not allowed for PDF/A files
|
||||
testBegin("Block encryption for PDF/A file");
|
||||
if ((fail_pdf = pdfioFileCreate("testpdfio-pdfa-fail.pdf", "PDF/A-1b", &media_box, NULL, (pdfio_error_cb_t)error_cb, &error)) == NULL)
|
||||
testBegin("pdfioFileCreate(testpdfio-pdfa-rc4.pdf)");
|
||||
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.");
|
||||
return (1);
|
||||
@@ -217,7 +217,7 @@ do_pdfa_tests(void)
|
||||
|
||||
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;
|
||||
}
|
||||
else
|
||||
|
Reference in New Issue
Block a user