| 
									
										
										
										
											2019-09-07 16:24:54 +05:30
										 |  |  | set(srcs esp_tls.c)
 | 
					
						
							|  |  |  | if(CONFIG_ESP_TLS_USING_MBEDTLS)
 | 
					
						
							|  |  |  |     list(APPEND srcs | 
					
						
							|  |  |  |         "esp_tls_mbedtls.c")
 | 
					
						
							|  |  |  | endif()
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | if(CONFIG_ESP_TLS_USING_WOLFSSL)
 | 
					
						
							|  |  |  |     list(APPEND srcs | 
					
						
							|  |  |  |         "esp_tls_wolfssl.c")
 | 
					
						
							|  |  |  | endif()
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | idf_component_register(SRCS "${srcs}" | 
					
						
							| 
									
										
										
										
											2019-04-28 15:38:23 +08:00
										 |  |  |                     INCLUDE_DIRS "."
 | 
					
						
							| 
									
										
										
										
											2019-08-06 11:00:37 +08:00
										 |  |  |                     PRIV_INCLUDE_DIRS "private_include"
 | 
					
						
							| 
									
										
										
										
											2019-04-28 15:38:23 +08:00
										 |  |  |                     REQUIRES mbedtls
 | 
					
						
							|  |  |  |                     PRIV_REQUIRES lwip nghttp)
 | 
					
						
							| 
									
										
										
										
											2019-09-07 16:24:54 +05:30
										 |  |  | 
 | 
					
						
							|  |  |  | if(CONFIG_ESP_TLS_USING_WOLFSSL)
 | 
					
						
							|  |  |  |     idf_component_get_property(wolfssl esp-wolfssl COMPONENT_LIB)
 | 
					
						
							|  |  |  |     target_link_libraries(${COMPONENT_LIB} PUBLIC ${wolfssl})
 | 
					
						
							|  |  |  | endif()
 | 
					
						
							| 
									
										
										
										
											2020-04-06 20:12:52 +05:30
										 |  |  | 
 | 
					
						
							|  |  |  | if(CONFIG_ESP_TLS_USE_SE)
 | 
					
						
							|  |  |  |     idf_component_get_property(cryptoauthlib esp-cryptoauthlib COMPONENT_LIB)
 | 
					
						
							|  |  |  |     target_link_libraries(${COMPONENT_LIB} PUBLIC ${cryptoauthlib})
 | 
					
						
							|  |  |  | endif()
 |