Skip to content

Commit 03be367

Browse files
committed
Add GSMSSLClient class
1 parent 984b4fd commit 03be367

File tree

2 files changed

+39
-0
lines changed

2 files changed

+39
-0
lines changed

libraries/GSM/src/GSM.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -116,6 +116,7 @@ class GSMClass : public MbedSocketClass {
116116
extern GSMClass GSM;
117117

118118
#include "GSMClient.h"
119+
#include "GSMSSLClient.h"
119120
#include "GSMUdp.h"
120121

121122
#endif

libraries/GSM/src/GSMSSLClient.h

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
/*
2+
GSMSSLClient.h
3+
Copyright (c) 2023 Arduino SA. All right reserved.
4+
5+
This library is free software; you can redistribute it and/or
6+
modify it under the terms of the GNU Lesser General Public
7+
License as published by the Free Software Foundation; either
8+
version 2.1 of the License, or (at your option) any later version.
9+
10+
This library is distributed in the hope that it will be useful,
11+
but WITHOUT ANY WARRANTY; without even the implied warranty of
12+
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13+
Lesser General Public License for more details.
14+
15+
You should have received a copy of the GNU Lesser General Public
16+
License along with this library; if not, write to the Free Software
17+
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
18+
*/
19+
20+
#ifndef GSMSSLCLIENT_H
21+
#define GSMSSLCLIENT_H
22+
23+
#include "GSM.h"
24+
#include "MbedSSLClient.h"
25+
26+
extern const char CA_CERTIFICATES[];
27+
28+
namespace arduino {
29+
30+
class GSMSSLClient : public arduino::MbedSSLClient {
31+
NetworkInterface *getNetwork() {
32+
return GSM.getNetwork();
33+
}
34+
};
35+
36+
}
37+
38+
#endif /* GSMSSLCLIENT_H */

0 commit comments

Comments
 (0)