#[repr(C)]pub struct br_x509_decoder_context {Show 20 fields
pub pkey: br_x509_pkey,
pub cpu: br_x509_decoder_context__bindgen_ty_1,
pub dp_stack: [u32; 32],
pub rp_stack: [u32; 32],
pub err: c_int,
pub pad: [c_uchar; 256],
pub decoded: c_uchar,
pub notbefore_days: u32,
pub notbefore_seconds: u32,
pub notafter_days: u32,
pub notafter_seconds: u32,
pub isCA: c_uchar,
pub copy_dn: c_uchar,
pub append_dn_ctx: *mut c_void,
pub append_dn: Option<unsafe extern "C" fn(ctx: *mut c_void, buf: *const c_void, len: usize)>,
pub hbuf: *const c_uchar,
pub hlen: usize,
pub pkey_data: [c_uchar; 520],
pub signer_key_type: c_uchar,
pub signer_hash_id: c_uchar,
}
Expand description
\brief X.509 decoder context.
This structure is not for X.509 validation, but for extracting names and public keys from encoded certificates. Intended usage is to use (self-signed) certificates as trust anchors.
Contents are opaque and shall not be accessed directly.
Fields§
§pkey: br_x509_pkey
§cpu: br_x509_decoder_context__bindgen_ty_1
§dp_stack: [u32; 32]
§rp_stack: [u32; 32]
§err: c_int
§pad: [c_uchar; 256]
§decoded: c_uchar
§notbefore_days: u32
§notbefore_seconds: u32
§notafter_days: u32
§notafter_seconds: u32
§isCA: c_uchar
§copy_dn: c_uchar
§append_dn_ctx: *mut c_void
§append_dn: Option<unsafe extern "C" fn(ctx: *mut c_void, buf: *const c_void, len: usize)>
§hbuf: *const c_uchar
§hlen: usize
§pkey_data: [c_uchar; 520]
§signer_key_type: c_uchar
§signer_hash_id: c_uchar
Trait Implementations§
Source§impl Clone for br_x509_decoder_context
impl Clone for br_x509_decoder_context
Source§fn clone(&self) -> br_x509_decoder_context
fn clone(&self) -> br_x509_decoder_context
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreimpl Copy for br_x509_decoder_context
Auto Trait Implementations§
impl Freeze for br_x509_decoder_context
impl RefUnwindSafe for br_x509_decoder_context
impl !Send for br_x509_decoder_context
impl !Sync for br_x509_decoder_context
impl Unpin for br_x509_decoder_context
impl UnwindSafe for br_x509_decoder_context
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more