File tree 3 files changed +35
-0
lines changed
3 files changed +35
-0
lines changed Original file line number Diff line number Diff line change @@ -17,6 +17,20 @@ get_target_property(src_tls mbedtls SOURCES)
17
17
list (REMOVE_ITEM src_tls net_sockets.c)
18
18
set_property (TARGET mbedtls PROPERTY SOURCES ${src_tls} )
19
19
20
+ if (CONFIG_MBEDTLS_SSL_PROTO_GMTSSL1_1)
21
+ get_target_property (src_tls mbedtls SOURCES )
22
+ list (REMOVE_ITEM src_tls ssl_ciphersuites.c ssl_cli.c ssl_tls.c)
23
+ set_property (TARGET mbedtls PROPERTY SOURCES ${src_tls} )
24
+
25
+ get_target_property (src_crypto mbedcrypto SOURCES )
26
+ list (REMOVE_ITEM src_crypto cipher_wrap.c ecdsa.c ecp.c ecp_curves.c oid.c pk_wrap.c)
27
+ set_property (TARGET mbedcrypto PROPERTY SOURCES ${src_crypto} )
28
+
29
+ get_target_property (src_x509 mbedx509 SOURCES )
30
+ list (REMOVE_ITEM src_x509 x509_crt.c)
31
+ set_property (TARGET mbedx509 PROPERTY SOURCES ${src_x509} )
32
+ endif ()
33
+
20
34
set (mbedtls_targets mbedtls mbedcrypto mbedx509)
21
35
22
36
# Add port files to mbedtls targets
Original file line number Diff line number Diff line change @@ -328,6 +328,13 @@ menu "mbedTLS"
328
328
depends on MBEDTLS_TLS_ENABLED
329
329
default y
330
330
331
+ config MBEDTLS_SSL_PROTO_GMTSSL1_1
332
+ bool "Support GM/T SSL 1.1 protocol"
333
+ depends on MBEDTLS_TLS_ENABLED
334
+ default n
335
+ help
336
+ Provisions for GM/T SSL 1.1 support
337
+
331
338
config MBEDTLS_SSL_PROTO_DTLS
332
339
bool "Support DTLS protocol (all versions)"
333
340
default n
Original file line number Diff line number Diff line change @@ -8,6 +8,20 @@ COMPONENT_SRCDIRS := mbedtls/library port port/$(IDF_TARGET)
8
8
9
9
COMPONENT_OBJEXCLUDE := mbedtls/library/net_sockets.o
10
10
11
+ ifdef CONFIG_MBEDTLS_SSL_PROTO_GMTSSL1_1
12
+ COMPONENT_OBJEXCLUDE += \
13
+ mbedtls/library/ssl_ciphersuites.o \
14
+ mbedtls/library/ecp.o \
15
+ mbedtls/library/cipher_wrap.o \
16
+ mbedtls/library/oid.o \
17
+ mbedtls/library/ecp_curves.o \
18
+ mbedtls/library/pk_wrap.o \
19
+ mbedtls/library/ecdsa.o \
20
+ mbedtls/library/x509_crt.o \
21
+ mbedtls/library/ssl_tls.o \
22
+ mbedtls/library/ssl_cli.o
23
+ endif
24
+
11
25
COMPONENT_SUBMODULES += mbedtls
12
26
13
27
ifdef CONFIG_MBEDTLS_DYNAMIC_BUFFER
You can’t perform that action at this time.
0 commit comments