diff options
author | Dan Nicholson <nicholson@endlessm.com> | 2019-06-19 16:31:18 -0500 |
---|---|---|
committer | Dan Nicholson <nicholson@endlessm.com> | 2020-01-24 13:02:09 -0700 |
commit | 7fe265b08706677ae99512402dfaaa3830087bdf (patch) | |
tree | 22c2866ee7035ac5e5a9020aaf39d3f0c13512c0 | |
parent | b825083549994dd577c45897cff50052db5506db (diff) | |
download | ostree-7fe265b08706677ae99512402dfaaa3830087bdf.tar.gz |
tests/gpg-verify-data: Split out signature data
The full block with all 5 signatures remains, but this allows passing
individual signatures through the GPG verification APIs. The split was
done with `gpgsplit`, and looking at the output of `gpg --list-packets`
of the split and unsplit files appears correct.
-rw-r--r-- | Makefile-tests.am | 3 | ||||
-rw-r--r-- | tests/gpg-verify-data/README.md | 6 | ||||
-rw-r--r-- | tests/gpg-verify-data/lgpl2.sig0 | bin | 0 -> 287 bytes | |||
-rw-r--r-- | tests/gpg-verify-data/lgpl2.sig1 | bin | 0 -> 287 bytes | |||
-rw-r--r-- | tests/gpg-verify-data/lgpl2.sig2 | bin | 0 -> 287 bytes | |||
-rw-r--r-- | tests/gpg-verify-data/lgpl2.sig3 | bin | 0 -> 287 bytes | |||
-rw-r--r-- | tests/gpg-verify-data/lgpl2.sig4 | bin | 0 -> 293 bytes |
7 files changed, 6 insertions, 3 deletions
diff --git a/Makefile-tests.am b/Makefile-tests.am index ef71df5c..553f535c 100644 --- a/Makefile-tests.am +++ b/Makefile-tests.am @@ -229,7 +229,8 @@ dist_gpginsttest_revoc_DATA = \ gpgvinsttestdir = $(installed_testdir)/gpg-verify-data dist_gpgvinsttest_DATA = $(addprefix tests/gpg-verify-data/, \ - gpg.conf lgpl2 lgpl2.sig pubring.gpg secring.gpg trustdb.gpg) + gpg.conf lgpl2 lgpl2.sig lgpl2.sig0 lgpl2.sig1 lgpl2.sig2 lgpl2.sig3 \ + lgpl2.sig4 pubring.gpg secring.gpg trustdb.gpg) endif endif diff --git a/tests/gpg-verify-data/README.md b/tests/gpg-verify-data/README.md index d96fbad5..9ca47581 100644 --- a/tests/gpg-verify-data/README.md +++ b/tests/gpg-verify-data/README.md @@ -1,5 +1,7 @@ This is a GPG config directory for use with the OstreeGpgVerifyResult -test cases. The test data (`lgplv2`) is signed with a variety of valid -and invalid GPG keys in a detached signature file (`lgplv2.sig`). +test cases. The test data (`lgpl2`) is signed with a variety of valid +and invalid GPG keys in a detached signature file (`lgpl2.sig`). In +addition, each detached signature is available in a separate file +(`lgpgl2.sig<N>`). The passphrase for all the keys is `redhat`. diff --git a/tests/gpg-verify-data/lgpl2.sig0 b/tests/gpg-verify-data/lgpl2.sig0 Binary files differnew file mode 100644 index 00000000..375c650a --- /dev/null +++ b/tests/gpg-verify-data/lgpl2.sig0 diff --git a/tests/gpg-verify-data/lgpl2.sig1 b/tests/gpg-verify-data/lgpl2.sig1 Binary files differnew file mode 100644 index 00000000..83a6227c --- /dev/null +++ b/tests/gpg-verify-data/lgpl2.sig1 diff --git a/tests/gpg-verify-data/lgpl2.sig2 b/tests/gpg-verify-data/lgpl2.sig2 Binary files differnew file mode 100644 index 00000000..ad0f420c --- /dev/null +++ b/tests/gpg-verify-data/lgpl2.sig2 diff --git a/tests/gpg-verify-data/lgpl2.sig3 b/tests/gpg-verify-data/lgpl2.sig3 Binary files differnew file mode 100644 index 00000000..5c17ec6f --- /dev/null +++ b/tests/gpg-verify-data/lgpl2.sig3 diff --git a/tests/gpg-verify-data/lgpl2.sig4 b/tests/gpg-verify-data/lgpl2.sig4 Binary files differnew file mode 100644 index 00000000..2d3989f6 --- /dev/null +++ b/tests/gpg-verify-data/lgpl2.sig4 |