mirror of
https://github.com/ibm-s390-linux/s390-tools.git
synced 2026-08-05 02:14:52 +00:00
Add a `pv` crate that bundles useful functions and structs for creating requests like `Attestation`, `Add Secret`, or even `Boot` a.k.a. Secure Execution Image. Note pv includes a subcrate `openssl_extensions` that (temporarily) bundles some needed `openssl-rust` functionalities that are not upstream yet. The plan is to remove these, when they become upstream. The pv crate has multiple features: * request - code to generate requests * uvsecret - code to access the UV-secret api with request enabled also generating requests is possible Signed-off-by: Steffen Eiden <seiden@linux.ibm.com> Acked-by: Jan Höppner <hoeppner@linux.ibm.com> Acked-by: Marc Hartmayer <mhartmay@linux.ibm.com> Signed-off-by: Jan Höppner <hoeppner@linux.ibm.com>
27 lines
651 B
Rust
27 lines
651 B
Rust
// SPDX-License-Identifier: MIT
|
|
//
|
|
// Copyright IBM Corp. 2023
|
|
|
|
#![doc(hidden)]
|
|
|
|
/// Extensions to the rust-openssl crate, that are not upstream yet
|
|
/// Upstreaming mostly work in progress
|
|
pub mod akid;
|
|
pub mod crl;
|
|
mod stackable_crl;
|
|
|
|
/// Test if two CRLs are equal.
|
|
///
|
|
/// relates to X509_CRL_match
|
|
/// (Upstream is missing that functionality)
|
|
pub fn x509_crl_eq(a: &openssl::x509::X509CrlRef, b: &openssl::x509::X509CrlRef) -> bool {
|
|
use foreign_types::ForeignTypeRef;
|
|
let cmp = unsafe { openssl_sys::X509_CRL_match(a.as_ptr(), b.as_ptr()) };
|
|
cmp == 0
|
|
}
|
|
|
|
#[allow(dead_code)]
|
|
mod test_utils {
|
|
include!("../../src/test_utils.rs");
|
|
}
|