Skip to content

Commit 01cf570

Browse files
committed
SSLClient: fix connect using pre shared key
1 parent 6a66623 commit 01cf570

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Diff for: libraries/SSLClient/src/SSLClient.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -147,12 +147,12 @@ int SSLClient::connect(const char *host, uint16_t port, const char *_CA_cert, co
147147
}
148148

149149
int SSLClient::connect(IPAddress ip, uint16_t port, const char *pskIdent, const char *psKey) {
150-
return connect(ip.toString().c_str(), port,_pskIdent, _psKey);
150+
return connect(ip.toString().c_str(), port, pskIdent, psKey);
151151
}
152152

153153
int SSLClient::connect(const char *host, uint16_t port, const char *pskIdent, const char *psKey) {
154154
log_v("start_ssl_client with PSK");
155-
int ret = start_ssl_client(sslclient, host, port, _timeout, NULL, NULL, NULL, NULL, _pskIdent, _psKey, _use_insecure);
155+
int ret = start_ssl_client(sslclient, host, port, _timeout, NULL, NULL, NULL, NULL, pskIdent, psKey, _use_insecure);
156156
_lastError = ret;
157157
if (ret < 0) {
158158
log_e("start_ssl_client: %d", ret);

0 commit comments

Comments
 (0)