-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
add ssl engine function #1512
base: develop
Are you sure you want to change the base?
add ssl engine function #1512
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -1076,6 +1076,7 @@ typedef struct | |
* 2 means no ssl_error_context, ssl_error_cb | ||
* 3 means no ssl_psk_cb, ssl_psk_context, disableDefaultTrustStore | ||
* 4 means no protos, protos_len | ||
* 5 means no ssl engine | ||
*/ | ||
int struct_version; | ||
|
||
|
@@ -1085,15 +1086,21 @@ typedef struct | |
/** The file in PEM format containing the public certificate chain of the client. It may also include | ||
* the client's private key. | ||
*/ | ||
const char* keyStore; | ||
const char* keyStore; | ||
guoyibiao0007 marked this conversation as resolved.
Show resolved
Hide resolved
|
||
|
||
/** If not included in the sslKeyStore, this setting points to the file in PEM format containing | ||
* the client's private key. | ||
*/ | ||
const char* privateKey; | ||
const char* privateKey; | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. code format wrong. use TABs |
||
|
||
/** The password to load the client's privateKey if encrypted. */ | ||
const char* privateKeyPassword; | ||
const char* privateKeyPassword; | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. code format wrong. use TABs |
||
|
||
/** Key mode Only used if struct_version is >= 6.*/ | ||
enum MqttSslKeyType keyType; | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. code format wrong. use TABs |
||
|
||
/** engineId for SSL Only used if struct_version is >= 6.*/ | ||
const char* engineId; | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. code format wrong. use TABs |
||
|
||
/** | ||
* The list of cipher suites that the client will present to the server during the SSL handshake. For a | ||
|
@@ -1176,7 +1183,7 @@ typedef struct | |
unsigned int protos_len; | ||
} MQTTAsync_SSLOptions; | ||
|
||
#define MQTTAsync_SSLOptions_initializer { {'M', 'Q', 'T', 'S'}, 5, NULL, NULL, NULL, NULL, NULL, 1, MQTT_SSL_VERSION_DEFAULT, 0, NULL, NULL, NULL, NULL, NULL, 0, NULL, 0 } | ||
#define MQTTAsync_SSLOptions_initializer { {'M', 'Q', 'T', 'S'}, 6, NULL, NULL, NULL, NULL, PEM, NULL, NULL, 1, MQTT_SSL_VERSION_DEFAULT, 0, NULL, NULL, NULL, NULL, NULL, 0, NULL, 0 } | ||
|
||
/** Utility structure where name/value pairs are needed */ | ||
typedef struct | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
code format wrong. use TABs