Albert Astals Cid
3e86c9a56c
Fix crash with some broken PDF files
5 years ago
l10n daemon script
f16b767057
SVN_SILENT made messages (.desktop file) - always resolve ours
...
In case of conflict in i18n, keep the version of the branch "ours"
To resolve a particular conflict, "git checkout --ours path/to/file.desktop"
5 years ago
Albert Astals Cid
110ccd619c
Sign: Make 'start over' be actually start over and not cancel
5 years ago
Albert Astals Cid
bb97810957
Only show certificates that are still valid when signing
...
No point in letting people sign a file with a certificate that's no
longer valid
5 years ago
Albert Astals Cid
6cf0ca2194
Merge remote-tracking branch 'origin/release/20.12'
5 years ago
Albert Astals Cid
54209751b5
pdf: Fix small memory leak
5 years ago
Albert Astals Cid
579ce171c3
make the (C) line a less bad
5 years ago
Albert Astals Cid
d89b1dfb81
signining: Reference to the manual when there's no certificates available
5 years ago
Albert Astals Cid
70da46d175
Add a section to the manual about adding digital signatures
5 years ago
Albert Astals Cid
bfc7383d46
pdf signining: Change label to more accurately reflect what the list is about
5 years ago
Albert Astals Cid
b642ba5863
Add KUIT marker for "Start Over"
5 years ago
Albert Astals Cid
ac3a593eb4
PDF Signatures: Double check we have a capable poppler
...
In addition to being new enough it needs to have NSS support built in
5 years ago
Albert Astals Cid
f0aac79ad3
Reword for the "signature too small" text
5 years ago
Albert Astals Cid
0f4be27338
Use the action icon instead of the mimetype icon
5 years ago
Albert Astals Cid
7bbdf9e20a
Don't include the moc, makes clang-tidy happier
5 years ago
Albert Astals Cid
33ccbc0449
Signing: Don't say that there are no certificates if the user cancels...
...
...entering the pwd for the certificate store
Also Move CertificateStoreImpl to PopplerCertificateStore, since
PopplerCertificateStore was declared but never defined and use it
in CertificateTools to get the certificate list instead of calling
the poppler classes directly
5 years ago
Albert Astals Cid
b07b3209fb
Move the cert code inside CertificateTools
...
Makes more sense
5 years ago
Albert Astals Cid
242718a9a2
Only ask for certificate password if really needed
5 years ago
Albert Astals Cid
49f784ecf9
When signing save to a new file, not over the current one
5 years ago
Albert Astals Cid
5d15203682
Signature: We don't need to pass the page number anymore
5 years ago
Albert Astals Cid
be50f03acf
Pass the pageview to the signature annotator
...
This way we don't use nullptr as part for the dialogs, it's always a bit
ugly to do so
5 years ago
Albert Astals Cid
bd00acb5c4
Warn if the signature we're trying to create is too small
5 years ago
Albert Astals Cid
9728d8b426
We don't do getFoo in Okular API
5 years ago
Albert Astals Cid
a4030a20f5
Properly cancel the signature mode if we don't add one
5 years ago
Albert Astals Cid
6325a4fe0b
Make sure you have no unsaved changes before saving
5 years ago
Albert Astals Cid
a5df71a79a
Sign -> Digitally Sign
...
And remove from toolbar, it's not that important it should be there
Also increase version
5 years ago
Albert Astals Cid
18ef1349f1
Improvements to adding digital signatures
...
* Don't make WidgetAnnotation know about signatures stuff, widget
annotations are for multiple things
* Don't create an "empty" widget annotation and then call sign on it
(which is wrong because widget annotations can be multiple things),
just say sign the document with this data (cert, l&f, etc)
* Remove the "management" functionality from CertificateTools it was
only visual, i.e. it didn't really add/remove certificates
* Ask for the NSS password (if needed)
5 years ago
Albert Astals Cid
43900fe56e
Warn the user if there's no availabe signing certificates
5 years ago
Albert Astals Cid
c02f98a60f
Mark method as override
5 years ago
Albert Astals Cid
2646058111
Adapt to poppler API change
...
and fix a leak meanwhile ^_^
5 years ago
Albert Astals Cid
b09e23f6ab
Run clang-format
...
Attempting to fix the whole chain of commits is not worth it
5 years ago
Albert Astals Cid
bcf54ef2f1
These two methods don't need to be slots
5 years ago
Thorsten Behrens
b52adfeaee
Fix more clang-tidy unhappines
5 years ago
Katarina Behrens
20b34d00c9
Make clang-tidy happier
5 years ago
Thorsten Behrens
62a4c63fd3
Conditionalize code to Poppler signing feature flag
5 years ago
Thorsten Behrens
f37de4feb4
Set some signature reason - might want some UI later
5 years ago
Thorsten Behrens
71795917de
Add configurable CertDB path
5 years ago
Thorsten Behrens
e9577f5f7d
Properly set signature annotation bounds after insertion
5 years ago
Thorsten Behrens
9bca008f9d
Init m_signatureMode in ctor
5 years ago
Thorsten Behrens
3eedb21a83
Consistenly use CERT nick to refer to signing key
5 years ago
Thorsten Behrens
981c597376
Fix overwriting pdf after signing
...
- make explicit we're using static QFile func here
- QFile::rename doesn't work across filesystems, so instead
create it alongside. Might fail if dir is not writeable
- can't use QSaveFile, since poppler sign() func wants a filename
5 years ago
Thorsten Behrens
f7d6045b92
Add poppler NSS support
...
Move certificate config down into generator code
Read available signing certificates from poppler NSS
5 years ago
Thorsten Behrens
ae2c6a55c2
Fix crash on invalid engine
5 years ago
Thorsten Behrens
b96dac6df3
Add certificate store for access to NSS keys
...
WIP - add interfaces and methods to get access to NSS-via-poppler
sign certificates, and provide them for signing documents.
5 years ago
Thorsten Behrens
847b423e2a
Add better diagnostics
5 years ago
Thorsten Behrens
e031822744
Adapt to poppler sign api change
...
Now poppler offers signing via PDFConverter class. Add some error
handling, and store signature in temp file. Document gets reloaded
after replacing original file.
5 years ago
Thorsten Behrens
e3e582ee5c
Add feature flag for poppler signing API
...
Test and conditionally-compile pdf signing feature, depending
on poppler new-ness.
5 years ago
Katarina Behrens
b33a12d786
Prompt for password and stick it to widget annotation
5 years ago
Katarina Behrens
45fc7cd805
Read the certificates from configuration
5 years ago
Katarina Behrens
38c5b614b4
Simplify adding certificates to config and implement edit slot
5 years ago