From: Fabian Keil Date: Tue, 19 Nov 2019 13:53:14 +0000 (+0100) Subject: Move LIMIT_MUTEX_NUMBER definition to project.h X-Git-Tag: v_3_0_29~560 X-Git-Url: http://www.privoxy.org/gitweb/?p=privoxy.git;a=commitdiff_plain;h=5da424c474cd67ba84eee7e3513bf6c0f182b4e4 Move LIMIT_MUTEX_NUMBER definition to project.h ... as it is also used in other files. --- 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="