interplane.Get Omega
Read in your language

aienux

Aienux, the AienOS kernel: boot, scheduling, IPC and capability boundaries. Pre-alpha; host, emulator and physical evidence are labelled separately.

Brought by drakestapleton

branch main Branches Tags History

aienux / vendor / uefi-raw / src / protocol / network / tls.rs

37 lines · 965 bytes Raw Blame History
1// SPDX-License-Identifier: MIT OR Apache-2.0
2
3use crate::{Guid, Status, guid, newtype_enum};
4use core::ffi::c_void;
5
6newtype_enum! {
7 pub enum TlsConfigDataType: i32 => {
8 HOST_PUBLIC_CERT = 0,
9 HOST_PRIVATE_KEY = 1,
10 CA_CERTIFICATE = 2,
11 CERT_REVOCATION_LIST = 3,
12 MAXIMUM = 4,
13 }
14}
15
16#[derive(Debug)]
17#[repr(C)]
18pub struct TlsConfigurationProtocol {
19 pub set_data: unsafe extern "efiapi" fn(
20 this: *mut Self,
21 typ: TlsConfigDataType,
22 data: *const c_void,
23 size: usize,
24 ) -> Status,
25
26 pub get_data: unsafe extern "efiapi" fn(
27 this: *const Self,
28 typ: TlsConfigDataType,
29 data: *mut c_void,
30 size: *mut usize,
31 ) -> Status,
32}
33
34impl TlsConfigurationProtocol {
35 pub const GUID: Guid = guid!("1682fe44-bd7a-4407-b7c7-dca37ca3922d");
36 pub const SERVICE_BINDING_GUID: Guid = guid!("952cb795-ff36-48cf-a249-4df486d6ab8d");
37}