mirror of
https://github.com/emqx/neuron.git
synced 2026-10-28 22:59:34 +08:00
Merge pull request #1479 from eeff/eeff/dev
feat(mqtt): remove `keypass` setting
This commit is contained in:
@@ -243,20 +243,5 @@
|
||||
"valid": {
|
||||
"length": 81960
|
||||
}
|
||||
},
|
||||
"keypass": {
|
||||
"name": "Client Private Key Password",
|
||||
"name_zh": "客户端私钥密码",
|
||||
"description": "Client private key password when using two way authentication with an encrypted client private key",
|
||||
"description_zh": "使用加密的客户端私钥进行双向认证时,客户端私钥的密码",
|
||||
"attribute": "optional",
|
||||
"type": "string",
|
||||
"condition": {
|
||||
"field": "ssl",
|
||||
"value": true
|
||||
},
|
||||
"valid": {
|
||||
"length": 256
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -110,6 +110,7 @@ static inline int parse_ssl_params(neu_plugin_t *plugin, const char *setting,
|
||||
}
|
||||
|
||||
// keypass, optional
|
||||
// keep it here for backward compatibility with version 2.5
|
||||
ret = neu_parse_param(setting, NULL, 1, keypass);
|
||||
if (0 != ret) {
|
||||
plog_notice(plugin, "setting no keypass");
|
||||
|
||||
@@ -66,6 +66,8 @@ typedef struct {
|
||||
char * cert; // client cert
|
||||
char * key; // client key
|
||||
char * keypass; // client key password
|
||||
// remove in 2.6, keep it here
|
||||
// for backward compatibility
|
||||
} mqtt_config_t;
|
||||
|
||||
int mqtt_config_parse(neu_plugin_t *plugin, const char *setting,
|
||||
|
||||
Reference in New Issue
Block a user