Skip to content

Compile errors when not using the embeded bundle #2

Open
@Onno-Dirkzwager

Description

@Onno-Dirkzwager

Hi @Duckle29,
great work! As you might have read here I forked and extended your modified library with a function to load the certificate bundle from SPIFFS.

https://github.com/Onno-Dirkzwager/esp32-certBundle?organization=Onno-Dirkzwager&organization=Onno-Dirkzwager

While doing so I discovered that if people would use this library without the bundle or platform.ini scripts compile errors will occur:

.pio\build\esp32dev\lib499\libWiFiClientSecure.a(esp_crt_bundle.c.o):(.literal.esp_crt_bundle_attach+0x8): undefined reference to `_binary_x509_crt_bundle_start'

Simply commenting out this line solves the compile error (as it is not even used when loading from SPIFFS or not using the bundle at all)
Onno-Dirkzwager@b365a4a

Ideally, we would not modify the esp_crt_bundle.c file at all..... I think I'm missing something and hope that we can work this out together. As these modifications will be very useful for a lot of people.

Any ideas?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions