#[repr(C)]pub struct _cef_x509_certificate_t {
pub base: cef_base_ref_counted_t,
pub get_subject: Option<unsafe extern "C" fn(self_: *mut _cef_x509_certificate_t) -> *mut _cef_x509_cert_principal_t>,
pub get_issuer: Option<unsafe extern "C" fn(self_: *mut _cef_x509_certificate_t) -> *mut _cef_x509_cert_principal_t>,
pub get_serial_number: Option<unsafe extern "C" fn(self_: *mut _cef_x509_certificate_t) -> *mut _cef_binary_value_t>,
pub get_valid_start: Option<unsafe extern "C" fn(self_: *mut _cef_x509_certificate_t) -> cef_basetime_t>,
pub get_valid_expiry: Option<unsafe extern "C" fn(self_: *mut _cef_x509_certificate_t) -> cef_basetime_t>,
pub get_derencoded: Option<unsafe extern "C" fn(self_: *mut _cef_x509_certificate_t) -> *mut _cef_binary_value_t>,
pub get_pemencoded: Option<unsafe extern "C" fn(self_: *mut _cef_x509_certificate_t) -> *mut _cef_binary_value_t>,
pub get_issuer_chain_size: Option<unsafe extern "C" fn(self_: *mut _cef_x509_certificate_t) -> usize>,
pub get_derencoded_issuer_chain: Option<unsafe extern "C" fn(self_: *mut _cef_x509_certificate_t, chainCount: *mut usize, chain: *mut *mut _cef_binary_value_t)>,
pub get_pemencoded_issuer_chain: Option<unsafe extern "C" fn(self_: *mut _cef_x509_certificate_t, chainCount: *mut usize, chain: *mut *mut _cef_binary_value_t)>,
}Expand description
Structure representing a X.509 certificate.
NOTE: This struct is allocated DLL-side.
Fields§
§base: cef_base_ref_counted_tBase structure.
get_subject: Option<unsafe extern "C" fn(self_: *mut _cef_x509_certificate_t) -> *mut _cef_x509_cert_principal_t>Returns the subject of the X.509 certificate. For HTTPS server certificates this represents the web server. The common name of the subject should match the host name of the web server.
get_issuer: Option<unsafe extern "C" fn(self_: *mut _cef_x509_certificate_t) -> *mut _cef_x509_cert_principal_t>Returns the issuer of the X.509 certificate.
get_serial_number: Option<unsafe extern "C" fn(self_: *mut _cef_x509_certificate_t) -> *mut _cef_binary_value_t>Returns the DER encoded serial number for the X.509 certificate. The value possibly includes a leading 00 byte.
get_valid_start: Option<unsafe extern "C" fn(self_: *mut _cef_x509_certificate_t) -> cef_basetime_t>Returns the date before which the X.509 certificate is invalid. CefBaseTime.GetTimeT() will return 0 if no date was specified.
get_valid_expiry: Option<unsafe extern "C" fn(self_: *mut _cef_x509_certificate_t) -> cef_basetime_t>Returns the date after which the X.509 certificate is invalid. CefBaseTime.GetTimeT() will return 0 if no date was specified.
get_derencoded: Option<unsafe extern "C" fn(self_: *mut _cef_x509_certificate_t) -> *mut _cef_binary_value_t>Returns the DER encoded data for the X.509 certificate.
get_pemencoded: Option<unsafe extern "C" fn(self_: *mut _cef_x509_certificate_t) -> *mut _cef_binary_value_t>Returns the PEM encoded data for the X.509 certificate.
get_issuer_chain_size: Option<unsafe extern "C" fn(self_: *mut _cef_x509_certificate_t) -> usize>Returns the number of certificates in the issuer chain. If 0, the certificate is self-signed.
get_derencoded_issuer_chain: Option<unsafe extern "C" fn(self_: *mut _cef_x509_certificate_t, chainCount: *mut usize, chain: *mut *mut _cef_binary_value_t)>Returns the DER encoded data for the certificate issuer chain. If we failed to encode a certificate in the chain it is still present in the array but is an NULL string.
get_pemencoded_issuer_chain: Option<unsafe extern "C" fn(self_: *mut _cef_x509_certificate_t, chainCount: *mut usize, chain: *mut *mut _cef_binary_value_t)>Returns the PEM encoded data for the certificate issuer chain. If we failed to encode a certificate in the chain it is still present in the array but is an NULL string.
Trait Implementations§
Source§impl Clone for _cef_x509_certificate_t
impl Clone for _cef_x509_certificate_t
Source§fn clone(&self) -> _cef_x509_certificate_t
fn clone(&self) -> _cef_x509_certificate_t
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more