| 
									
										
										
										
											2021-05-17 02:56:33 +02:00
										 |  |  | /*
 | 
					
						
							|  |  |  |  * SPDX-FileCopyrightText: 2018-2021 Espressif Systems (Shanghai) CO LTD | 
					
						
							|  |  |  |  * | 
					
						
							|  |  |  |  * SPDX-License-Identifier: Apache-2.0 | 
					
						
							|  |  |  |  */ | 
					
						
							| 
									
										
										
										
											2018-05-29 11:25:24 +02:00
										 |  |  | #ifndef _ESP_ASIO_CONFIG_H_
 | 
					
						
							|  |  |  | #define _ESP_ASIO_CONFIG_H_
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | //
 | 
					
						
							|  |  |  | // Enabling exceptions only when they are enabled in menuconfig
 | 
					
						
							|  |  |  | //
 | 
					
						
							|  |  |  | # include <sdkconfig.h>
 | 
					
						
							| 
									
										
										
										
											2019-04-24 15:02:25 +02:00
										 |  |  | # ifndef CONFIG_COMPILER_CXX_EXCEPTIONS
 | 
					
						
							| 
									
										
										
										
											2018-05-29 11:25:24 +02:00
										 |  |  | #  define ASIO_NO_EXCEPTIONS
 | 
					
						
							| 
									
										
										
										
											2019-04-24 15:02:25 +02:00
										 |  |  | # endif   // CONFIG_COMPILER_CXX_EXCEPTIONS
 | 
					
						
							| 
									
										
										
										
											2018-05-29 11:25:24 +02:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2019-11-07 12:07:44 +01:00
										 |  |  | # ifndef CONFIG_COMPILER_RTTI
 | 
					
						
							|  |  |  | #  define ASIO_NO_TYPEID
 | 
					
						
							|  |  |  | # endif   // CONFIG_COMPILER_RTTI
 | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2018-05-29 11:25:24 +02:00
										 |  |  | //
 | 
					
						
							| 
									
										
										
										
											2019-11-07 12:07:44 +01:00
										 |  |  | // LWIP compatibility inet and address macros/functions
 | 
					
						
							| 
									
										
										
										
											2018-05-29 11:25:24 +02:00
										 |  |  | //
 | 
					
						
							|  |  |  | # define LWIP_COMPAT_SOCKET_INET 1
 | 
					
						
							|  |  |  | # define LWIP_COMPAT_SOCKET_ADDR 1
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | //
 | 
					
						
							|  |  |  | // Specific ASIO feature flags
 | 
					
						
							|  |  |  | //
 | 
					
						
							|  |  |  | # define ASIO_DISABLE_SERIAL_PORT
 | 
					
						
							|  |  |  | # define ASIO_SEPARATE_COMPILATION
 | 
					
						
							|  |  |  | # define ASIO_STANDALONE
 | 
					
						
							|  |  |  | # define ASIO_HAS_PTHREADS
 | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2020-06-05 17:17:55 +02:00
										 |  |  | # ifdef CONFIG_ASIO_USE_ESP_OPENSSL
 | 
					
						
							|  |  |  | #  define ASIO_USE_ESP_OPENSSL
 | 
					
						
							|  |  |  | #  define OPENSSL_NO_ENGINE
 | 
					
						
							| 
									
										
										
										
											2021-10-14 10:17:24 +02:00
										 |  |  | #  define ASIO_SSL_DETAIL_OPENSSL_TYPES_HPP
 | 
					
						
							|  |  |  | #  include "openssl_stub.hpp"
 | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2020-06-05 17:17:55 +02:00
										 |  |  | # elif CONFIG_ASIO_USE_ESP_WOLFSSL
 | 
					
						
							|  |  |  | #  define ASIO_USE_WOLFSSL
 | 
					
						
							|  |  |  | # endif   // CONFIG_ASIO_USE_ESP_OPENSSL
 | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2018-05-29 11:25:24 +02:00
										 |  |  | #endif // _ESP_ASIO_CONFIG_H_
 |