Skip to content

Commit cbbc764

Browse files
committed
Fix ESP32-C3 compilation issue
1 parent 11defe4 commit cbbc764

12 files changed

+44
-165
lines changed

LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
MIT License
22

3-
Copyright (c) 2024 mobizt
3+
Copyright (c) 2025 Suwatchai K. <[email protected]>
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy
66
of this software and associated documentation files (the "Software"), to deal

README.md

Lines changed: 13 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -302,24 +302,16 @@ This requires when ESP32 WiFiClient was used.
302302
int setSessionTimeout(uint32_t seconds);
303303
```
304304

305-
## MIT License
306-
307-
Copyright (c) 2025 mobizt
308-
309-
Permission is hereby granted, free of charge, to any person obtaining a copy
310-
of this software and associated documentation files (the "Software"), to deal
311-
in the Software without restriction, including without limitation the rights
312-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
313-
copies of the Software, and to permit persons to whom the Software is
314-
furnished to do so, subject to the following conditions:
315-
316-
The above copyright notice and this permission notice shall be included in all
317-
copies or substantial portions of the Software.
318-
319-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
320-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
321-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
322-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
323-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
324-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
325-
SOFTWARE.
305+
## License
306+
307+
The codes and examples in this repository are licensed under the MIT License.
308+
309+
Copyright (c) 2025, Suwatchai K. All rights reserved.
310+
311+
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
312+
313+
*The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.*
314+
315+
`THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.`
316+
317+
*Last updated 2025-05-27 UTC.*

library.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "ESP_SSLClient",
3-
"version": "2.2.1",
3+
"version": "2.2.2",
44
"keywords": "communication, REST, esp32, esp8266, arduino",
55
"description": "This library provided the Secure Layer Networking (SSL/TLS) TCP Client for ESP8266, ESP32 and Raspberry Pi RP2040, Teensy, SAMD, AVR and other Arduino devices (except for avr) that support external networking interfaces e.g., WiFiClient, EthernetClient and GSMClient.",
66
"repository": {

library.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name=ESP_SSLClient
22

3-
version=2.2.1
3+
version=2.2.2
44

55
author=Mobizt
66

src/ESP_SSLClient.h

Lines changed: 3 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,7 @@
1-
/**
2-
* The MIT License (MIT)
3-
* Copyright (c) 2025 K. Suwatchai (Mobizt)
1+
/*
2+
* SPDX-FileCopyrightText: 2025 Suwatchai K. <[email protected]>
43
*
5-
*
6-
* Permission is hereby granted, free of charge, to any person returning a copy of
7-
* this software and associated documentation files (the "Software"), to deal in
8-
* the Software without restriction, including without limitation the rights to
9-
* use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
10-
* the Software, and to permit persons to whom the Software is furnished to do so,
11-
* subject to the following conditions:
12-
*
13-
* The above copyright notice and this permission notice shall be included in all
14-
* copies or substantial portions of the Software.
15-
*
16-
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17-
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
18-
* FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
19-
* COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
20-
* IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
21-
* CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
4+
* SPDX-License-Identifier: MIT
225
*/
236

247
#ifndef ESP_SSLCLIENT_H

src/bssl/bssl_config.h

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,15 @@
99
#define USE_LIB_SSL_ENGINE
1010
#endif
1111

12+
// workaround when these macros
13+
// are previousely defined.
14+
#if defined(MAX)
15+
#undef MAX
16+
#endif
17+
18+
#if defined(MIN)
19+
#undef MIN
20+
#endif
21+
22+
1223
#endif

src/client/BSSL_Helper.cpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
11
/*
2-
Updated June 12, 2004.
3-
42
WiFiClientBearSSL- SSL client/server for esp8266 using BearSSL libraries
53
- Mostly compatible with Arduino WiFi shield library and standard
64
WiFiClient/ServerSecure (except for certificate handling).

src/client/BSSL_Helper.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11

22
/*
3-
Updated June 12, 2004.
4-
53
WiFiClientBearSSL- SSL client/server for esp8266 using BearSSL libraries
64
- Mostly compatible with Arduino WiFi shield library and standard
75
WiFiClient/ServerSecure (except for certificate handling).

src/client/BSSL_SSL_Client.cpp

Lines changed: 4 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,9 @@
1-
/**
2-
* The MIT License (MIT)
3-
* Copyright (c) 2025 K. Suwatchai (Mobizt)
1+
/*
2+
* SPDX-FileCopyrightText: 2025 Suwatchai K. <[email protected]>
43
*
5-
*
6-
* Permission is hereby granted, free of charge, to any person obtaining a copy of
7-
* this software and associated documentation files (the "Software"), to deal in
8-
* the Software without restriction, including without limitation the rights to
9-
* use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
10-
* the Software, and to permit persons to whom the Software is furnished to do so,
11-
* subject to the following conditions:
12-
*
13-
* The above copyright notice and this permission notice shall be included in all
14-
* copies or substantial portions of the Software.
15-
*
16-
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17-
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
18-
* FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
19-
* COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
20-
* IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
21-
* CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
4+
* SPDX-License-Identifier: MIT
225
*/
6+
237
#ifndef BSSL_SSL_CLIENT_CPP
248
#define BSSL_SSL_CLIENT_CPP
259

src/client/BSSL_SSL_Client.h

Lines changed: 4 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,9 @@
1-
/**
2-
* The MIT License (MIT)
3-
* Copyright (c) 2025 K. Suwatchai (Mobizt)
1+
/*
2+
* SPDX-FileCopyrightText: 2025 Suwatchai K. <[email protected]>
43
*
5-
*
6-
* Permission is hereby granted, free of charge, to any person obtaining a copy of
7-
* this software and associated documentation files (the "Software"), to deal in
8-
* the Software without restriction, including without limitation the rights to
9-
* use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
10-
* the Software, and to permit persons to whom the Software is furnished to do so,
11-
* subject to the following conditions:
12-
*
13-
* The above copyright notice and this permission notice shall be included in all
14-
* copies or substantial portions of the Software.
15-
*
16-
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17-
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
18-
* FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
19-
* COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
20-
* IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
21-
* CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
4+
* SPDX-License-Identifier: MIT
225
*/
6+
237
#ifndef BSSL_SSL_CLIENT_H
248
#define BSSL_SSL_CLIENT_H
259

src/client/BSSL_TCP_Client.cpp

Lines changed: 3 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -1,44 +1,9 @@
1-
/**
2-
* The MIT License (MIT)
3-
* Copyright (c) 2025 K. Suwatchai (Mobizt)
4-
*
5-
* Permission is hereby granted, free of charge, to any person obtaining a copy of
6-
* this software and associated documentation files (the "Software"), to deal in
7-
* the Software without restriction, including without limitation the rights to
8-
* use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
9-
* the Software, and to permit persons to whom the Software is furnished to do so,
10-
* subject to the following conditions:
11-
*
12-
* The above copyright notice and this permission notice shall be included in all
13-
* copies or substantial portions of the Software.
1+
/*
2+
* SPDX-FileCopyrightText: 2025 Suwatchai K. <[email protected]>
143
*
15-
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16-
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
17-
* FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
18-
* COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
19-
* IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
20-
* CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
4+
* SPDX-License-Identifier: MIT
215
*/
226

23-
/*
24-
WiFiClientSecure.cpp - Client Secure class for ESP32
25-
Copyright (c) 2016 Hristo Gochkov All right reserved.
26-
Additions Copyright (C) 2017 Evandro Luis Copercini.
27-
28-
This library is free software; you can redistribute it and/or
29-
modify it under the terms of the GNU Lesser General Public
30-
License as published by the Free Software Foundation; either
31-
version 2.1 of the License, or (at your option) any later version.
32-
33-
This library is distributed in the hope that it will be useful,
34-
but WITHOUT ANY WARRANTY; without even the implied warranty of
35-
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
36-
Lesser General Public License for more details.
37-
38-
You should have received a copy of the GNU Lesser General Public
39-
License along with this library; if not, write to the Free Software
40-
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
41-
*/
427
#ifndef BSSL_TCP_CLIENT_CPP
438
#define BSSL_TCP_CLIENT_CPP
449

src/client/BSSL_TCP_Client.h

Lines changed: 3 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -1,45 +1,9 @@
1-
/**
2-
* The MIT License (MIT)
3-
* Copyright (c) 2025 K. Suwatchai (Mobizt)
4-
*
5-
* Permission is hereby granted, free of charge, to any person obtaining a copy of
6-
* this software and associated documentation files (the "Software"), to deal in
7-
* the Software without restriction, including without limitation the rights to
8-
* use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
9-
* the Software, and to permit persons to whom the Software is furnished to do so,
10-
* subject to the following conditions:
11-
*
12-
* The above copyright notice and this permission notice shall be included in all
13-
* copies or substantial portions of the Software.
1+
/*
2+
* SPDX-FileCopyrightText: 2025 Suwatchai K. <[email protected]>
143
*
15-
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16-
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
17-
* FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
18-
* COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
19-
* IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
20-
* CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
4+
* SPDX-License-Identifier: MIT
215
*/
226

23-
/*
24-
WiFiClientSecure.h - Base class that provides Client SSL to ESP32
25-
Copyright (c) 2011 Adrian McEwen. All right reserved.
26-
Additions Copyright (C) 2017 Evandro Luis Copercini.
27-
28-
This library is free software; you can redistribute it and/or
29-
modify it under the terms of the GNU Lesser General Public
30-
License as published by the Free Software Foundation; either
31-
version 2.1 of the License, or (at your option) any later version.
32-
33-
This library is distributed in the hope that it will be useful,
34-
but WITHOUT ANY WARRANTY; without even the implied warranty of
35-
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
36-
Lesser General Public License for more details.
37-
38-
You should have received a copy of the GNU Lesser General Public
39-
License along with this library; if not, write to the Free Software
40-
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
41-
*/
42-
437
#ifndef BSSL_TCP_CLIENT_H
448
#define BSSL_TCP_CLIENT_H
459

0 commit comments

Comments
 (0)