DecodedCert

Struct DecodedCert 

Source
#[repr(C)]
pub struct DecodedCert {
Show 63 fields pub publicKey: *const byte, pub pubKeySize: word32, pub pubKeyStored: c_int, pub certBegin: word32, pub sigIndex: word32, pub sigLength: word32, pub signatureOID: word32, pub keyOID: word32, pub version: c_int, pub altNames: *mut DNS_entry, pub altEmailNames: *mut DNS_entry, pub altDirNames: *mut DNS_entry, pub permittedNames: *mut Base_entry, pub excludedNames: *mut Base_entry, pub subjectHash: [byte; 20], pub issuerHash: [byte; 20], pub signature: *const byte, pub subjectCN: *mut c_char, pub subjectCNLen: c_int, pub subjectCNEnc: c_char, pub issuer: [c_char; 256], pub subject: [c_char; 256], pub verify: c_int, pub source: *const byte, pub srcIdx: word32, pub maxIdx: word32, pub heap: *mut c_void, pub serial: [byte; 32], pub serialSz: c_int, pub extensions: *const byte, pub extensionsSz: c_int, pub extensionsIdx: word32, pub extAuthInfo: *const byte, pub extAuthInfoSz: c_int, pub extCrlInfoRaw: *const byte, pub extCrlInfoRawSz: c_int, pub extCrlInfo: *const byte, pub extCrlInfoSz: c_int, pub extSubjKeyId: [byte; 20], pub extSubjKeyIdSz: word32, pub extAuthKeyId: [byte; 20], pub extAuthKeyIdSz: word32, pub pathLength: byte, pub maxPathLen: byte, pub policyConstSkip: byte, pub extKeyUsage: word16, pub extExtKeyUsage: byte, pub beforeDate: *const byte, pub beforeDateLen: c_int, pub afterDate: *const byte, pub afterDateLen: c_int, pub subjectRaw: *const byte, pub subjectRawLen: c_int, pub subjectEmail: *mut c_char, pub subjectEmailLen: c_int, pub nsCertType: byte, pub ca: *mut Signer, pub sigCtx: SignatureCtx, pub badDate: c_int, pub criticalExt: c_int, pub _bitfield_align_1: [u8; 0], pub _bitfield_1: __BindgenBitfieldUnit<[u8; 4]>, pub __bindgen_padding_0: u32,
}

Fields§

§publicKey: *const byte§pubKeySize: word32§pubKeyStored: c_int§certBegin: word32§sigIndex: word32§sigLength: word32§signatureOID: word32§keyOID: word32§version: c_int§altNames: *mut DNS_entry§altEmailNames: *mut DNS_entry§altDirNames: *mut DNS_entry§permittedNames: *mut Base_entry§excludedNames: *mut Base_entry§subjectHash: [byte; 20]§issuerHash: [byte; 20]§signature: *const byte§subjectCN: *mut c_char§subjectCNLen: c_int§subjectCNEnc: c_char§issuer: [c_char; 256]§subject: [c_char; 256]§verify: c_int§source: *const byte§srcIdx: word32§maxIdx: word32§heap: *mut c_void§serial: [byte; 32]§serialSz: c_int§extensions: *const byte§extensionsSz: c_int§extensionsIdx: word32§extAuthInfo: *const byte§extAuthInfoSz: c_int§extCrlInfoRaw: *const byte§extCrlInfoRawSz: c_int§extCrlInfo: *const byte§extCrlInfoSz: c_int§extSubjKeyId: [byte; 20]§extSubjKeyIdSz: word32§extAuthKeyId: [byte; 20]§extAuthKeyIdSz: word32§pathLength: byte§maxPathLen: byte§policyConstSkip: byte§extKeyUsage: word16§extExtKeyUsage: byte§beforeDate: *const byte§beforeDateLen: c_int§afterDate: *const byte§afterDateLen: c_int§subjectRaw: *const byte§subjectRawLen: c_int§subjectEmail: *mut c_char§subjectEmailLen: c_int§nsCertType: byte§ca: *mut Signer§sigCtx: SignatureCtx§badDate: c_int§criticalExt: c_int§_bitfield_align_1: [u8; 0]§_bitfield_1: __BindgenBitfieldUnit<[u8; 4]>§__bindgen_padding_0: u32

Implementations§

Source§

impl DecodedCert

Source

pub fn subjectCNStored(&self) -> byte

Source

pub fn set_subjectCNStored(&mut self, val: byte)

Source

pub fn extSubjKeyIdSet(&self) -> byte

Source

pub fn set_extSubjKeyIdSet(&mut self, val: byte)

Source

pub fn extAuthKeyIdSet(&self) -> byte

Source

pub fn set_extAuthKeyIdSet(&mut self, val: byte)

Source

pub fn extNameConstraintSet(&self) -> byte

Source

pub fn set_extNameConstraintSet(&mut self, val: byte)

Source

pub fn isCA(&self) -> byte

Source

pub fn set_isCA(&mut self, val: byte)

Source

pub fn pathLengthSet(&self) -> byte

Source

pub fn set_pathLengthSet(&mut self, val: byte)

Source

pub fn weOwnAltNames(&self) -> byte

Source

pub fn set_weOwnAltNames(&mut self, val: byte)

Source

pub fn extKeyUsageSet(&self) -> byte

Source

pub fn set_extKeyUsageSet(&mut self, val: byte)

Source

pub fn extExtKeyUsageSet(&self) -> byte

Source

pub fn set_extExtKeyUsageSet(&mut self, val: byte)

Source

pub fn extCRLdistSet(&self) -> byte

Source

pub fn set_extCRLdistSet(&mut self, val: byte)

Source

pub fn extAuthInfoSet(&self) -> byte

Source

pub fn set_extAuthInfoSet(&mut self, val: byte)

Source

pub fn extBasicConstSet(&self) -> byte

Source

pub fn set_extBasicConstSet(&mut self, val: byte)

Source

pub fn extPolicyConstSet(&self) -> byte

Source

pub fn set_extPolicyConstSet(&mut self, val: byte)

Source

pub fn extPolicyConstRxpSet(&self) -> byte

Source

pub fn set_extPolicyConstRxpSet(&mut self, val: byte)

Source

pub fn extPolicyConstIpmSet(&self) -> byte

Source

pub fn set_extPolicyConstIpmSet(&mut self, val: byte)

Source

pub fn extSubjAltNameSet(&self) -> byte

Source

pub fn set_extSubjAltNameSet(&mut self, val: byte)

Source

pub fn inhibitAnyOidSet(&self) -> byte

Source

pub fn set_inhibitAnyOidSet(&mut self, val: byte)

Source

pub fn selfSigned(&self) -> byte

Source

pub fn set_selfSigned(&mut self, val: byte)

Source

pub fn extCRLdistCrit(&self) -> byte

Source

pub fn set_extCRLdistCrit(&mut self, val: byte)

Source

pub fn extAuthInfoCrit(&self) -> byte

Source

pub fn set_extAuthInfoCrit(&mut self, val: byte)

Source

pub fn extBasicConstCrit(&self) -> byte

Source

pub fn set_extBasicConstCrit(&mut self, val: byte)

Source

pub fn extPolicyConstCrit(&self) -> byte

Source

pub fn set_extPolicyConstCrit(&mut self, val: byte)

Source

pub fn extSubjAltNameCrit(&self) -> byte

Source

pub fn set_extSubjAltNameCrit(&mut self, val: byte)

Source

pub fn extAuthKeyIdCrit(&self) -> byte

Source

pub fn set_extAuthKeyIdCrit(&mut self, val: byte)

Source

pub fn extNameConstraintCrit(&self) -> byte

Source

pub fn set_extNameConstraintCrit(&mut self, val: byte)

Source

pub fn extSubjKeyIdCrit(&self) -> byte

Source

pub fn set_extSubjKeyIdCrit(&mut self, val: byte)

Source

pub fn extKeyUsageCrit(&self) -> byte

Source

pub fn set_extKeyUsageCrit(&mut self, val: byte)

Source

pub fn extExtKeyUsageCrit(&self) -> byte

Source

pub fn set_extExtKeyUsageCrit(&mut self, val: byte)

Source

pub fn new_bitfield_1( subjectCNStored: byte, extSubjKeyIdSet: byte, extAuthKeyIdSet: byte, extNameConstraintSet: byte, isCA: byte, pathLengthSet: byte, weOwnAltNames: byte, extKeyUsageSet: byte, extExtKeyUsageSet: byte, extCRLdistSet: byte, extAuthInfoSet: byte, extBasicConstSet: byte, extPolicyConstSet: byte, extPolicyConstRxpSet: byte, extPolicyConstIpmSet: byte, extSubjAltNameSet: byte, inhibitAnyOidSet: byte, selfSigned: byte, extCRLdistCrit: byte, extAuthInfoCrit: byte, extBasicConstCrit: byte, extPolicyConstCrit: byte, extSubjAltNameCrit: byte, extAuthKeyIdCrit: byte, extNameConstraintCrit: byte, extSubjKeyIdCrit: byte, extKeyUsageCrit: byte, extExtKeyUsageCrit: byte, ) -> __BindgenBitfieldUnit<[u8; 4]>

Trait Implementations§

Source§

impl Clone for DecodedCert

Source§

fn clone(&self) -> DecodedCert

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Copy for DecodedCert

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.