• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Copyright 2022 The OpenSSL Project Authors. All Rights Reserved.
2#
3# Licensed under the Apache License 2.0 (the "License").  You may not use
4# this file except in compliance with the License.  You can obtain a copy
5# in the file LICENSE in the source distribution or at
6# https://www.openssl.org/source/license.html
7
8name: Provider old versions compat
9on: [pull_request, push]
10
11permissions:
12  contents: read
13
14jobs:
15  fips-provider-validation:
16    strategy:
17      matrix:
18        module: [
19          {
20            dir: openssl-3.0.0,
21            tgz: openssl-3.0.0.tar.gz,
22            url: "https://www.openssl.org/source/old/3.0/openssl-3.0.0.tar.gz"
23          },
24        ]
25    runs-on: ubuntu-latest
26    steps:
27      - name: create directory
28        run: mkdir ./current
29      - uses: actions/checkout@v2
30        with:
31          path: current
32      - name: download module source
33        run: wget --no-verbose ${{ matrix.module.url }}
34      - name: unpack module source
35        run: tar xzf ${{ matrix.module.tgz }}
36      - name: localegen
37        run: sudo locale-gen tr_TR.UTF-8
38      - name: config current
39        run: ./config --banner=Configured enable-shared enable-fips
40        working-directory: ./current
41      - name: config dump current
42        run: ./configdata.pm --dump
43        working-directory: ./current
44      - name: make current
45        run: make -s -j4
46        working-directory: ./current
47      - name: show module from current
48        run: |
49          ./util/wrap.pl -fips apps/openssl list -provider-path providers \
50                                                 -provider fips -providers
51        working-directory: ./current
52      - name: test current
53        run: make test HARNESS_JOBS=${HARNESS_JOBS:-4}
54        working-directory: ./current
55      - name: config module
56        run: ./config --banner=Configured enable-shared enable-fips
57        working-directory: ${{ matrix.module.dir }}
58      - name: config dump module
59        run: ./configdata.pm --dump
60        working-directory: ${{ matrix.module.dir }}
61      - name: make module
62        run: make -s -j4
63        working-directory: ${{ matrix.module.dir }}
64      - name: setup module cross validation
65        run: cp providers/fips{module.cnf,.so} ../current/providers/
66        working-directory: ${{ matrix.module.dir }}
67      - name: show module used for cross validation
68        run: |
69          ./util/wrap.pl -fips apps/openssl list -provider-path providers \
70                                                 -provider fips -providers
71        working-directory: ./current
72      - name: test module cross validation
73        run: make test HARNESS_JOBS=${HARNESS_JOBS:-4}
74        working-directory: ./current
75