Skip to content
This repository was archived by the owner on Oct 28, 2023. It is now read-only.

Commit 4ebc773

Browse files
committed
Well, it compiles . .
1 parent f442412 commit 4ebc773

File tree

2 files changed

+5
-6
lines changed

2 files changed

+5
-6
lines changed

esp32/Makefile

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@ INC += -I../lib/timeutils
5353
INC += -I../../components/badge
5454
INC += -I../../components/ugfx
5555
INC += -I../../components/graph
56+
INC += -I../../components/sha2017
5657
INC += -I../../main
5758
INC += -I../../ugfx/src/gdisp/mcufont
5859
INC += -I../../ugfx
@@ -155,7 +156,6 @@ SRC_C = \
155156
$(SRC_MOD)
156157

157158
### TODO remove hardcoded images when loader works ;)
158-
159159
BADGE_MAIN_SRC_C = $(addprefix ../../main/,\
160160
imgv2_menu.c \
161161
imgv2_nick.c \
@@ -590,7 +590,7 @@ OBJ_ESPIDF += $(addprefix $(BUILD)/, $(ESPIDF_WPA_SUPPLICANT_O))
590590
####################
591591
# Badge magic
592592

593-
$(BUILD)/components/%.o: CFLAGS += -Wno-strict-aliasing
593+
$(BUILD)/components/%.o:
594594
BADGE_COMPONENTS_O = $(addprefix $(BADGE)/components/,\
595595
badge/badge_base.o \
596596
badge/badge_eink.o \
@@ -613,6 +613,7 @@ BADGE_COMPONENTS_O = $(addprefix $(BADGE)/components/,\
613613
ugfx/gdisp_lld_framebuffer.o \
614614
ugfx/ginput_lld_toggle.o \
615615
ugfx/gfx_mk.o \
616+
sha2017/wildcard_sha2017_org.o \
616617
)
617618

618619
OBJ_ESPIDF += $(addprefix $(BUILD)/, $(BADGE_COMPONENTS_O))

extmod/modussl_mbedtls.c

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -45,8 +45,7 @@
4545
#include "mbedtls/ctr_drbg.h"
4646
#include "mbedtls/debug.h"
4747

48-
extern const uint8_t server_root_cert_pem_start[] asm("_binary_server_root_cert_pem_start");
49-
extern const uint8_t server_root_cert_pem_end[] asm("_binary_server_root_cert_pem_end");
48+
#include "wildcard_sha2017_org.h"
5049

5150
typedef struct _mp_obj_ssl_socket_t {
5251
mp_obj_base_t base;
@@ -149,8 +148,7 @@ STATIC mp_obj_ssl_socket_t *socket_new(mp_obj_t sock, struct ssl_args *args) {
149148
assert(0);
150149
}
151150

152-
ret = mbedtls_x509_crt_parse(&o->cacert, server_root_cert_pem_start,
153-
server_root_cert_pem_end-server_root_cert_pem_start);
151+
ret = mbedtls_x509_crt_parse(&o->cacert, wildcard_sha2017_org, 2151);
154152

155153
if(ret < 0)
156154
{

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy