summaryrefslogtreecommitdiffstats
path: root/.github
diff options
context:
space:
mode:
authorPauli <pauli@openssl.org>2022-09-14 08:39:29 +1000
committerPauli <pauli@openssl.org>2022-09-16 08:39:00 +1000
commit1ab630794dfef98f83b59b5e18981dc3223bb1bf (patch)
treec91c5ad96378e9a6e555acc8af472d7fcb6502ec /.github
parent65759e35afa545835910ea85582522c01087fde3 (diff)
Add CI to test old FIPS provider versions
Reviewed-by: Matt Caswell <matt@openssl.org> Reviewed-by: Tomas Mraz <tomas@openssl.org> Reviewed-by: Shane Lontis <shane.lontis@oracle.com> (Merged from https://github.com/openssl/openssl/pull/19201) (cherry picked from commit 65080a3e1ebced54af838481e6d40e1c0cb7991e)
Diffstat (limited to '.github')
-rw-r--r--.github/workflows/fips-old.yml74
1 files changed, 74 insertions, 0 deletions
diff --git a/.github/workflows/fips-old.yml b/.github/workflows/fips-old.yml
new file mode 100644
index 0000000000..72b7179125
--- /dev/null
+++ b/.github/workflows/fips-old.yml
@@ -0,0 +1,74 @@
+# Copyright 2022 The OpenSSL Project Authors. All Rights Reserved.
+#
+# Licensed under the Apache License 2.0 (the "License"). You may not use
+# this file except in compliance with the License. You can obtain a copy
+# in the file LICENSE in the source distribution or at
+# https://www.openssl.org/source/license.html
+
+name: Provider old versions compat
+on: [pull_request, push]
+
+permissions:
+ contents: read
+
+jobs:
+ fips-provider-validation:
+ strategy:
+ matrix:
+ module: [
+ {
+ dir: openssl-3.0.0,
+ tgz: openssl-3.0.0.tar.gz,
+ url: "https://www.openssl.org/source/old/3.0/openssl-3.0.0.tar.gz"
+ },
+ ]
+ runs-on: ubuntu-latest
+ steps:
+ - name: create directory
+ run: mkdir ./current
+ - uses: actions/checkout@v2
+ with:
+ path: current
+ - name: download module source
+ run: wget --no-verbose ${{ matrix.module.url }}
+ - name: unpack module source
+ run: tar xzf ${{ matrix.module.tgz }}
+ - name: localegen
+ run: sudo locale-gen tr_TR.UTF-8
+ - name: config current
+ run: ./config --banner=Configured enable-shared enable-fips
+ working-directory: ./current
+ - name: config dump current
+ run: ./configdata.pm --dump
+ working-directory: ./current
+ - name: make current
+ run: make -s -j4
+ working-directory: ./current
+ - name: show module from current
+ run: |
+ ./util/wrap.pl -fips apps/openssl list -provider-path providers \
+ -provider fips -providers
+ working-directory: ./current
+ - name: test current
+ run: make test HARNESS_JOBS=${HARNESS_JOBS:-4}
+ working-directory: ./current
+ - name: config module
+ run: ./config --banner=Configured enable-shared enable-fips
+ working-directory: ${{ matrix.module.dir }}
+ - name: config dump module
+ run: ./configdata.pm --dump
+ working-directory: ${{ matrix.module.dir }}
+ - name: make module
+ run: make -s -j4
+ working-directory: ${{ matrix.module.dir }}
+ - name: setup module cross validation
+ run: cp providers/fips{module.cnf,.so} ../current/providers/
+ working-directory: ${{ matrix.module.dir }}
+ - name: show module used for cross validation
+ run: |
+ ./util/wrap.pl -fips apps/openssl list -provider-path providers \
+ -provider fips -providers
+ working-directory: ./current
+ - name: test module cross validation
+ run: make test HARNESS_JOBS=${HARNESS_JOBS:-4}
+ working-directory: ./current