8000 Update esp_crt_bundle.c · esp32wrangler/esp32-certBundle@f9c3d59 · GitHub
[go: up one dir, main page]

Skip to content

Commit f9c3d59

Browse files
Update esp_crt_bundle.c
Only use the embedded bundle if the #define EMBEDDED_BUNDLE is set to true in your build flags. This prevents compile errors for all other methods that do NOT use the embedded bundle.
1 parent 5f4e151 commit f9c3d59

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

lib/WiFiClientSecure/src/esp_crt_bundle.c

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -187,8 +187,12 @@ esp_err_t esp_crt_bundle_attach(void *conf)
187187
esp_err_t ret = ESP_OK;
188188
// If no bundle has been set by the user then use the bundle embedded in the binary
189189
if (s_crt_bundle.crts == NULL) {
190-
log_d("using embedded bundle");
191-
//ret = esp_crt_bundle_init(x509_crt_imported_bundle_bin_start);
190+
#if EMBEDDED_BUNDLE == true
191+
log_d("using embedded bundle");
192+
ret = esp_crt_bundle_init(x509_crt_imported_bundle_bin_start);
193+
#else
194+
ret = !ESP_OK;
195+
#endif
192196
}
193197

194198
if (ret != ESP_OK) {

0 commit comments

Comments
 (0)
0