Struct xpcom::interfaces::nsICertBlocklist
[−]
[src]
#[repr(C)]pub struct nsICertBlocklist { /* fields omitted */ }
interface nsICertBlocklist : nsISupports
/**
* Represents a service to add certificates as explicitly blocked/distrusted.
*/
Methods
impl nsICertBlocklist
[src]
pub fn coerce<T: nsICertBlocklistCoerce>(&self) -> &T
[src]
Cast this nsICertBlocklist
to one of its base interfaces.
impl nsICertBlocklist
[src]
pub unsafe fn RevokeCertByIssuerAndSerial(
&self,
issuer: &nsACString,
serialNumber: &nsACString
) -> nsresult
[src]
&self,
issuer: &nsACString,
serialNumber: &nsACString
) -> nsresult
/**
* Add details of a revoked certificate :
* issuer name (base-64 encoded DER) and serial number (base-64 encoded DER).
*/
[must_use] void revokeCertByIssuerAndSerial (in ACString issuer, in ACString serialNumber);
pub unsafe fn RevokeCertBySubjectAndPubKey(
&self,
subject: &nsACString,
pubKeyHash: &nsACString
) -> nsresult
[src]
&self,
subject: &nsACString,
pubKeyHash: &nsACString
) -> nsresult
/**
* Add details of a revoked certificate :
* subject name (base-64 encoded DER) and hash of public key (base-64 encoded
* sha-256 hash of the public key).
*/
[must_use] void revokeCertBySubjectAndPubKey (in ACString subject, in ACString pubKeyHash);
pub unsafe fn SaveEntries(&self) -> nsresult
[src]
/**
* Persist (fresh) blocklist entries to the profile (if a profile directory is
* available). Note: calling this will result in synchronous I/O.
*/
[must_use] void saveEntries ();
pub unsafe fn IsCertRevoked(
&self,
issuer: *const uint8_t,
issuer_length: uint32_t,
serial: *const uint8_t,
serial_length: uint32_t,
subject: *const uint8_t,
subject_length: uint32_t,
pubkey: *const uint8_t,
pubkey_length: uint32_t,
_retval: *mut bool
) -> nsresult
[src]
&self,
issuer: *const uint8_t,
issuer_length: uint32_t,
serial: *const uint8_t,
serial_length: uint32_t,
subject: *const uint8_t,
subject_length: uint32_t,
pubkey: *const uint8_t,
pubkey_length: uint32_t,
_retval: *mut bool
) -> nsresult
/**
* Check if a certificate is blocked.
* issuer - issuer name, DER encoded
* serial - serial number, DER encoded
* subject - subject name, DER encoded
* pubkey - public key, DER encoded
*/
[must_use] boolean isCertRevoked ([array, size_is (issuer_length), const] in octet issuer, in unsigned long issuer_length, [array, size_is (serial_length), const] in octet serial, in unsigned long serial_length, [array, size_is (subject_length), const] in octet subject, in unsigned long subject_length, [array, size_is (pubkey_length), const] in octet pubkey, in unsigned long pubkey_length);
pub unsafe fn IsBlocklistFresh(&self, _retval: *mut bool) -> nsresult
[src]
/**
* Check that the blocklist data is current. Specifically, that the current
* time is no more than security.onecrl.maximum_staleness_in_seconds seconds
* after the last blocklist update (as stored in the
* app.update.lastUpdateTime.blocklist-background-update-timer pref)
*/
[must_use] boolean isBlocklistFresh ();
Methods from Deref<Target = nsISupports>
pub fn coerce<T: nsISupportsCoerce>(&self) -> &T
[src]
Cast this nsISupports
to one of its base interfaces.
pub unsafe fn QueryInterface(
&self,
uuid: &nsIID,
result: *mut *mut c_void
) -> nsresult
[src]
&self,
uuid: &nsIID,
result: *mut *mut c_void
) -> nsresult
void QueryInterface (in nsIIDRef uuid, [iid_is (uuid), retval] out nsQIResult result);
pub unsafe fn AddRef(&self) -> nsrefcnt
[src]
[noscript,notxpcom] nsrefcnt AddRef ();
pub unsafe fn Release(&self) -> nsrefcnt
[src]
[noscript,notxpcom] nsrefcnt Release ();
Trait Implementations
impl XpCom for nsICertBlocklist
[src]
const IID: nsIID
IID: nsIID = nsID(3764733056, 62515, 4580, [185, 57, 8, 0, 32, 12, 154, 102])
fn query_interface<T: XpCom>(&self) -> Option<RefPtr<T>>
[src]
Perform a QueryInterface call on this object, attempting to dynamically cast it to the requested interface type. Returns Some(RefPtr) if the cast succeeded, and None otherwise. Read more
impl RefCounted for nsICertBlocklist
[src]
unsafe fn addref(&self)
[src]
Increment the reference count.
unsafe fn release(&self)
[src]
Decrement the reference count, potentially freeing backing memory.
impl Deref for nsICertBlocklist
[src]
type Target = nsISupports
The resulting type after dereferencing.
fn deref(&self) -> &nsISupports
[src]
Dereferences the value.