From 5da424c474cd67ba84eee7e3513bf6c0f182b4e4 Mon Sep 17 00:00:00 2001 From: Fabian Keil Date: Tue, 19 Nov 2019 14:53:14 +0100 Subject: [PATCH] Move LIMIT_MUTEX_NUMBER definition to project.h ... as it is also used in other files. --- project.h | 5 +++++ ssl.c | 1 - 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/project.h b/project.h index 45e586b9..cbceaecd 100644 --- a/project.h +++ b/project.h @@ -347,6 +347,11 @@ struct http_request #ifdef FEATURE_HTTPS_FILTERING +/* + * If this macro is defined, mutexes count for generating + * private keys is changed from 65536 to 32. + */ +#define LIMIT_MUTEX_NUMBER /* * Struct for linked list containing certificates */ diff --git a/ssl.c b/ssl.c index 194092b2..bdeff63c 100644 --- a/ssl.c +++ b/ssl.c @@ -69,7 +69,6 @@ #define GENERATED_CERT_VALID_TO "20401231235959" /* Date and time, which will be setted in generated certificates as parameter valid to */ #define CERT_SIGNATURE_ALGORITHM MBEDTLS_MD_SHA256 /* The MD algorithm to use for the signature */ #define CERT_SERIAL_NUM_LENGTH 4 /* Bytes of hash to be used for creating serial number of certificate. Min=2 and max=16 */ -#define LIMIT_MUTEX_NUMBER /* If this macro is defined, mutexes count for generating private keys is changed from 65536 to 32 */ #define INVALID_CERT_INFO_BUF_SIZE 2048 /* Size of buffer for message with information about reason of certificate invalidity. Data after the end of buffer will not be saved */ #define CERT_PARAM_COMMON_NAME "CN=" #define CERT_PARAM_ORGANIZATION ",O=" -- 2.39.2