Skip to content

Commit f7dcc94

Browse files
committed
zephyrClient: fix SSL overload
1 parent 393f256 commit f7dcc94

File tree

2 files changed

+2
-5
lines changed

2 files changed

+2
-5
lines changed

libraries/SocketWrapper/ZephyrClient.h

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,9 +31,6 @@ class ZephyrClient : public arduino::Client, ZephyrSocketWrapper {
3131
return ret;
3232
}
3333
#if defined(CONFIG_NET_SOCKETS_SOCKOPT_TLS)
34-
int connectSSL(const char* host, uint16_t port, const char* cert) {
35-
return this->connectSSL(host, port, (char*)cert);
36-
}
3734
int connectSSL(const char* host, uint16_t port, char* cert) {
3835
auto ret = ZephyrSocketWrapper::connectSSL((char*)host, port, cert);
3936
if (ret) {

libraries/SocketWrapper/ZephyrSSLClient.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@
1010
class ZephyrSSLClient : public ZephyrClient {
1111

1212
public:
13-
int connect(const char* host, uint16_t port, const char* cert) {
14-
return connectSSL(host, port, (char*)cert);
13+
int connect(const char* host, uint16_t port) override {
14+
return connectSSL(host, port, nullptr);
1515
}
1616
int connect(const char* host, uint16_t port, char* cert) {
1717
return connectSSL(host, port, cert);

0 commit comments

Comments
 (0)