Commit 7c08b16
Fix TLS disabled when WebSocket is enabled
Remove !defined(ENABLE_MQTT_WEBSOCKET) guards from mqtt_socket.c and
mqtt_socket.h that incorrectly excluded the entire wolfSSL TLS layer
when --enable-websocket was configured. This broke TLS for all
non-WebSocket clients (mqttclient, firmware, etc.). The WebSocket
client handles TLS through libwebsockets and never calls these
functions, so the guards were unnecessary.
Also remove the local BrokerTls_IORecv/IOSend workaround from
mqtt_broker.c since MqttSocket_TlsSocketReceive/Send are now
available.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>1 parent 06b179d commit 7c08b16
3 files changed
Lines changed: 11 additions & 60 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
352 | 352 | | |
353 | 353 | | |
354 | 354 | | |
355 | | - | |
356 | | - | |
357 | | - | |
358 | | - | |
359 | | - | |
360 | | - | |
361 | | - | |
362 | | - | |
363 | | - | |
364 | | - | |
365 | | - | |
366 | | - | |
367 | | - | |
368 | | - | |
369 | | - | |
370 | | - | |
371 | | - | |
372 | | - | |
373 | | - | |
374 | | - | |
375 | | - | |
376 | | - | |
377 | | - | |
378 | | - | |
379 | | - | |
380 | | - | |
381 | | - | |
382 | | - | |
383 | | - | |
384 | | - | |
385 | | - | |
386 | | - | |
387 | | - | |
388 | | - | |
389 | | - | |
390 | | - | |
391 | | - | |
392 | | - | |
393 | 355 | | |
394 | 356 | | |
395 | 357 | | |
| |||
452 | 414 | | |
453 | 415 | | |
454 | 416 | | |
455 | | - | |
456 | | - | |
457 | | - | |
458 | | - | |
459 | 417 | | |
460 | 418 | | |
461 | | - | |
462 | 419 | | |
463 | 420 | | |
464 | 421 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
55 | 55 | | |
56 | 56 | | |
57 | 57 | | |
58 | | - | |
59 | | - | |
| 58 | + | |
60 | 59 | | |
61 | 60 | | |
62 | 61 | | |
| |||
101 | 100 | | |
102 | 101 | | |
103 | 102 | | |
104 | | - | |
| 103 | + | |
105 | 104 | | |
106 | 105 | | |
107 | 106 | | |
| |||
114 | 113 | | |
115 | 114 | | |
116 | 115 | | |
117 | | - | |
118 | | - | |
| 116 | + | |
119 | 117 | | |
120 | 118 | | |
121 | 119 | | |
| |||
135 | 133 | | |
136 | 134 | | |
137 | 135 | | |
138 | | - | |
139 | | - | |
| 136 | + | |
140 | 137 | | |
141 | 138 | | |
142 | 139 | | |
| |||
166 | 163 | | |
167 | 164 | | |
168 | 165 | | |
169 | | - | |
| 166 | + | |
170 | 167 | | |
171 | 168 | | |
172 | 169 | | |
| |||
248 | 245 | | |
249 | 246 | | |
250 | 247 | | |
251 | | - | |
252 | | - | |
| 248 | + | |
253 | 249 | | |
254 | 250 | | |
255 | 251 | | |
| |||
284 | 280 | | |
285 | 281 | | |
286 | 282 | | |
287 | | - | |
| 283 | + | |
288 | 284 | | |
289 | 285 | | |
290 | 286 | | |
| |||
421 | 417 | | |
422 | 418 | | |
423 | 419 | | |
424 | | - | |
425 | | - | |
| 420 | + | |
426 | 421 | | |
427 | 422 | | |
428 | 423 | | |
| |||
543 | 538 | | |
544 | 539 | | |
545 | 540 | | |
546 | | - | |
| 541 | + | |
547 | 542 | | |
548 | 543 | | |
549 | 544 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
106 | 106 | | |
107 | 107 | | |
108 | 108 | | |
109 | | - | |
110 | | - | |
| 109 | + | |
111 | 110 | | |
112 | 111 | | |
113 | 112 | | |
114 | 113 | | |
115 | | - | |
| 114 | + | |
116 | 115 | | |
117 | 116 | | |
118 | 117 | | |
| |||
0 commit comments