Skip to content
This repository was archived by the owner on Feb 4, 2023. It is now read-only.

Commit df44ce9

Browse files
author
Me No Dev
committed
stop ssl debug
1 parent 929948d commit df44ce9

File tree

3 files changed

+4
-5
lines changed

3 files changed

+4
-5
lines changed

src/ESPAsyncTCP.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -276,8 +276,7 @@ int8_t AsyncClient::_connected(void* pcb, int8_t err){
276276
tcp_sent(_pcb, &_s_sent);
277277
tcp_poll(_pcb, &_s_poll, 1);
278278
if(_pcb_secure){
279-
int axl = tcp_ssl_new_client(_pcb);
280-
if(axl < 0){
279+
if(tcp_ssl_new_client(_pcb) < 0){
281280
return _close();
282281
}
283282
tcp_ssl_arg(_pcb, this);

src/tcp_axtls.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,7 @@ int tcp_ssl_new_client(struct tcp_pcb *tcp){
173173
return -1;
174174
}
175175

176-
return 0;
176+
return tcp_ssl->fd;
177177
}
178178

179179
int tcp_ssl_new_server(struct tcp_pcb *tcp, SSL_CTX* ssl_ctx){
@@ -207,7 +207,7 @@ int tcp_ssl_new_server(struct tcp_pcb *tcp, SSL_CTX* ssl_ctx){
207207
return -1;
208208
}
209209

210-
return 0;
210+
return tcp_ssl->fd;
211211
}
212212

213213
int tcp_ssl_free(struct tcp_pcb *tcp) {

src/tcp_axtls.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ extern "C" {
5252
#define tcp_ssl_ssl_read(A, B) tcp_ssl_read(A, B)
5353

5454
#ifndef TCP_SSL_DEBUG
55-
#define TCP_SSL_DEBUG(...) ets_printf(__VA_ARGS__)
55+
#define TCP_SSL_DEBUG(...) //ets_printf(__VA_ARGS__)
5656
#endif
5757

5858
typedef void (* tcp_ssl_data_cb_t)(void *arg, struct tcp_pcb *tcp, uint8_t * data, size_t len);

0 commit comments

Comments
 (0)