nss_sys/bindings/certdb.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
5use crate::*;
6use std::os::raw::c_char;
7
8// Opaque types
9pub type CERTCertDBHandle = u8;
10pub type CERTCertificate = u8;
11
12extern "C" {
13 pub fn CERT_GetDefaultCertDB() -> *mut CERTCertDBHandle;
14
15 pub fn CERT_NewTempCertificate(
16 handle: *mut CERTCertDBHandle,
17 derCert: *mut SECItem,
18 nickname: *mut c_char,
19 isperm: PRBool,
20 copyDER: PRBool,
21 ) -> *mut CERTCertificate;
22
23 pub fn CERT_DestroyCertificate(cert: *mut CERTCertificate);
24}