mirror of
				https://github.com/cuberite/polarssl.git
				synced 2025-10-31 11:40:51 -04:00 
			
		
		
		
	Merge branch 'development' into development-restricted
* development: Remove inline workaround when not useful Fix macroization of inline in C++
This commit is contained in:
		
						commit
						a97ab2c8a6
					
				| @ -36,6 +36,7 @@ Security | |||||||
| Bugfix | Bugfix | ||||||
|    * Fix compile error in net.c with musl libc. Found and patch provided by |    * Fix compile error in net.c with musl libc. Found and patch provided by | ||||||
|      zhasha (#278). |      zhasha (#278). | ||||||
|  |    * Fix macroization of 'inline' keyword when building as C++. (#279) | ||||||
| 
 | 
 | ||||||
| Changes | Changes | ||||||
|    * Added checking of hostname length in mbedtls_ssl_set_hostname() to ensure |    * Added checking of hostname length in mbedtls_ssl_set_hostname() to ensure | ||||||
|  | |||||||
| @ -46,7 +46,8 @@ | |||||||
| #define MBEDTLS_CIPHER_MODE_STREAM | #define MBEDTLS_CIPHER_MODE_STREAM | ||||||
| #endif | #endif | ||||||
| 
 | 
 | ||||||
| #if ( defined(__ARMCC_VERSION) || defined(_MSC_VER) ) && !defined(inline) | #if ( defined(__ARMCC_VERSION) || defined(_MSC_VER) ) && \ | ||||||
|  |     !defined(inline) && !defined(__cplusplus) | ||||||
| #define inline __inline | #define inline __inline | ||||||
| #endif | #endif | ||||||
| 
 | 
 | ||||||
|  | |||||||
| @ -27,10 +27,6 @@ | |||||||
| 
 | 
 | ||||||
| #include <stddef.h> | #include <stddef.h> | ||||||
| 
 | 
 | ||||||
| #if ( defined(__ARMCC_VERSION) || defined(_MSC_VER) ) && !defined(inline) |  | ||||||
| #define inline __inline |  | ||||||
| #endif |  | ||||||
| 
 |  | ||||||
| #define MBEDTLS_ERR_MD_FEATURE_UNAVAILABLE                -0x5080  /**< The selected feature is not available. */ | #define MBEDTLS_ERR_MD_FEATURE_UNAVAILABLE                -0x5080  /**< The selected feature is not available. */ | ||||||
| #define MBEDTLS_ERR_MD_BAD_INPUT_DATA                     -0x5100  /**< Bad input parameters to function. */ | #define MBEDTLS_ERR_MD_BAD_INPUT_DATA                     -0x5100  /**< Bad input parameters to function. */ | ||||||
| #define MBEDTLS_ERR_MD_ALLOC_FAILED                       -0x5180  /**< Failed to allocate memory. */ | #define MBEDTLS_ERR_MD_ALLOC_FAILED                       -0x5180  /**< Failed to allocate memory. */ | ||||||
|  | |||||||
| @ -37,7 +37,8 @@ | |||||||
| 
 | 
 | ||||||
| #include <pkcs11-helper-1.0/pkcs11h-certificate.h> | #include <pkcs11-helper-1.0/pkcs11h-certificate.h> | ||||||
| 
 | 
 | ||||||
| #if ( defined(__ARMCC_VERSION) || defined(_MSC_VER) ) && !defined(inline) | #if ( defined(__ARMCC_VERSION) || defined(_MSC_VER) ) && \ | ||||||
|  |     !defined(inline) && !defined(__cplusplus) | ||||||
| #define inline __inline | #define inline __inline | ||||||
| #endif | #endif | ||||||
| 
 | 
 | ||||||
|  | |||||||
| @ -41,7 +41,8 @@ | |||||||
| #include "sha512.h" | #include "sha512.h" | ||||||
| #endif | #endif | ||||||
| 
 | 
 | ||||||
| #if ( defined(__ARMCC_VERSION) || defined(_MSC_VER) ) && !defined(inline) | #if ( defined(__ARMCC_VERSION) || defined(_MSC_VER) ) && \ | ||||||
|  |     !defined(inline) && !defined(__cplusplus) | ||||||
| #define inline __inline | #define inline __inline | ||||||
| #endif | #endif | ||||||
| 
 | 
 | ||||||
|  | |||||||
| @ -42,7 +42,8 @@ | |||||||
| #define mbedtls_snprintf    snprintf | #define mbedtls_snprintf    snprintf | ||||||
| #endif | #endif | ||||||
| 
 | 
 | ||||||
| #if ( defined(__ARMCC_VERSION) || defined(_MSC_VER) ) && !defined(inline) | #if ( defined(__ARMCC_VERSION) || defined(_MSC_VER) ) && \ | ||||||
|  |     !defined(inline) && !defined(__cplusplus) | ||||||
| #define inline __inline | #define inline __inline | ||||||
| #endif | #endif | ||||||
| 
 | 
 | ||||||
|  | |||||||
| @ -62,7 +62,8 @@ | |||||||
| #define mbedtls_free       free | #define mbedtls_free       free | ||||||
| #endif | #endif | ||||||
| 
 | 
 | ||||||
| #if ( defined(__ARMCC_VERSION) || defined(_MSC_VER) ) && !defined(inline) | #if ( defined(__ARMCC_VERSION) || defined(_MSC_VER) ) && \ | ||||||
|  |     !defined(inline) && !defined(__cplusplus) | ||||||
| #define inline __inline | #define inline __inline | ||||||
| #endif | #endif | ||||||
| 
 | 
 | ||||||
|  | |||||||
| @ -31,7 +31,8 @@ | |||||||
| 
 | 
 | ||||||
| #include <string.h> | #include <string.h> | ||||||
| 
 | 
 | ||||||
| #if ( defined(__ARMCC_VERSION) || defined(_MSC_VER) ) && !defined(inline) | #if ( defined(__ARMCC_VERSION) || defined(_MSC_VER) ) && \ | ||||||
|  |     !defined(inline) && !defined(__cplusplus) | ||||||
| #define inline __inline | #define inline __inline | ||||||
| #endif | #endif | ||||||
| 
 | 
 | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user
	 Manuel Pégourié-Gonnard
						Manuel Pégourié-Gonnard