Skip to content

Update kea_alg_defs to match NSS 3.97 #724

Update kea_alg_defs to match NSS 3.97

Update kea_alg_defs to match NSS 3.97 #724

Workflow file for this run

name: PKCS11 Tests
on: [push, pull_request]
jobs:
build:
name: Waiting for build
runs-on: ubuntu-latest
steps:
- name: Wait for build
uses: lewagon/[email protected]
with:
ref: ${{ github.ref }}
check-name: 'Building JSS'
repo-token: ${{ secrets.GITHUB_TOKEN }}
wait-interval: 30
if: github.event_name == 'push'
- name: Wait for build
uses: lewagon/[email protected]
with:
ref: ${{ github.event.pull_request.head.sha }}
check-name: 'Building JSS'
repo-token: ${{ secrets.GITHUB_TOKEN }}
wait-interval: 30
if: github.event_name == 'pull_request'
pkcs11-constants-test:
name: Testing PKCS11 Constants
needs: build
runs-on: ubuntu-latest
env:
SHARED: /tmp/workdir/jss
steps:
- name: Clone repository
uses: actions/checkout@v3
- name: Retrieve JSS images
uses: actions/cache@v3
with:
key: jss-images-${{ github.sha }}
path: jss-images.tar
- name: Load JSS images
run: docker load --input jss-images.tar
- name: Set up JSS container
run: |
tests/bin/runner-init.sh jss
env:
HOSTNAME: jss.example.com
- name: Install dependencies
run: docker exec jss dnf install -y nss-util-devel python3 java-devel
- name: Generate PKCS11 constants
run: |
docker exec jss python3 $SHARED/tools/build_pkcs11_constants.py \
--pkcs11t /usr/include/nss3/pkcs11t.h \
--pkcs11n /usr/include/nss3/pkcs11n.h \
-o PKCS11Constants.java \
--verbose
docker exec jss diff PKCS11Constants.java $SHARED/base/src/main/java/org/mozilla/jss/pkcs11/PKCS11Constants.java