nss_sys/bindings/
secmodt.rs

1/* This Source Code Form is subject to the terms of the Mozilla Public
2 * License, v. 2.0. If a copy of the MPL was not distributed with this
3 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
4
5// Opaque pointers as these types are giant.
6pub type PK11SlotInfo = u8;
7pub type PK11SymKey = u8;
8pub type PK11Context = u8;
9
10#[repr(u32)]
11pub enum PK11Origin {
12    PK11_OriginNULL = 0,
13    PK11_OriginDerive = 1,
14    PK11_OriginGenerated = 2,
15    PK11_OriginFortezzaHack = 3,
16    PK11_OriginUnwrap = 4,
17}
18
19#[repr(u32)]
20pub enum PK11ObjectType {
21    PK11_TypeGeneric = 0,
22    PK11_TypePrivKey = 1,
23    PK11_TypePubKey = 2,
24    PK11_TypeCert = 3,
25    PK11_TypeSymKey = 4,
26}
27
28// #[repr(C)]
29// #[derive(Copy, Clone)]
30// pub struct PK11GenericObjectStr {
31//     _unused: [u8; 0],
32// }
33pub type PK11GenericObject = u8;