mirror of
https://github.com/eclipse/paho.mqtt-sn.embedded-c.git
synced 2025-12-15 08:26:51 +01:00
Bugfix Set a secure flag to a Client instance.
Signed-off-by: tomoaki <tomoaki@tomy-tech.com>
This commit is contained in:
@@ -380,6 +380,7 @@ Client* ClientList::createClient(SensorNetAddress* addr, MQTTSNString* clientId,
|
||||
{
|
||||
client->setQoSm1();
|
||||
}
|
||||
client->getNetwork()->setSecure(secure);
|
||||
|
||||
_mutex.lock();
|
||||
|
||||
|
||||
@@ -656,3 +656,7 @@ bool Network::isSecure()
|
||||
return _secureFlg;
|
||||
}
|
||||
|
||||
void Network::setSecure(bool secureFlg)
|
||||
{
|
||||
_secureFlg = secureFlg;
|
||||
}
|
||||
|
||||
@@ -80,6 +80,7 @@ public:
|
||||
bool isValid(void);
|
||||
bool isSecure(void);
|
||||
int getSock(void);
|
||||
void setSecure(bool secureFlg);
|
||||
|
||||
private:
|
||||
static SSL_CTX* _ctx;
|
||||
|
||||
Reference in New Issue
Block a user