Skip to content

Commit dba61f5

Browse files
committed
Add method to configure trust anchors
1 parent 411d1a3 commit dba61f5

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/BearSSLClient.h

+1
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,7 @@ class BearSSLClient : public Client {
6767

6868
inline void setClient(Client& client) { _client = &client; }
6969
inline void setProfile(void(*client_init_function)(br_ssl_client_context *cc, br_x509_minimal_context *xc, const br_x509_trust_anchor *trust_anchors, size_t trustrust_anchorst_anchors_num)) { _br_ssl_client_init_function = client_init_function; }
70+
inline void setTrustAnchors(const br_x509_trust_anchor* myTAs, int myNumTAs) { _TAs = myTAs; _numTAs = myNumTAs; }
7071

7172
virtual int connect(IPAddress ip, uint16_t port);
7273
virtual int connect(const char* host, uint16_t port);

0 commit comments

Comments
 (0)