Skip to content

Commit d6c7dbb

Browse files
committed
URLStreamESP32 add setCACert()
1 parent 825e329 commit d6c7dbb

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/AudioTools/CoreAudio/AudioHttp/URLStreamESP32.h

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -307,6 +307,12 @@ class URLStreamESP32 : public AbstractURLStream {
307307
pem_cert = cert;
308308
}
309309

310+
/// Method compatible with Arduino WiFiClientSecure API
311+
void setCACert(const char* cert){
312+
int len = strlen(cert);
313+
setSSLCertificate((const uint8_t*)cert, len);
314+
}
315+
310316
protected:
311317
int id = 0;
312318
HttpRequest request;

0 commit comments

Comments
 (0)