Struct paho_mqtt3as_sys::MQTTAsync_SSLOptions [] [src]

#[repr(C)]
pub struct MQTTAsync_SSLOptions { pub struct_id: [c_char; 4], pub struct_version: c_int, pub trustStore: *const c_char, pub keyStore: *const c_char, pub privateKey: *const c_char, pub privateKeyPassword: *const c_char, pub enabledCipherSuites: *const c_char, pub enableServerCertAuth: c_int, }

MQTTAsync_sslProperties defines the settings to establish an SSL/TLS connection using the OpenSSL library. It covers the following scenarios: - Server authentication: The client needs the digital certificate of the server. It is included in a store containting trusted material (also known as "trust store"). - Mutual authentication: Both client and server are authenticated during the SSL handshake. In addition to the digital certificate of the server in a trust store, the client will need its own digital certificate and the private key used to sign its digital certificate stored in a "key store". - Anonymous connection: Both client and server do not get authenticated and no credentials are needed to establish an SSL connection. Note that this scenario is not fully secure since it is subject to man-in-the-middle attacks.

Fields

The eyecatcher for this structure. Must be MQTS

The version number of this structure. Must be 0

The file in PEM format containing the public digital certificates trusted by the client.

The file in PEM format containing the public certificate chain of the client. It may also include the client's private key.

If not included in the sslKeyStore, this setting points to the file in PEM format containing the client's private key.

The password to load the client's privateKey if encrypted.

The list of cipher suites that the client will present to the server during the SSL handshake. For a full explanation of the cipher list format, please see the OpenSSL on-line documentation: http://www.openssl.org/docs/apps/ciphers.html#CIPHER_LIST_FORMAT If this setting is ommitted, its default value will be "ALL", that is, all the cipher suites -excluding those offering no encryption- will be considered. This setting can be used to set an SSL anonymous connection ("aNULL" string value, for instance).

True/False option to enable verification of the server certificate

Trait Implementations

impl Debug for MQTTAsync_SSLOptions
[src]

Formats the value using the given formatter.

impl Copy for MQTTAsync_SSLOptions
[src]

impl Clone for MQTTAsync_SSLOptions
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Default for MQTTAsync_SSLOptions
[src]

Returns the "default value" for a type. Read more