Skip to content

Commit 4717e6c

Browse files
committed
ssl_client: remove unused parameters from ssl_stop
1 parent 7e83b8b commit 4717e6c

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

libraries/SSLClient/src/SSLClient.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ void SSLClient::stop()
102102
_connected = false;
103103
_peek = -1;
104104
}
105-
stop_ssl_socket(sslclient, _CA_cert, _cert, _private_key);
105+
stop_ssl_socket(sslclient);
106106
}
107107

108108
int SSLClient::connect(IPAddress ip, uint16_t port)

libraries/SSLClient/src/ssl_client.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -336,7 +336,7 @@ int start_ssl_client(sslclient_context *ssl_client, const char *host, uint32_t p
336336
memset(buf, 0, sizeof(buf));
337337
mbedtls_x509_crt_verify_info(buf, sizeof(buf), " ! ", flags);
338338
log_e("Failed to verify peer certificate! verification info: %s", buf);
339-
stop_ssl_socket(ssl_client, rootCABuff, cli_cert, cli_key); //It's not safe continue.
339+
stop_ssl_socket(ssl_client); //It's not safe continue.
340340

341341
return handle_error(ret);
342342
} else {
@@ -361,7 +361,7 @@ int start_ssl_client(sslclient_context *ssl_client, const char *host, uint32_t p
361361
}
362362

363363

364-
void stop_ssl_socket(sslclient_context *ssl_client, const char *rootCABuff, const char *cli_cert, const char *cli_key)
364+
void stop_ssl_socket(sslclient_context *ssl_client)
365365
{
366366
log_v("Cleaning SSL connection.");
367367

libraries/SSLClient/src/ssl_client.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ typedef struct sslclient_context {
4343

4444
void ssl_init(sslclient_context *ssl_client, Client *client, const char *ca_path);
4545
int start_ssl_client(sslclient_context *ssl_client, const char *host, uint32_t port, int timeout, const char *rootCABuff, const char *rootCAPath, const char *cli_cert, const char *cli_key, const char *pskIdent, const char *psKey, bool insecure);
46-
void stop_ssl_socket(sslclient_context *ssl_client, const char *rootCABuff, const char *cli_cert, const char *cli_key);
46+
void stop_ssl_socket(sslclient_context *ssl_client);
4747
int data_to_read(sslclient_context *ssl_client);
4848
int send_ssl_data(sslclient_context *ssl_client, const uint8_t *data, uint16_t len);
4949
int get_ssl_receive(sslclient_context *ssl_client, uint8_t *data, int length);

0 commit comments

Comments
 (0)