Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions .github/workflows/pkcs11-provider.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:
build:
name: Integration test with pkcs11-provider
runs-on: ubuntu-22.04
container: fedora:latest
container: fedora:rawhide
steps:
- name: Get Date for DNF cache entry
id: get-date
Expand Down Expand Up @@ -53,8 +53,8 @@ jobs:

- name: Build & test
run: |
cargo build --no-default-features --features dynamic,standard,nssdb
cargo test --no-default-features --features dynamic,standard,nssdb | tee testout.log 2>&1
cargo build --no-default-features --features dynamic,standard,nssdb,pqc
cargo test --no-default-features --features dynamic,standard,nssdb,pqc | tee testout.log 2>&1
grep -q "0 failed" testout.log
- name: Get pkcs11-provider
Expand Down
8 changes: 8 additions & 0 deletions ossl/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -224,6 +224,14 @@ impl OsslContext {
}
}

impl Drop for OsslContext {
fn drop(&mut self) {
unsafe {
OSSL_LIB_CTX_free(self.context);
}
}
}

unsafe impl Send for OsslContext {}
unsafe impl Sync for OsslContext {}

Expand Down