From 64106c4d3d4ddba8c7bc2af75376e6d3d3d75601 Mon Sep 17 00:00:00 2001 From: Date: Mon, 29 Jun 2015 20:16:15 +0000 Subject: Update documentation --- openssl/ssl/struct.SslContext.html | 135 +++++++++++++++++++++++++++++++++++++ 1 file changed, 135 insertions(+) create mode 100644 openssl/ssl/struct.SslContext.html (limited to 'openssl/ssl/struct.SslContext.html') diff --git a/openssl/ssl/struct.SslContext.html b/openssl/ssl/struct.SslContext.html new file mode 100644 index 0000000..b41db15 --- /dev/null +++ b/openssl/ssl/struct.SslContext.html @@ -0,0 +1,135 @@ + + + + + + + + + + openssl::ssl::SslContext - Rust + + + + + + + + + + + + + + + +
+

Struct openssl::ssl::SslContext + + [] + + [src]

+
pub struct SslContext {
+    // some fields omitted
+}

An SSL context object

+

Methods

impl SslContext

fn new(method: SslMethod) -> Result<SslContext, SslError>

+

Creates a new SSL context.

+

fn set_verify(&mut self, mode: SslVerifyMode, verify: Option<VerifyCallback>)

+

Configures the certificate verification method for new connections.

+

fn set_verify_with_data<T>(&mut self, mode: SslVerifyMode, verify: VerifyCallbackData<T>, data: T) where T: Any + 'static

+

Configures the certificate verification method for new connections also +carrying supplied data.

+

fn set_verify_depth(&mut self, depth: u32)

+

Sets verification depth

+

fn set_read_ahead(&self, m: u32)

+

fn set_CA_file<P: AsRef<Path>>(&mut self, file: P) -> Result<(), SslError>

+

Specifies the file that contains trusted CA certificates.

+

fn set_certificate_file<P: AsRef<Path>>(&mut self, file: P, file_type: X509FileType) -> Result<(), SslError>

+

Specifies the file that contains certificate

+

fn set_certificate(&mut self, cert: &X509) -> Result<(), SslError>

+

Specifies the certificate

+

fn add_extra_chain_cert(&mut self, cert: &X509) -> Result<(), SslError>

+

Adds a certificate to the certificate chain presented together with the +certificate specified using set_certificate()

+

fn set_private_key_file<P: AsRef<Path>>(&mut self, file: P, file_type: X509FileType) -> Result<(), SslError>

+

Specifies the file that contains private key

+

fn set_private_key(&mut self, key: &PKey) -> Result<(), SslError>

+

Specifies the private key

+

fn check_private_key(&mut self) -> Result<(), SslError>

+

Check consistency of private key and certificate

+

fn set_cipher_list(&mut self, cipher_list: &str) -> Result<(), SslError>

+

fn set_options(&mut self, option: SslContextOptions) -> SslContextOptions

+

fn get_options(&mut self) -> SslContextOptions

+

fn clear_options(&mut self, option: SslContextOptions) -> SslContextOptions

+

Trait Implementations

impl Send for SslContext

impl Sync for SslContext

impl Debug for SslContext

fn fmt(&self, fmt: &mut Formatter) -> Result

+

impl Drop for SslContext

fn drop(&mut self)

+
+ + + + + + + + + + + + + + + \ No newline at end of file -- cgit v1.2.3