Struct xpcom::interfaces::nsITLSClientStatus
[−]
[src]
#[repr(C)]pub struct nsITLSClientStatus { /* fields omitted */ }
interface nsITLSClientStatus : nsISupports
/**
* Security summary for a given TLS client connection being handled by a
* |nsITLSServerSocket| server.
*
* This is accessible through the security info object on the transport, which
* will be an instance of |nsITLSServerConnectionInfo| (see below).
*
* The values of these attributes are available once the |onHandshakeDone|
* method of the security observer has been called (see
* |nsITLSServerSecurityObserver| below).
*/
Methods
impl nsITLSClientStatus
[src]
pub fn coerce<T: nsITLSClientStatusCoerce>(&self) -> &T
[src]
Cast this nsITLSClientStatus
to one of its base interfaces.
impl nsITLSClientStatus
[src]
pub const SSL_VERSION_3: i64
SSL_VERSION_3: i64 = 768
/**
* Values for tlsVersionUsed, as defined by TLS
*/
pub const TLS_VERSION_1: i64
TLS_VERSION_1: i64 = 769
pub const TLS_VERSION_1_1: i64
TLS_VERSION_1_1: i64 = 770
pub const TLS_VERSION_1_2: i64
TLS_VERSION_1_2: i64 = 771
pub const TLS_VERSION_1_3: i64
TLS_VERSION_1_3: i64 = 772
pub const TLS_VERSION_UNKNOWN: i64
TLS_VERSION_UNKNOWN: i64 = -1
pub unsafe fn GetPeerCert(&self, aPeerCert: *mut *const nsIX509Cert) -> nsresult
[src]
/**
* peerCert
*
* The client's certificate, if one was requested via |requestCertificate|
* above and supplied by the client.
*/
readonly attribute nsIX509Cert peerCert;
pub unsafe fn GetTlsVersionUsed(
&self,
aTlsVersionUsed: *mut int16_t
) -> nsresult
[src]
&self,
aTlsVersionUsed: *mut int16_t
) -> nsresult
/**
* tlsVersionUsed
*
* The version of TLS used by the connection. See values above.
*/
readonly attribute short tlsVersionUsed;
pub unsafe fn GetCipherName(&self, aCipherName: &mut nsACString) -> nsresult
[src]
/**
* cipherName
*
* Name of the cipher suite used, such as
* "TLS_ECDHE_ECDSA_WITH_AES_128_GCM_SHA256".
* See security/nss/lib/ssl/sslinfo.c for the possible values.
*/
readonly attribute ACString cipherName;
pub unsafe fn GetKeyLength(&self, aKeyLength: *mut uint32_t) -> nsresult
[src]
/**
* keyLength
*
* The "effective" key size of the symmetric key in bits.
*/
readonly attribute unsigned long keyLength;
pub unsafe fn GetMacLength(&self, aMacLength: *mut uint32_t) -> nsresult
[src]
/**
* macLength
*
* The size of the MAC in bits.
*/
readonly attribute unsigned long macLength;
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 nsITLSClientStatus
[src]
const IID: nsIID
IID: nsIID = nsID(426151588, 58797, 16770, [150, 152, 126, 137, 13, 72, 243, 39])
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 nsITLSClientStatus
[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 nsITLSClientStatus
[src]
type Target = nsISupports
The resulting type after dereferencing.
fn deref(&self) -> &nsISupports
[src]
Dereferences the value.