Vendor asic-rs 0.8.1 (280 crates, offline builds) + wxWidgets 3.3.3 (pristine + patch queue); UI spec + ADR-0003; M1 on asic-rs
This commit is contained in:
+24
@@ -0,0 +1,24 @@
|
||||
use core_foundation_sys::base::{Boolean, CFOptionFlags, CFTypeID};
|
||||
use core_foundation_sys::string::CFStringRef;
|
||||
|
||||
use crate::base::SecPolicyRef;
|
||||
|
||||
mod revocation_flags {
|
||||
use super::CFOptionFlags;
|
||||
|
||||
pub const kSecRevocationOCSPMethod: CFOptionFlags = 1 << 0;
|
||||
pub const kSecRevocationCRLMethod: CFOptionFlags = 1 << 1;
|
||||
pub const kSecRevocationPreferCRL: CFOptionFlags = 1 << 2;
|
||||
pub const kSecRevocationRequirePositiveResponse: CFOptionFlags = 1 << 3;
|
||||
pub const kSecRevocationNetworkAccessDisabled: CFOptionFlags = 1 << 4;
|
||||
pub const kSecRevocationUseAnyAvailableMethod: CFOptionFlags = kSecRevocationOCSPMethod | kSecRevocationCRLMethod;
|
||||
}
|
||||
|
||||
pub use revocation_flags::*;
|
||||
|
||||
extern "C" {
|
||||
pub fn SecPolicyCreateSSL(server: Boolean, hostname: CFStringRef) -> SecPolicyRef;
|
||||
pub fn SecPolicyCreateRevocation(revocationFlags: CFOptionFlags) -> SecPolicyRef;
|
||||
pub fn SecPolicyGetTypeID() -> CFTypeID;
|
||||
pub fn SecPolicyCreateBasicX509() -> SecPolicyRef;
|
||||
}
|
||||
Reference in New Issue
Block a user