Skip to content

Commit fba2c98

Browse files
committed
setCACert
1 parent d6c7dbb commit fba2c98

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/AudioTools/CoreAudio/AudioHttp/URLStreamESP32.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -302,15 +302,15 @@ class URLStreamESP32 : public AbstractURLStream {
302302
void setBufferSize(int size) { buffer_size = size; }
303303

304304
/// Define the Root PEM Certificate for SSL
305-
void setSSLCertificate(const uint8_t* cert, int len) {
305+
void setCACert(const uint8_t* cert, int len) {
306306
pem_cert_len = len;
307307
pem_cert = cert;
308308
}
309309

310310
/// Method compatible with Arduino WiFiClientSecure API
311311
void setCACert(const char* cert){
312312
int len = strlen(cert);
313-
setSSLCertificate((const uint8_t*)cert, len);
313+
setCACert((const uint8_t*)cert, len);
314314
}
315315

316316
protected:

0 commit comments

Comments
 (0)