Commit Graph

168 Commits

Author SHA1 Message Date
Paul van Brouwershaven
1fb39a3ce9 Merge pull request #67 from digitorus/revert-66-revert-65-fix-catalog-entries-discarded
fix: Existing catalog entries are being discarded; this ensures that all catalog entries are copied to the new updated catalog.
2025-02-25 15:11:16 +01:00
Paul van Brouwershaven
2d533be139 Removing code that is no longer necessary 2025-02-25 14:57:28 +01:00
Paul van Brouwershaven
94e7fa22a9 Revert "Revert "fix: Existing catalog entries are being discarded"" 2025-02-21 21:32:38 +01:00
Paul van Brouwershaven
be2806bdb6 Merge pull request #66 from digitorus/revert-65-fix-catalog-entries-discarded
Revert "fix: Existing catalog entries are being discarded"
2025-02-21 20:53:27 +01:00
Paul van Brouwershaven
03787d6030 Revert "fix: Existing catalog entries are being discarded" 2025-02-21 20:51:20 +01:00
Paul van Brouwershaven
db2c9ec17b Merge pull request #65 from Twometer/fix-catalog-entries-discarded 2025-02-21 20:28:36 +01:00
Twometer
bd278d2f17 fix: Existing catalog entries are being discarded 2025-02-21 17:11:42 +01:00
dependabot[bot]
fc552d6e33 Bump golang.org/x/crypto from 0.32.0 to 0.33.0
Bumps [golang.org/x/crypto](https://github.com/golang/crypto) from 0.32.0 to 0.33.0.
- [Commits](https://github.com/golang/crypto/compare/v0.32.0...v0.33.0)

---
updated-dependencies:
- dependency-name: golang.org/x/crypto
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-02-10 20:14:33 +01:00
dependabot[bot]
460ad648bb Bump golang.org/x/crypto from 0.31.0 to 0.32.0
Bumps [golang.org/x/crypto](https://github.com/golang/crypto) from 0.31.0 to 0.32.0.
- [Commits](https://github.com/golang/crypto/compare/v0.31.0...v0.32.0)

---
updated-dependencies:
- dependency-name: golang.org/x/crypto
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-01-06 19:34:32 +01:00
dependabot[bot]
1a69734ad4 Bump golang.org/x/crypto from 0.30.0 to 0.31.0
Bumps [golang.org/x/crypto](https://github.com/golang/crypto) from 0.30.0 to 0.31.0.
- [Commits](https://github.com/golang/crypto/compare/v0.30.0...v0.31.0)

---
updated-dependencies:
- dependency-name: golang.org/x/crypto
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-12-16 19:07:22 +01:00
Paul van Brouwershaven
2096c7e091 Fix test filename 2024-12-16 15:36:24 +01:00
Paul van Brouwershaven
b9112bb85b Add initial support for signature appearance 2024-12-16 15:05:27 +01:00
Paul van Brouwershaven
e5cdb61bea Refactor object handling 2024-12-11 16:24:26 +01:00
dependabot[bot]
21dd78d75e Bump golang.org/x/crypto from 0.29.0 to 0.30.0
Bumps [golang.org/x/crypto](https://github.com/golang/crypto) from 0.29.0 to 0.30.0.
- [Commits](https://github.com/golang/crypto/compare/v0.29.0...v0.30.0)

---
updated-dependencies:
- dependency-name: golang.org/x/crypto
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-12-09 20:17:26 +01:00
Paul van Brouwershaven
1f5035cb0e Update golangci-lint 2024-11-14 14:24:24 +01:00
Paul van Brouwershaven
fb84c4645c Update golangci-lint 2024-11-14 14:19:43 +01:00
Paul van Brouwershaven
1aff35b0c8 Update golangci-lint 2024-11-14 14:17:18 +01:00
Paul van Brouwershaven
0d7470938e Fix loopclosure 2024-11-14 14:11:15 +01:00
Paul van Brouwershaven
bacc810a68 Fix linting errors 2024-11-14 13:33:46 +01:00
Paul van Brouwershaven
7946d5266d Fixes and support for ApprovalSignature and TimeStampSignature 2024-11-14 13:00:58 +01:00
dependabot[bot]
0899875647 Bump golang.org/x/crypto from 0.27.0 to 0.28.0
Bumps [golang.org/x/crypto](https://github.com/golang/crypto) from 0.27.0 to 0.28.0.
- [Commits](https://github.com/golang/crypto/compare/v0.27.0...v0.28.0)

---
updated-dependencies:
- dependency-name: golang.org/x/crypto
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-10-09 16:25:46 +02:00
dependabot[bot]
2346d1d7ce Bump golang.org/x/crypto from 0.26.0 to 0.27.0
Bumps [golang.org/x/crypto](https://github.com/golang/crypto) from 0.26.0 to 0.27.0.
- [Commits](https://github.com/golang/crypto/compare/v0.26.0...v0.27.0)

---
updated-dependencies:
- dependency-name: golang.org/x/crypto
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-09-09 21:10:45 +02:00
dependabot[bot]
7861fe1bb2 Bump golang.org/x/crypto from 0.25.0 to 0.26.0
Bumps [golang.org/x/crypto](https://github.com/golang/crypto) from 0.25.0 to 0.26.0.
- [Commits](https://github.com/golang/crypto/compare/v0.25.0...v0.26.0)

---
updated-dependencies:
- dependency-name: golang.org/x/crypto
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-08-12 20:17:19 +02:00
Paul van Brouwershaven
6ad18001af Add size of the raw issuer which is added by AddSignerChain 2024-08-08 12:55:28 +02:00
dependabot[bot]
bbed2ea2a1 Bump golang.org/x/crypto from 0.24.0 to 0.25.0
Bumps [golang.org/x/crypto](https://github.com/golang/crypto) from 0.24.0 to 0.25.0.
- [Commits](https://github.com/golang/crypto/compare/v0.24.0...v0.25.0)

---
updated-dependencies:
- dependency-name: golang.org/x/crypto
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-07-08 20:45:44 +02:00
Paul van Brouwershaven
77cc6791aa Refactor and improve xref stream writing
- Split writeXrefStream into smaller, focused functions
- Improve error handling and messages in xref related functions
- Enhance code readability and maintainability
- Use io.WriteString for more efficient string writing

This refactoring aims to make the xref stream writing process more modular, easier to understand, and slightly more efficient, while maintaining the existing functionality.
2024-07-07 17:38:17 +02:00
Paul van Brouwershaven
08b31dc8f9 Add error handling for context.InputFile.Seek operation 2024-07-07 16:42:04 +02:00
Paul van Brouwershaven
a0da9873d4 Fix writeXrefTable to handle PDFs with multiple revisions
- Refactor xref table writing logic to correctly parse existing entries
- Add support for variable first object ID in xref table
- Implement dynamic calculation of new xref entries
- Improve error handling and reporting

This change resolves issue #4 with malformed xref tables when signing PDFs
that have undergone multiple revisions.
2024-07-07 16:42:04 +02:00
dependabot[bot]
e6e59033a0 Bump golang.org/x/crypto from 0.23.0 to 0.24.0
Bumps [golang.org/x/crypto](https://github.com/golang/crypto) from 0.23.0 to 0.24.0.
- [Commits](https://github.com/golang/crypto/compare/v0.23.0...v0.24.0)

---
updated-dependencies:
- dependency-name: golang.org/x/crypto
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-06-10 20:40:26 +02:00
dependabot[bot]
91775e5071 Bump golang.org/x/text from 0.15.0 to 0.16.0
Bumps [golang.org/x/text](https://github.com/golang/text) from 0.15.0 to 0.16.0.
- [Release notes](https://github.com/golang/text/releases)
- [Commits](https://github.com/golang/text/compare/v0.15.0...v0.16.0)

---
updated-dependencies:
- dependency-name: golang.org/x/text
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-06-10 20:36:14 +02:00
dependabot[bot]
8909d106b3 Bump golang.org/x/crypto from 0.22.0 to 0.23.0
Bumps [golang.org/x/crypto](https://github.com/golang/crypto) from 0.22.0 to 0.23.0.
- [Commits](https://github.com/golang/crypto/compare/v0.22.0...v0.23.0)

---
updated-dependencies:
- dependency-name: golang.org/x/crypto
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-05-06 20:53:39 +02:00
dependabot[bot]
abecaaacc9 Bump golang.org/x/crypto from 0.21.0 to 0.22.0
Bumps [golang.org/x/crypto](https://github.com/golang/crypto) from 0.21.0 to 0.22.0.
- [Commits](https://github.com/golang/crypto/compare/v0.21.0...v0.22.0)

---
updated-dependencies:
- dependency-name: golang.org/x/crypto
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-04-08 21:05:26 +02:00
Paul van Brouwershaven
69100a0e44 Update badges 2024-03-14 20:36:37 +01:00
Paul van Brouwershaven
43bee3cd01 Remove old action 2024-03-14 20:24:59 +01:00
dependabot[bot]
a3abe6e023 Bump golang.org/x/crypto from 0.19.0 to 0.21.0
Bumps [golang.org/x/crypto](https://github.com/golang/crypto) from 0.19.0 to 0.21.0.
- [Commits](https://github.com/golang/crypto/compare/v0.19.0...v0.21.0)

---
updated-dependencies:
- dependency-name: golang.org/x/crypto
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-03-14 20:16:11 +01:00
Daniel Hernández
c34fd5f0cc test: add test to cover /Names in catalog 2024-03-14 20:12:02 +01:00
Daniel Hernández
5a0cd0a9b9 fix: add embedded file(s) to catalog 2024-03-14 20:12:02 +01:00
Paul van Brouwershaven
8b036403a6 Update codecov action 2024-03-14 20:09:10 +01:00
Paul van Brouwershaven
ea6995f171 Update golangci-lint.yml 2024-03-14 20:09:10 +01:00
dependabot[bot]
3fe840b920 Bump golang.org/x/crypto from 0.18.0 to 0.19.0
Bumps [golang.org/x/crypto](https://github.com/golang/crypto) from 0.18.0 to 0.19.0.
- [Commits](https://github.com/golang/crypto/compare/v0.18.0...v0.19.0)

---
updated-dependencies:
- dependency-name: golang.org/x/crypto
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-02-12 20:06:06 +01:00
dependabot[bot]
c2175dd7b0 Bump golang.org/x/crypto from 0.17.0 to 0.18.0
Bumps [golang.org/x/crypto](https://github.com/golang/crypto) from 0.17.0 to 0.18.0.
- [Commits](https://github.com/golang/crypto/compare/v0.17.0...v0.18.0)

---
updated-dependencies:
- dependency-name: golang.org/x/crypto
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-01-08 19:51:47 +01:00
dependabot[bot]
f57d98c1f9 Bump golang.org/x/crypto from 0.16.0 to 0.17.0
Bumps [golang.org/x/crypto](https://github.com/golang/crypto) from 0.16.0 to 0.17.0.
- [Commits](https://github.com/golang/crypto/compare/v0.16.0...v0.17.0)

---
updated-dependencies:
- dependency-name: golang.org/x/crypto
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-12-18 20:22:13 +01:00
dependabot[bot]
421a83f42e Bump golang.org/x/crypto from 0.15.0 to 0.16.0
Bumps [golang.org/x/crypto](https://github.com/golang/crypto) from 0.15.0 to 0.16.0.
- [Commits](https://github.com/golang/crypto/compare/v0.15.0...v0.16.0)

---
updated-dependencies:
- dependency-name: golang.org/x/crypto
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-11-27 14:13:58 -05:00
dependabot[bot]
5dabb5bc1b Bump golang.org/x/crypto from 0.14.0 to 0.15.0
Bumps [golang.org/x/crypto](https://github.com/golang/crypto) from 0.14.0 to 0.15.0.
- [Commits](https://github.com/golang/crypto/compare/v0.14.0...v0.15.0)

---
updated-dependencies:
- dependency-name: golang.org/x/crypto
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-11-13 19:30:16 +01:00
dependabot[bot]
6434283885 Bump golang.org/x/text from 0.13.0 to 0.14.0
Bumps [golang.org/x/text](https://github.com/golang/text) from 0.13.0 to 0.14.0.
- [Release notes](https://github.com/golang/text/releases)
- [Commits](https://github.com/golang/text/compare/v0.13.0...v0.14.0)

---
updated-dependencies:
- dependency-name: golang.org/x/text
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-11-11 16:09:17 +01:00
dependabot[bot]
e7a36e3cce Bump golang.org/x/crypto from 0.13.0 to 0.14.0
Bumps [golang.org/x/crypto](https://github.com/golang/crypto) from 0.13.0 to 0.14.0.
- [Commits](https://github.com/golang/crypto/compare/v0.13.0...v0.14.0)

---
updated-dependencies:
- dependency-name: golang.org/x/crypto
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-10-11 09:02:02 +02:00
dependabot[bot]
9b77e1fcf4 Bump golang.org/x/crypto from 0.11.0 to 0.13.0
Bumps [golang.org/x/crypto](https://github.com/golang/crypto) from 0.11.0 to 0.13.0.
- [Commits](https://github.com/golang/crypto/compare/v0.11.0...v0.13.0)

---
updated-dependencies:
- dependency-name: golang.org/x/crypto
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-09-11 21:00:51 +02:00
dependabot[bot]
c4ae9b9866 Bump golang.org/x/text from 0.12.0 to 0.13.0
Bumps [golang.org/x/text](https://github.com/golang/text) from 0.12.0 to 0.13.0.
- [Release notes](https://github.com/golang/text/releases)
- [Commits](https://github.com/golang/text/compare/v0.12.0...v0.13.0)

---
updated-dependencies:
- dependency-name: golang.org/x/text
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-09-04 20:28:01 +02:00
dependabot[bot]
2dd9b9d5cd Bump golang.org/x/text from 0.11.0 to 0.12.0
Bumps [golang.org/x/text](https://github.com/golang/text) from 0.11.0 to 0.12.0.
- [Release notes](https://github.com/golang/text/releases)
- [Commits](https://github.com/golang/text/compare/v0.11.0...v0.12.0)

---
updated-dependencies:
- dependency-name: golang.org/x/text
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-08-07 21:20:06 +02:00
dependabot[bot]
b580690cfb Bump golang.org/x/crypto from 0.10.0 to 0.11.0
Bumps [golang.org/x/crypto](https://github.com/golang/crypto) from 0.10.0 to 0.11.0.
- [Commits](https://github.com/golang/crypto/compare/v0.10.0...v0.11.0)

---
updated-dependencies:
- dependency-name: golang.org/x/crypto
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-07-10 21:17:29 +02:00